open-babel: fix python2 path (#33988)

This commit is contained in:
/v\atthew L Daniel 2018-11-11 13:21:59 -08:00 committed by FX Coudert
parent def087b51b
commit f4bd4ff92b

View file

@ -37,7 +37,7 @@ class OpenBabel < Formula
# Point cmake towards correct python
if build.with? "python@2"
ENV.prepend_path "PATH", Formula["python"].opt_libexec/"bin"
ENV.prepend_path "PATH", Formula["python@2"].opt_libexec/"bin"
pypref = `python -c 'import sys;print(sys.prefix)'`.strip
pyinc = `python -c 'from distutils import sysconfig;print(sysconfig.get_python_inc(True))'`.strip
args << "-DPYTHON_BINDINGS=ON"