-
-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
[email protected]: make keg-only #86469
Closed
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ class PythonTkAT310 < Formula | |
url "https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz" | ||
sha256 "c4e0cbad57c90690cb813fb4663ef670b4d0f587d8171e2c42bd4c9245bd2758" | ||
license "Python-2.0" | ||
revision 1 | ||
|
||
livecheck do | ||
formula "[email protected]" | ||
|
@@ -18,6 +19,8 @@ class PythonTkAT310 < Formula | |
sha256 x86_64_linux: "33e5057494f2cbbeba821221aa97de4c3729c825cf2f47e583081d5bff55267b" | ||
end | ||
|
||
keg_only :versioned_formula | ||
|
||
depends_on "[email protected]" | ||
depends_on "tcl-tk" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ class PythonAT310 < Formula | |
url "https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz" | ||
sha256 "c4e0cbad57c90690cb813fb4663ef670b4d0f587d8171e2c42bd4c9245bd2758" | ||
license "Python-2.0" | ||
revision 1 | ||
|
||
livecheck do | ||
url "https://www.python.org/ftp/python/" | ||
|
@@ -23,6 +24,8 @@ class PythonAT310 < Formula | |
# build packages later. Xcode-only systems need different flags. | ||
pour_bottle? only_if: :clt_installed | ||
|
||
keg_only :versioned_formula | ||
|
||
depends_on "pkg-config" => :build | ||
depends_on "gdbm" | ||
depends_on "mpdecimal" | ||
|
@@ -42,21 +45,6 @@ class PythonAT310 < Formula | |
skip_clean "bin/easy_install3", "bin/easy_install-3.4", "bin/easy_install-3.5", "bin/easy_install-3.6", | ||
"bin/easy_install-3.7", "bin/easy_install-3.8", "bin/easy_install-3.9" | ||
|
||
link_overwrite "bin/2to3" | ||
link_overwrite "bin/idle3" | ||
link_overwrite "bin/pip3" | ||
link_overwrite "bin/pydoc3" | ||
link_overwrite "bin/python3" | ||
link_overwrite "bin/python3-config" | ||
link_overwrite "bin/wheel3" | ||
link_overwrite "share/man/man1/python3.1" | ||
link_overwrite "lib/pkgconfig/python3.pc" | ||
link_overwrite "lib/pkgconfig/python3-embed.pc" | ||
link_overwrite "Frameworks/Python.framework/Headers" | ||
link_overwrite "Frameworks/Python.framework/Python" | ||
link_overwrite "Frameworks/Python.framework/Resources" | ||
link_overwrite "Frameworks/Python.framework/Versions/Current" | ||
|
||
resource "setuptools" do | ||
url "https://files.pythonhosted.org/packages/1e/5c/3d7b3d91a86d71faf5038c5d259ed36b5d05b7804648e2c43251d574a6e6/setuptools-58.2.0.tar.gz" | ||
sha256 "2c55bdb85d5bb460bd2e3b12052b677879cffcf46c0c688f2e5bf51d36001145" | ||
|
@@ -347,11 +335,6 @@ def post_install | |
(libexec/"bin").install_symlink (bin/versioned_name).realpath => unversioned_name | ||
end | ||
|
||
# post_install happens after link | ||
%W[pip3 wheel3 pip#{version.major_minor}].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["[email protected]"].opt_include, | ||
Formula["sqlite"].opt_include] | ||
|
@@ -424,14 +407,14 @@ def sitecustomize | |
def caveats | ||
<<~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#{version.major_minor}/site-packages"} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,8 +24,6 @@ | |
"[email protected]", | ||
"pyqt@5", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]" | ||
] |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, does this have OpenSSL 1.1 in its dep tree other than through here? If so we should use OpenSSL 3.0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't use OpenSSL 3.0 until it or 1.1 is keg only, or we're just going to reintroduce the problem #86520 is having.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also that person was probably right in saying we should avoid anything too important while that old macOS build issue is still a thing.