aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mitmproxy.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Formula/mitmproxy.rb b/Library/Formula/mitmproxy.rb
index 4ffffa369..310cb2de1 100644
--- a/Library/Formula/mitmproxy.rb
+++ b/Library/Formula/mitmproxy.rb
@@ -8,7 +8,7 @@ class Mitmproxy < Formula
option 'with-pyamf', 'Enable action message format (AMF) support for python'
option 'with-cssutils', 'Enable beautification of CSS responses'
- depends_on :python
+ depends_on :python if MacOS.version <= :snow_leopard
depends_on 'protobuf' => :optional
resource 'pyopenssl' do
@@ -61,6 +61,7 @@ class Mitmproxy < Formula
end
def install
+ ENV["PYTHONPATH"] = lib+"python2.7/site-packages"
ENV.prepend_create_path 'PYTHONPATH', libexec+'lib/python2.7/site-packages'
install_args = [ "setup.py", "install", "--prefix=#{libexec}" ]