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:
Pierce Lopez 2014-12-23 16:05:57 -05:00 committed by Tim D. Smith
parent 04ed2b1bcb
commit 223e575ab5

View file

@ -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"