homebrew-core/Formula/pyenv-virtualenv.rb
Yamashita Yuu d44a6ddf2a pyenv-virtualenv 20140705
Changes:

* Display information on auto-(de)?activation
* Support manual (de)?activation with auto-activation enabled
* Exit as error when (de)?activation failed
* Use https://bootstrap.pypa.io/ to install setuptools and pip
* Create backup of original virtualenv within `$(pyenv root)/versions` when `--upgrade`

Closes Homebrew/homebrew#30669.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-07-05 15:47:53 -05:00

22 lines
572 B
Ruby

require "formula"
class PyenvVirtualenv < Formula
homepage "https://github.com/yyuu/pyenv-virtualenv"
url "https://github.com/yyuu/pyenv-virtualenv/archive/v20140705.tar.gz"
sha1 "78e90aee72a783dfd9722c55e2271b08688fb408"
head "https://github.com/yyuu/pyenv-virtualenv.git"
depends_on "pyenv"
def install
ENV["PREFIX"] = prefix
system "./install.sh"
end
def caveats; <<-EOS.undent
To enable auto-activation add to your profile:
if which pyenv-virtualenv-init > /dev/null; then eval "$(pyenv virtualenv-init -)"; fi
EOS
end
end