aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/python_helper.rb
diff options
context:
space:
mode:
authorSamuel John2013-06-05 17:33:37 +0200
committerSamuel John2013-06-05 17:37:32 +0200
commita3a8bee5b97261773edecce62ce3320a454d8977 (patch)
tree8287cc987391f2ced05ed4dd17dbd268e0cee01d /Library/Homebrew/python_helper.rb
parent1deeb1c7ef419f3e21ec46b0af4ca8887206991a (diff)
downloadbrew-a3a8bee5b97261773edecce62ce3320a454d8977.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.rb2
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