From c968f8302fb0b02ddeb6133c0d26349055a07e35 Mon Sep 17 00:00:00 2001 From: Samuel John Date: Thu, 8 Aug 2013 11:50:46 +0200 Subject: [PATCH] For brewed python, make sure to unset the PYTHONPATH MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit during building of python software inside of a `python do … end` block. --- Library/Homebrew/requirements/python_dependency.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/requirements/python_dependency.rb b/Library/Homebrew/requirements/python_dependency.rb index eb61addc24..33cb4f8627 100644 --- a/Library/Homebrew/requirements/python_dependency.rb +++ b/Library/Homebrew/requirements/python_dependency.rb @@ -259,7 +259,7 @@ class PythonInstalled < Requirement ENV.prepend 'PATH', binary.dirname, ':' unless from_osx? ENV['PYTHONHOME'] = nil # to avoid fuck-ups. - ENV['PYTHONPATH'] = global_site_packages.to_s unless brewed? + ENV['PYTHONPATH'] = if brewed? then nil; else global_site_packages.to_s; end ENV.append 'CMAKE_INCLUDE_PATH', incdir, ':' ENV.append 'PKG_CONFIG_PATH', pkg_config_path, ':' if pkg_config_path # We don't set the -F#{framework} here, because if Python 2.x and 3.x are