aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/distribute.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2011-03-19 16:44:46 -0700
committerAdam Vandenberg2011-03-29 13:54:53 -0700
commit9028352dfe47015a87f33c32091b3d748b769cf3 (patch)
treed40d11342dc7654d1eb9c54d5dc2a8bad3e530cf /Library/Formula/distribute.rb
parent804d7af0fc2d4818c70ecb2890bcee855b3f3ab2 (diff)
downloadhomebrew-9028352dfe47015a87f33c32091b3d748b769cf3.tar.bz2
python: better site-packages and install-scripts
Previous versions of the Python 2.x formula did not set up the site-packages and install-scripts folders in a way friendly to updates of Python itself.
Diffstat (limited to 'Library/Formula/distribute.rb')
-rw-r--r--Library/Formula/distribute.rb45
1 files changed, 0 insertions, 45 deletions
diff --git a/Library/Formula/distribute.rb b/Library/Formula/distribute.rb
deleted file mode 100644
index 181cb894a..000000000
--- a/Library/Formula/distribute.rb
+++ /dev/null
@@ -1,45 +0,0 @@
-require 'formula'
-
-class Distribute < Formula
- url 'http://pypi.python.org/packages/source/d/distribute/distribute-0.6.14.tar.gz'
- homepage 'http://pypi.python.org/pypi/distribute/0.6.14'
- md5 'ac607e05682116c06383b27a15e2db90'
-
- def caveats
- <<-EOS.undent
- This formula is only meant to be used against a Homebrew-built Python.
- It will install itself directly into Python's location in the Cellar.
- EOS
- end
-
- def install
- python = Formula.factory("python")
- unless python.installed?
- onoe "The Distribute brew is only meant to be used against a Homebrew-built Python."
- puts <<-EOS
- Homebrew's "distribute" formula is only meant to be installed against a Homebrew-
- built version of Python, but we couldn't find such a version.
-
- The system-provided Python comes with "easy_install" already installed, with the
- caveat that some Python packages don't install cleanly against Apple's customized
- versions of Python.
-
- To install distribute against a custom Python, download distribute from:
- http://pypi.python.org/pypi/distribute
- unzip, and run:
- /path/to/custom/python setup.py install
- EOS
- exit 99
- end
-
- system "#{python.bin}/python", "setup.py", "install",
- "--install-scripts", bin,
- "--install-purelib", python.site_packages,
- "--install-platlib", python.site_packages
-
- (prefix+"README.homebrew").write <<-EOF
-distribute's libraries were installed directly into:
- #{python.site_packages}
-EOF
- end
-end