diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/ansible.rb | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Library/Formula/ansible.rb b/Library/Formula/ansible.rb index 50cfd1678..f926f890c 100644 --- a/Library/Formula/ansible.rb +++ b/Library/Formula/ansible.rb @@ -52,13 +52,10 @@ class Ansible < Formula ENV.prepend_create_path 'PYTHONPATH', prefix+'lib/python2.7/site-packages' install_args = [ "setup.py", "install", "--prefix=#{libexec}" ] - resource('pycrypto').stage { system "python", *install_args } - resource('pyyaml').stage { system "python", *install_args } - resource('paramiko').stage { system "python", *install_args } - resource('markupsafe').stage { system "python", *install_args } - resource('jinja2').stage { system "python", *install_args } - if build.with? 'accelerate' - resource('python-keyczar').stage { system "python", *install_args } + res = %w[pycrypto pyyaml paramiko markupsafe jinja2] + res << "python-keyczar" if build.with? "accelerate" + res.each do |r| + resource(r).stage { system "python", *install_args } end inreplace 'lib/ansible/constants.py' do |s| |
