httpie: don't link dependencies (i.e. pygmentize)

Fixes Homebrew/homebrew#30416.
This commit is contained in:
Andy Freeland 2014-06-24 16:57:15 -04:00 committed by Mike McQuaid
parent 4cd8fa0d7f
commit 3d1b934fce

View file

@ -34,14 +34,9 @@ class Httpie < Formula
resource("pygments").stage { system "python", *install_args }
resource("requests").stage { system "python", *install_args }
system "python", "setup.py", "install", "--prefix=#{prefix}"
system "python", "setup.py", "install", "--prefix=#{libexec}"
# These are now rolled into 1.6 and cause linking conflicts
rm [Dir.glob("#{bin}/easy_install*"),
"#{lib}/python2.7/site-packages/site.py",
Dir.glob("#{lib}/python2.7/site-packages/*.pth")]
bin.env_script_all_files(libexec + "bin", :PYTHONPATH => ENV["PYTHONPATH"])
(bin/"http").write_env_script libexec/"bin/http", :PYTHONPATH => ENV["PYTHONPATH"]
end
test do