fabric: modernize
Closes Homebrew/homebrew#35539. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
2a7c220ffa
commit
ca00f31be3
1 changed files with 2 additions and 4 deletions
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue