homebrew-core/Formula/pyenv-virtualenv.rb
Yamashita, Yuu 873d692c1b pyenv-virtualenv 20151229
Closes Homebrew/homebrew#47481.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-12-29 09:37:04 +00:00

26 lines
724 B
Ruby

class PyenvVirtualenv < Formula
desc "Pyenv plugin to manage virtualenv"
homepage "https://github.com/yyuu/pyenv-virtualenv"
url "https://github.com/yyuu/pyenv-virtualenv/archive/v20151229.tar.gz"
sha256 "51bb8d99c38f5a618bbfba750d99b835764bd5bf6d8f1b391bacc9717da13ada"
head "https://github.com/yyuu/pyenv-virtualenv.git"
bottle :unneeded
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
test do
shell_output("eval \"$(pyenv init -)\" && pyenv virtualenvs")
end
end