python: ensure symlinks are created for things installed in post_install

Fixes Homebrew/homebrew#28196.
This commit is contained in:
Jack Nagel 2014-04-07 13:26:38 -05:00
parent 4f2857bd07
commit fc3aad9390

View file

@ -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?