awscli: don't depend on :python.

Use the system Python instead.
This commit is contained in:
Mike McQuaid 2014-04-30 23:35:52 +01:00
parent 5476087934
commit 891102eddf

View file

@ -21,7 +21,7 @@ class Awscli < Formula
end end
end end
depends_on :python depends_on :python if MacOS.version <= :snow_leopard
resource "botocore" do resource "botocore" do
url "https://pypi.python.org/packages/source/b/botocore/botocore-0.42.0.tar.gz" url "https://pypi.python.org/packages/source/b/botocore/botocore-0.42.0.tar.gz"
@ -54,6 +54,7 @@ class Awscli < Formula
end end
def install def install
ENV["PYTHONPATH"] = lib+"python2.7/site-packages"
ENV.prepend_create_path "PYTHONPATH", libexec+"lib/python2.7/site-packages" ENV.prepend_create_path "PYTHONPATH", libexec+"lib/python2.7/site-packages"
install_args = [ "setup.py", "install", "--prefix=#{libexec}" ] install_args = [ "setup.py", "install", "--prefix=#{libexec}" ]