pygobject3: fix install for osx-included python
PYTHON env var would not be set for python2 if python2 was not installed from homebrew Closes Homebrew/homebrew#35220. Signed-off-by: Tim D. Smith <git@tim-smith.us>
This commit is contained in:
parent
04ed2b1bcb
commit
223e575ab5
1 changed files with 1 additions and 2 deletions
|
@ -45,8 +45,7 @@ class Pygobject3 < Formula
|
|||
end
|
||||
|
||||
Language::Python.each_python(build) do |python, version|
|
||||
ENV["PYTHON"] = "#{python}" if Formula[python].installed?
|
||||
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
||||
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}", "PYTHON=#{python}"
|
||||
system "make", "install"
|
||||
system "make", "check" if build.with? 'tests'
|
||||
system "make", "clean"
|
||||
|
|
Loading…
Reference in a new issue