ansible: don't depend on :python.

Use the system Python instead.
This commit is contained in:
Mike McQuaid 2014-04-30 23:35:13 +01:00
parent c4dff845e2
commit 0ec612ab07

View file

@ -7,7 +7,7 @@ class Ansible < Formula
head 'https://github.com/ansible/ansible.git', :branch => 'devel'
depends_on :python
depends_on :python if MacOS.version <= :snow_leopard
depends_on 'libyaml'
option 'with-accelerate', "Enable accelerated mode"
@ -45,6 +45,7 @@ class Ansible < Formula
end
def install
ENV["PYTHONPATH"] = lib+"python2.7/site-packages"
ENV.prepend_create_path 'PYTHONPATH', libexec+'lib/python2.7/site-packages'
# HEAD additionally requires this to be present in PYTHONPATH, or else
# ansible's own setup.py will fail.