From 3d1b934fce953db42c81177e0abcb190658d89f7 Mon Sep 17 00:00:00 2001 From: Andy Freeland Date: Tue, 24 Jun 2014 16:57:15 -0400 Subject: [PATCH] httpie: don't link dependencies (i.e. pygmentize) Fixes Homebrew/homebrew#30416. --- Formula/httpie.rb | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Formula/httpie.rb b/Formula/httpie.rb index dc59c3eab0..319b764363 100644 --- a/Formula/httpie.rb +++ b/Formula/httpie.rb @@ -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