From ae10f3e501f2258708df5e805eb14018ac43d160 Mon Sep 17 00:00:00 2001 From: Christian Moritz Date: Thu, 6 Feb 2014 15:40:42 +0100 Subject: sip: fix --HEAD Closes #26469. Signed-off-by: Mike McQuaid --- Library/Formula/sip.rb | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'Library') diff --git a/Library/Formula/sip.rb b/Library/Formula/sip.rb index 4749f676e..ff71fc11f 100644 --- a/Library/Formula/sip.rb +++ b/Library/Formula/sip.rb @@ -24,16 +24,17 @@ class Sip < Formula end def install + if build.head? + # Link the Mercurial repository into the download directory so + # build.py can use it to figure out a version number. + ln_s downloader.cached_location + ".hg", ".hg" + # build.py doesn't run with python3 + system "python", "build.py", "prepare" + end + pythons.each do |python, version| ENV["PYTHONPATH"] = lib/"python#{version}/site-packages" - if build.head? - # Link the Mercurial repository into the download directory so - # build.py can use it to figure out a version number. - ln_s downloader.cached_location + ".hg", ".hg" - system python, "build.py", "prepare" - end - # Note the binary `sip` is the same for python 2.x and 3.x system python, "configure.py", "--deployment-target=#{MacOS.version}", -- cgit v1.2.3