diff options
| author | Tim D. Smith | 2014-12-23 00:10:36 -0500 |
|---|---|---|
| committer | Tim D. Smith | 2014-12-31 17:53:07 -0800 |
| commit | 5f035218d9d1a742c411927f8719d464191292bb (patch) | |
| tree | aaeed2d4fb7dfe4ad01c6e78c25ec0afe8a71462 /Library/Formula/pypy.rb | |
| parent | 3fc2ce4d53c93c2259d411ae300ca41f8370f745 (diff) | |
| download | homebrew-5f035218d9d1a742c411927f8719d464191292bb.tar.bz2 | |
pypy: bottle pip and setuptools
Diffstat (limited to 'Library/Formula/pypy.rb')
| -rw-r--r-- | Library/Formula/pypy.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Library/Formula/pypy.rb b/Library/Formula/pypy.rb index ab20ef765..b68d9f0b3 100644 --- a/Library/Formula/pypy.rb +++ b/Library/Formula/pypy.rb @@ -57,6 +57,10 @@ class Pypy < Formula # scripts will find it. bin.install_symlink libexec/"bin/pypy" lib.install_symlink libexec/"lib/libpypy-c.dylib" + + %w[setuptools pip].each do |r| + (libexec/r).install resource(r) + end end def post_install @@ -83,8 +87,12 @@ class Pypy < Formula install-scripts=#{scripts_folder} EOF - resource("setuptools").stage { system "#{libexec}/bin/pypy", "setup.py", "install" } - resource("pip").stage { system "#{libexec}/bin/pypy", "setup.py", "install" } + %w[setuptools pip].each do |pkg| + (libexec/pkg).cd do + system bin/"pypy", "-s", "setup.py", "--no-user-cfg", "install", + "--force", "--verbose" + end + end # Symlinks to easy_install_pypy and pip_pypy bin.install_symlink scripts_folder/"easy_install" => "easy_install_pypy" |
