homebrew-core/Formula/pyenv-virtualenv.rb
Mike McQuaid 512758e6eb Rubocop 0.57.1 style fixes (#28754)
Realign trailing EOS.
2018-06-09 01:27:43 -07:00

27 lines
734 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.3.tar.gz"
sha256 "247618b294b46e269bf1c1c3ed0f240d36ae9b454ce96856a57fd3f1053c90cd"
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
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