Created
January 26, 2015 09:58
-
-
Save tomoh1r/61ee4ccbbd88f7e3a226 to your computer and use it in GitHub Desktop.
virtualenv の Formula
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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