858327b65b
Closes Homebrew/homebrew#44732. Signed-off-by: Xu Cheng <xucheng@me.com>
25 lines
705 B
Ruby
25 lines
705 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/v20151006.tar.gz"
|
|
sha256 "7e598ced4454c90905524edd69f28a9430d74f6b1e0b454c4a78d16d75f35108"
|
|
|
|
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
|
|
|
|
test do
|
|
shell_output("eval \"$(pyenv init -)\" && pyenv virtualenvs")
|
|
end
|
|
end
|