aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/python.rb
diff options
context:
space:
mode:
authorJack Nagel2014-04-07 13:26:38 -0500
committerJack Nagel2014-04-07 13:26:38 -0500
commit0f3bfb5623016d394ff7d37526003c0ed75d5d06 (patch)
treeb4ed2e92eda39355a76ff9658b291dd786a7856e /Library/Formula/python.rb
parentd8c01c58ad3197a601b79ba81212002958f96157 (diff)
downloadhomebrew-0f3bfb5623016d394ff7d37526003c0ed75d5d06.tar.bz2
python: ensure symlinks are created for things installed in post_install
Fixes #28196.
Diffstat (limited to 'Library/Formula/python.rb')
-rw-r--r--Library/Formula/python.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/python.rb b/Library/Formula/python.rb
index db4266a3a..3aa6039db 100644
--- a/Library/Formula/python.rb
+++ b/Library/Formula/python.rb
@@ -167,6 +167,12 @@ class Python < Formula
(libexec/'setuptools').cd { system "#{bin}/python", *setup_args }
(libexec/'pip').cd { system "#{bin}/python", *setup_args }
+ # When building from source, these symlinks will not exist, since
+ # post_install happens after linking.
+ %w[pip pip2 pip2.7 easy_install easy_install-2.7].each do |e|
+ (HOMEBREW_PREFIX/"bin").install_symlink bin/e
+ end
+
# And now we write the distutils.cfg
cfg = lib_cellar/"distutils/distutils.cfg"
cfg.delete if cfg.exist?