aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2014-04-30 23:35:13 +0100
committerMike McQuaid2014-05-06 19:34:00 +0100
commite3387c79015d9fd64b9ba80dabee56de7bc3376e (patch)
tree0248aa3ff8dd7eafb4d18d9bb2deff5e0bab0e12 /Library/Formula
parent07efa4a085ec8dbea951340d3732f7db3d5ab9ac (diff)
downloadhomebrew-e3387c79015d9fd64b9ba80dabee56de7bc3376e.tar.bz2
ansible: don't depend on :python.
Use the system Python instead.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ansible.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Formula/ansible.rb b/Library/Formula/ansible.rb
index d075d3efd..fadba4941 100644
--- a/Library/Formula/ansible.rb
+++ b/Library/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.