Skip to content

Instantly share code, notes, and snippets.

@tomoh1r
Created January 26, 2015 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomoh1r/61ee4ccbbd88f7e3a226 to your computer and use it in GitHub Desktop.
Save tomoh1r/61ee4ccbbd88f7e3a226 to your computer and use it in GitHub Desktop.
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