homebrew-core/Formula/pyenv-which-ext.rb
2018-11-30 22:31:51 +01:00

20 lines
534 B
Ruby

class PyenvWhichExt < Formula
desc "Integrate pyenv and system commands"
homepage "https://github.com/pyenv/pyenv-which-ext"
url "https://github.com/pyenv/pyenv-which-ext/archive/v0.0.2.tar.gz"
sha256 "4098e5a96b048192b0eab66ca5f588602e30ed16aac816e96ff514f6b5896257"
head "https://github.com/pyenv/pyenv-which-ext.git"
bottle :unneeded
depends_on "pyenv"
def install
ENV["PREFIX"] = prefix
system "./install.sh"
end
test do
shell_output("eval \"$(pyenv init -)\" && pyenv which python")
end
end