diff options
| author | Samuel John | 2013-08-08 11:50:46 +0200 |
|---|---|---|
| committer | Samuel John | 2013-08-08 11:50:46 +0200 |
| commit | b024703426a3bfe7996fe7841a76dee66529e244 (patch) | |
| tree | 015d23933ec818b65a046e1951cf439c4b1fe188 /Library/Homebrew/requirements/python_dependency.rb | |
| parent | 72dfc1b5c0513f33f90d7f2987bcc9e8843b9de8 (diff) | |
| download | homebrew-b024703426a3bfe7996fe7841a76dee66529e244.tar.bz2 | |
For brewed python, make sure to unset the PYTHONPATH
during building of python software inside of a `python do … end` block.
Diffstat (limited to 'Library/Homebrew/requirements/python_dependency.rb')
| -rw-r--r-- | Library/Homebrew/requirements/python_dependency.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/requirements/python_dependency.rb b/Library/Homebrew/requirements/python_dependency.rb index eb61addc2..33cb4f862 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 |
