diff options
| author | Christian Moritz | 2014-02-06 15:40:42 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-02-06 14:51:00 +0000 |
| commit | ae10f3e501f2258708df5e805eb14018ac43d160 (patch) | |
| tree | 842002af488cac8c1fd20614c54fd4c10d5fe9bb /Library | |
| parent | 2af2d8e4d2284854cbe21d7a9d5c80138357b719 (diff) | |
| download | homebrew-ae10f3e501f2258708df5e805eb14018ac43d160.tar.bz2 | |
sip: fix --HEAD
Closes #26469.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/sip.rb | 15 |
1 files changed, 8 insertions, 7 deletions
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}", |
