diff options
| author | Samuel John | 2013-06-05 17:33:37 +0200 |
|---|---|---|
| committer | Samuel John | 2013-06-05 17:37:32 +0200 |
| commit | aab704358b9ee6ccdcaf26a802390d9a07be4944 (patch) | |
| tree | 4760188a3357ddb5c0a2a167605783e9c15fbe9d /Library/Homebrew/python_helper.rb | |
| parent | b262a009bab9ca35b950884f9e6023ac0ac7c283 (diff) | |
| download | homebrew-aab704358b9ee6ccdcaf26a802390d9a07be4944.tar.bz2 | |
depends_on :python sets PYTHONPATH internally
This applies only to non-brewed python:
The user will still have to set his PYTHONPATH
in order to import python modules in an
external python interpreter. However, a
warning will be displayed, now.
Further, during the build, the PYTHONPATH
will be set to Homebrew's global site-packages
so that software (like PyQt and others) that
need to `import sipconfig` in python can
find the brewed sip and its python module.
Diffstat (limited to 'Library/Homebrew/python_helper.rb')
| -rw-r--r-- | Library/Homebrew/python_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/python_helper.rb b/Library/Homebrew/python_helper.rb index 992ef43c1..5f74b627d 100644 --- a/Library/Homebrew/python_helper.rb +++ b/Library/Homebrew/python_helper.rb @@ -57,7 +57,7 @@ def python_helper(options={:allowed_major_versions => [2, 3]}, &block) # In order to install into the Cellar, the dir must exist and be in the # PYTHONPATH. This will be executed in the context of the formula # so that lib points to the HOMEBREW_PREFIX/Cellar/<formula>/<version>/lib - puts "brew: Setting PYTHONPATH=#{py.site_packages}" if ARGV.verbose? + puts "brew: Appending to PYTHONPATH: #{py.site_packages}" if ARGV.verbose? mkdir_p py.site_packages ENV.append 'PYTHONPATH', py.site_packages, ':' ENV['PYTHON'] = py.binary |
