homebrew-core/Formula/pyenv-virtualenv.rb
ilovezfs 87653491c7 pyenv-virtualenv 1.1.1 (#19161)
use canonical repository URL
2017-10-08 03:16:21 -07:00

27 lines
743 B
Ruby

class PyenvVirtualenv < Formula
desc "Pyenv plugin to manage virtualenv"
homepage "https://github.com/pyenv/pyenv-virtualenv"
url "https://github.com/pyenv/pyenv-virtualenv/archive/v1.1.1.tar.gz"
sha256 "8589805444bc6be2746d2cf1ea76fb47fd43783d3d80e4955604b758189ca510"
version_scheme 1
head "https://github.com/pyenv/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