aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/pypy.rb
diff options
context:
space:
mode:
authorMisty De Meo2013-11-15 14:42:00 -0800
committerMisty De Meo2013-11-15 14:42:45 -0800
commit4d471b17a81ef5b34e46418041c6c7a1ec4749cb (patch)
tree43e8eb28ffc121add91cfad4f6fd6d746f033468 /Library/Formula/pypy.rb
parent79d556da8adbeb295a92b6cfcb18c82b48f374d5 (diff)
downloadhomebrew-4d471b17a81ef5b34e46418041c6c7a1ec4749cb.tar.bz2
pypy: unset PYTHONPATH while building
Fixes #24364.
Diffstat (limited to 'Library/Formula/pypy.rb')
-rw-r--r--Library/Formula/pypy.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Formula/pypy.rb b/Library/Formula/pypy.rb
index 08cbd27a5..30918e080 100644
--- a/Library/Formula/pypy.rb
+++ b/Library/Formula/pypy.rb
@@ -19,6 +19,11 @@ class Pypy < Formula
end
def install
+ # Having PYTHONPATH set can cause the build to fail if another
+ # Python is present, e.g. a Homebrew-provided Python 2.x
+ # See https://github.com/mxcl/homebrew/issues/24364
+ ENV['PYTHONPATH'] = ''
+
rmtree 'site-packages'
# The PyPy binary install instructions suggest installing somewhere