python3: install flat setuptools, pip
Avoid installing eggs to avoid problems with multiple installed versions.
This commit is contained in:
parent
e079f8f681
commit
6167926bd5
1 changed files with 4 additions and 1 deletions
|
@ -207,12 +207,15 @@ class Python3 < Formula
|
|||
# setuptools-0.9.8-py3.3.egg
|
||||
rm_rf Dir["#{site_packages}/setuptools*"]
|
||||
rm_rf Dir["#{site_packages}/distribute*"]
|
||||
rm_rf Dir["#{site_packages}/pip[-_.][0-9]*", "#{site_packages}/pip"]
|
||||
|
||||
%w[setuptools pip].each do |pkg|
|
||||
(libexec/pkg).cd do
|
||||
system bin/"python3", "-s", "setup.py", "--no-user-cfg", "install",
|
||||
"--force", "--verbose", "--install-scripts=#{bin}",
|
||||
"--install-lib=#{site_packages}"
|
||||
"--install-lib=#{site_packages}",
|
||||
"--single-version-externally-managed",
|
||||
"--record=installed.txt"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue