Skip to content

Commit

Permalink
fabric: modernize
Browse files Browse the repository at this point in the history
  • Loading branch information
robsonpeixoto authored and tdsmith committed Jan 12, 2015
1 parent 2aea4c8 commit 88c8ed1
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Formula/fabric.rb
Expand Up @@ -30,16 +30,18 @@ class Fabric < Formula
end

def install
ENV.prepend_create_path "PYTHONPATH", libexec + "lib/python2.7/site-packages"
ENV.prepend_create_path "PYTHONPATH", prefix + "lib/python2.7/site-packages"

ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages"
resources.each do |r|
r.stage { system "python", "setup.py", "install", "--prefix=#{libexec}" }
r.stage do
system "python", *Language::Python.setup_install_args(libexec/"vendor")
end
end

system "python", "setup.py", "install", "--prefix=#{libexec}"
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages"
system "python", *Language::Python.setup_install_args(libexec)

(bin/"fab").write_env_script libexec/"bin/fab", :PYTHONPATH => ENV["PYTHONPATH"]
bin.install Dir[libexec/"bin/*"]
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
end

test do
Expand Down

0 comments on commit 88c8ed1

Please sign in to comment.