unbound: use the brewed Python (#16728)

When the python alias was removed from the python Formula, unbound
reverted to using the system Python, but unboundmodule.py is installed
for the brewed python. That broke the Python integration.

Use the configure env var PYTHON_VERSION to make Unbound find the brewed
python2.7 binary.
This commit is contained in:
Filippo Valsorda 2017-08-16 14:30:42 +01:00 committed by ilovezfs
parent aeef0e045b
commit a3fe5ea6e2

View file

@ -26,6 +26,7 @@ class Unbound < Formula
if build.with? "python"
ENV.prepend "LDFLAGS", `python-config --ldflags`.chomp
ENV.prepend "PYTHON_VERSION", "2.7"
args << "--with-pyunbound"
args << "--with-pythonmodule"