fabric: modernize

Closes Homebrew/homebrew#35539.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Robson Roberto Souza Peixoto 2015-01-04 06:24:52 -03:00 committed by Mike McQuaid
parent 2a7c220ffa
commit ca00f31be3

View file

@ -33,10 +33,8 @@ class Fabric < Formula
ENV.prepend_create_path "PYTHONPATH", libexec + "lib/python2.7/site-packages"
ENV.prepend_create_path "PYTHONPATH", prefix + "lib/python2.7/site-packages"
res = %w[ecdsa pycrypto paramiko]
install_args = "setup.py", "install", "--prefix=#{libexec}"
res.each do |r|
resource(r).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=#{libexec}"