homebrew-core/Formula/pyenv-virtualenv.rb
Jerzerak 8119f77fab pyenv-virtualenv 20160315
Closes #611.

Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-04-26 00:04:07 -04: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/v20160315.tar.gz"
sha256 "f2f5149b35894982a9aa17d05c1f0131b7b365c34b4555db0f6f08125f6e241b"
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