python: ensure symlinks are created for things installed in post_install
Fixes Homebrew/homebrew#28196.
This commit is contained in:
parent
4f2857bd07
commit
fc3aad9390
1 changed files with 6 additions and 0 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue