From a3a8bee5b97261773edecce62ce3320a454d8977 Mon Sep 17 00:00:00 2001 From: Samuel John Date: Wed, 5 Jun 2013 17:33:37 +0200 Subject: 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. --- Library/Homebrew/python_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew/python_helper.rb') 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///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 -- cgit v1.2.3