aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/pypy.rb
diff options
context:
space:
mode:
authorTim D. Smith2014-12-23 00:10:36 -0500
committerTim D. Smith2014-12-31 17:53:07 -0800
commit5f035218d9d1a742c411927f8719d464191292bb (patch)
treeaaeed2d4fb7dfe4ad01c6e78c25ec0afe8a71462 /Library/Formula/pypy.rb
parent3fc2ce4d53c93c2259d411ae300ca41f8370f745 (diff)
downloadhomebrew-5f035218d9d1a742c411927f8719d464191292bb.tar.bz2
pypy: bottle pip and setuptools
Diffstat (limited to 'Library/Formula/pypy.rb')
-rw-r--r--Library/Formula/pypy.rb12
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"