pypy: unset PYTHONPATH while building

Fixes Homebrew/homebrew#24364.
master
Misty De Meo 2013-11-15 14:42:00 -08:00
parent 7564568cf1
commit 860a4d43a7
1 changed files with 5 additions and 0 deletions

View File

@ -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