Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
virtualenv の Formula
class PythonVirtualenv < Formula
homepage ""
url "https://pypi.python.org/packages/source/v/virtualenv/virtualenv-12.0.5.tar.gz"
version "12.0.5"
sha1 "ae93636c4b6fc55d6e7d84c628f5c4cd59c5129b"
depends_on :python if MacOS.version <= :snow_leopard
def install
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages"
system "python", *Language::Python.setup_install_args(libexec)
bin.install Dir[libexec/"bin/*"]
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment