diff options
| author | Tim D. Smith | 2014-12-23 00:56:03 -0500 |
|---|---|---|
| committer | Tim D. Smith | 2014-12-31 17:53:08 -0800 |
| commit | 9284d3e3f34c5d2366a73ffcdaac72bf549fca0e (patch) | |
| tree | b3873344d03510fb15d2e2b40b39e9c9b5e06bf1 /Library/Formula | |
| parent | c50adf53048883a45b5aa30cd3aa856437743663 (diff) | |
| download | homebrew-9284d3e3f34c5d2366a73ffcdaac72bf549fca0e.tar.bz2 | |
pypy3: bottle pip and setuptools
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/pypy3.rb | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Library/Formula/pypy3.rb b/Library/Formula/pypy3.rb index 8952895ad..6d523c97f 100644 --- a/Library/Formula/pypy3.rb +++ b/Library/Formula/pypy3.rb @@ -56,6 +56,10 @@ class Pypy3 < Formula # scripts will find it. bin.install_symlink libexec/"bin/pypy" => "pypy3" lib.install_symlink libexec/"lib/libpypy3-c.dylib" + + %w[setuptools pip].each do |r| + (libexec/r).install resource(r) + end end def post_install @@ -82,8 +86,11 @@ class Pypy3 < 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/"pypy3", "-s", "setup.py", "install", "--force", "--verbose" + end + end # Symlinks to easy_install_pypy3 and pip_pypy3 bin.install_symlink scripts_folder/"easy_install" => "easy_install_pypy3" |
