diff options
| author | Jack Nagel | 2014-07-18 17:21:48 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-07-18 17:21:48 -0500 |
| commit | aae0909facd56bff446a9dc631193e69da597174 (patch) | |
| tree | 884c9185c552f3dc039707be7759f2b267323bbf /Library/Formula/fig.rb | |
| parent | 855384df658aa536c6a5079eaf79d3e59255ebc8 (diff) | |
| download | homebrew-aae0909facd56bff446a9dc631193e69da597174.tar.bz2 | |
fig: iterate over resources directly
Diffstat (limited to 'Library/Formula/fig.rb')
| -rw-r--r-- | Library/Formula/fig.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Formula/fig.rb b/Library/Formula/fig.rb index 3c8d41094..ee9278ada 100644 --- a/Library/Formula/fig.rb +++ b/Library/Formula/fig.rb @@ -45,9 +45,8 @@ class Fig < Formula ENV.prepend_create_path "PYTHONPATH", libexec+"lib/python2.7/site-packages" ENV.prepend_create_path "PYTHONPATH", prefix+"lib/python2.7/site-packages" - install_args = [ "setup.py", "install", "--prefix=#{libexec}" ] - res = %w[docopt pyyaml requests texttable websocket-client] - res.each do |r| + install_args = ["setup.py", "install", "--prefix=#{libexec}"] + resources.each do |r| resource(r).stage { system "python", *install_args } end |
