Skip to content
Browse files

Stop failing sitecustomize if cellar not in path

This fixes issues when calling python scripts print `'import sitecustomize' failed; use -v for traceback`
  • Loading branch information...
1 parent 0422f6f commit db7b98d108e227fe6ab898773f9d55f561a44163 @deiga committed Mar 8, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 Library/Formula/python.rb
View
3 Library/Formula/python.rb
@@ -140,7 +140,8 @@ def install
# Fix 2)
# Remove brewed Python's hard-coded site-packages
- sys.path.remove('#{site_packages_cellar}')
+ if '#{site_packages_cellar}' in sys.path:
+ sys.path.remove('#{site_packages_cellar}')
# Fix 3)
# For all Pythons: Tell about homebrew's site-packages location.

0 comments on commit db7b98d

Please sign in to comment.
Something went wrong with that request. Please try again.