diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/pypy.rb | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/Library/Formula/pypy.rb b/Library/Formula/pypy.rb index 5427b833c..bfabe5930 100644 --- a/Library/Formula/pypy.rb +++ b/Library/Formula/pypy.rb @@ -1,10 +1,5 @@ require 'formula' -class Setuptools < Formula - url 'https://pypi.python.org/packages/source/s/setuptools/setuptools-1.1.4.tar.gz' - sha1 'b8bf9c2b8a114045598f0e16681d6a63a4d6cdf9' -end - class Pypy < Formula homepage 'http://pypy.org/' url 'https://bitbucket.org/pypy/pypy/downloads/pypy-2.1-osx64.tar.bz2' @@ -13,6 +8,11 @@ class Pypy < Formula depends_on :arch => :x86_64 + resource 'setuptools' do + url 'https://pypi.python.org/packages/source/s/setuptools/setuptools-1.1.4.tar.gz' + sha1 'b8bf9c2b8a114045598f0e16681d6a63a4d6cdf9' + end + def install rmtree 'site-packages' @@ -39,9 +39,7 @@ class Pypy < Formula # $ easy_install pip # $ pip install --upgrade setuptools # to get newer versions of setuptools outside of Homebrew. - Setuptools.new.brew do - system "#{bin}/pypy", "setup.py", "install" - end + resource('setuptools').stage { system "#{bin}/pypy", "setup.py", "install" } # Symlink to easy_install_pypy. unless (scripts_folder+'easy_install_pypy').exist? |
