diff --git a/Formula/ansible.rb b/Formula/ansible.rb index d075d3efdf..fadba49411 100644 --- a/Formula/ansible.rb +++ b/Formula/ansible.rb @@ -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.