aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2010-04-06 17:15:47 -0700
committerAdam Vandenberg2010-05-04 22:39:44 -0700
commit8ad178d2cc2d188f3431c65a5e6c93dca5376776 (patch)
treec214368bcb2425e3e55368f66687d68e1c4b4705 /Library/Formula
parent43811fb3cf4e8d864c16e36e18c56c0e38e3a54a (diff)
downloadhomebrew-8ad178d2cc2d188f3431c65a5e6c93dca5376776.tar.bz2
virtualenvwrapper 2.1.1
Notes: * Standalone install that doesn't touch your site-packages * virtualenv must be installed separately, per caveats
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/virtualenvwrapper.rb41
1 files changed, 41 insertions, 0 deletions
diff --git a/Library/Formula/virtualenvwrapper.rb b/Library/Formula/virtualenvwrapper.rb
new file mode 100644
index 000000000..6ad03fa46
--- /dev/null
+++ b/Library/Formula/virtualenvwrapper.rb
@@ -0,0 +1,41 @@
+require 'formula'
+
+class Virtualenvwrapper <Formula
+ url 'http://www.doughellmann.com/downloads/virtualenvwrapper-2.1.1.tar.gz'
+ homepage 'http://www.doughellmann.com/projects/virtualenvwrapper/'
+ md5 '1c6543b1dc69574aa8fe973b07f3ec16'
+
+ def install
+ libexec.install ['virtualenvwrapper.sh', 'virtualenvwrapper']
+ # HACK: Make the wrapper exectuable, so `which` can find it.
+ chmod 0755, libexec+'virtualenvwrapper.sh'
+
+ bin.mkpath
+ ln_s libexec+'virtualenvwrapper.sh', bin
+ end
+
+ def caveats
+ <<-EOS.undent
+ This project depends on "virtualenv" which is installed separately. See:
+ http://pypi.python.org/pypi/virtualenv
+
+ From the project homepage:
+ 1. Create a directory to hold all of the virtual environments.
+ The default is $HOME/.virtualenvs
+
+ 2. Add two lines to your .bashrc to set the location where the
+ virtual environments should live and the location of the
+ script installed with this package:
+
+ export WORKON_HOME=$HOME/.virtualenvs
+ source #{HOMEBREW_PREFIX}/bin/virtualenvwrapper.sh
+
+ 3. Run: source ~/.bashrc
+
+ Note that we did not install anything to your Python's site-packages.
+ If you want to write extensions you may need to add:
+ #{libexec}
+ to your PYTHON_PATH.
+ EOS
+ end
+end