Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
PythonInstalled: Unset PYTHONPATH for satisfied?
Browse files Browse the repository at this point in the history
When a formula `depends_on :python` *and* `depends_on :python3`
the `modify_build_environment` method sets the PYTHONPATH
and the Python 3.x requirement then fails because it finds
the sitecustomize.py from Python 2.x in the PYTHONPATH.
  • Loading branch information
samueljohn committed Aug 23, 2013
1 parent e071076 commit 6596db2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Library/Homebrew/requirements/python_dependency.rb
Expand Up @@ -74,6 +74,7 @@ def initialize(default_version="2.6", tags=[])
# We look for a brewed python or an external Python and store the loc of
# that binary for later usage. (See Formula#python)
satisfy :build_env => false do
ENV['PYTHONPATH'] = nil
@unsatisfied_because = ''
if binary.nil? || !binary.executable?
@unsatisfied_because += "No `#{@name}` found in your PATH! Consider to `brew install #{@name}`."
Expand Down

0 comments on commit 6596db2

Please sign in to comment.