From 30bf648c3e9ffb24b2ed54560b1a7ba1b7196f0e Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 18 Jul 2014 22:42:47 -0500 Subject: Simplify resource installation --- Library/Formula/saltstack.rb | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'Library/Formula/saltstack.rb') diff --git a/Library/Formula/saltstack.rb b/Library/Formula/saltstack.rb index bd66f3763..4bc6fd991 100644 --- a/Library/Formula/saltstack.rb +++ b/Library/Formula/saltstack.rb @@ -79,19 +79,9 @@ class Saltstack < Formula def install ENV["PYTHONPATH"] = lib+"python2.7/site-packages" ENV.prepend_create_path 'PYTHONPATH', libexec+'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('pyzmq').stage { system "python", *install_args } - resource('msgpack-python').stage { system "python", *install_args } - resource('markupsafe').stage { system "python", *install_args } - resource('m2crypto').stage { system "python", *install_args } - resource('jinja2').stage { system "python", *install_args } - resource('apache-libcloud').stage { system "python", *install_args } - - if build.head? - resource('requests').stage { system "python", *install_args } + + resources.each do |r| + r.stage { system "python", "setup.py", "install", "--prefix=#{libexec}" } end system "python", "setup.py", "install", "--prefix=#{prefix}" -- cgit v1.2.3