Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python@3.8: install pip3 and wheel3 to /usr/local/bin/ #57654

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions Formula/python@3.7.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ class PythonAT37 < Formula
homepage "https://www.python.org/"
url "https://www.python.org/ftp/python/3.7.8/Python-3.7.8.tar.xz"
sha256 "43a543404b363f0037f89df8478f19db2dbc0d6f3ffee310bc2997fa71854a63"
revision 1

bottle do
sha256 "ccfeeedbeedc0b75b4a13b38616118dd34da7b0ee1749ff090c4cbe8c3b9a623" => :catalina
Expand Down Expand Up @@ -223,11 +224,6 @@ def post_install
(libexec/"bin").install_symlink (bin/versioned_name).realpath => unversioned_name
end

# post_install happens after link
%W[pip3 pip#{xy} easy_install-#{xy} wheel3].each do |e|
(HOMEBREW_PREFIX/"bin").install_symlink bin/e
end

# Help distutils find brewed stuff when building extensions
include_dirs = [HOMEBREW_PREFIX/"include", Formula["openssl@1.1"].opt_include,
Formula["sqlite"].opt_include]
Expand Down Expand Up @@ -296,14 +292,14 @@ def caveats
end
<<~EOS
Python has been installed as
#{HOMEBREW_PREFIX}/bin/python3
#{opt_bin}/python3

Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
#{opt_libexec}/bin

You can install Python packages with
pip3 install <package>
#{opt_bin}/pip3 install <package>
They will install into the site-package directory
#{HOMEBREW_PREFIX/"lib/python#{xy}/site-packages"}

Expand Down
14 changes: 9 additions & 5 deletions Formula/python@3.8.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class PythonAT38 < Formula
homepage "https://www.python.org/"
url "https://www.python.org/ftp/python/3.8.3/Python-3.8.3.tar.xz"
sha256 "dfab5ec723c218082fe3d5d7ae17ecbdebffa9a1aea4d64aa3a2ecdd2e795864"
revision 1
revision 2

bottle do
sha256 "142f7ace3f1d12472569e89eaab40526604ea4011dcfc02ecc362e7e9f1cafba" => :catalina
Expand Down Expand Up @@ -264,7 +264,7 @@ def post_install
end

# post_install happens after link
%W[pip#{xy} easy_install-#{xy}].each do |e|
%W[pip3 pip#{xy} easy_install-#{xy} wheel3].each do |e|
(HOMEBREW_PREFIX/"bin").install_symlink bin/e
end

Expand Down Expand Up @@ -331,12 +331,16 @@ def caveats
end
<<~EOS
Python has been installed as
#{opt_bin}/python3
#{HOMEBREW_PREFIX}/bin/python3

Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
#{opt_libexec}/bin

You can install Python packages with
#{opt_bin}/pip3 install <package>
pip3 install <package>
They will install into the site-package directory
#{prefix/"Frameworks/Python.framework/Versions/#{xy}/lib/python#{xy}/site-packages"}
#{HOMEBREW_PREFIX/"lib/python#{xy}/site-packages"}

See: https://docs.brew.sh/Homebrew-and-Python
EOS
Expand Down