-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michael Cho <[email protected]>
- Loading branch information
Showing
1 changed file
with
12 additions
and
2 deletions.
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 |
---|---|---|
|
@@ -15,7 +15,8 @@ class PythonRequests < Formula | |
sha256 cellar: :any_skip_relocation, x86_64_linux: "38eb54a3c08da5790c7da2dbbe36992772214a7bf2ce87a73b5f58930ec7b0a8" | ||
end | ||
|
||
depends_on "python-setuptools" => :build | ||
deprecate! date: "2024-03-14", because: "does not meet homebrew/core's requirements for Python library formulae" | ||
|
||
depends_on "[email protected]" => [:build, :test] | ||
depends_on "[email protected]" => [:build, :test] | ||
depends_on "certifi" | ||
|
@@ -30,10 +31,19 @@ def pythons | |
def install | ||
pythons.each do |python| | ||
python_exe = python.opt_libexec/"bin/python" | ||
system python_exe, "-m", "pip", "install", *std_pip_args, "." | ||
system python_exe, "-m", "pip", "install", *std_pip_args(build_isolation: true), "." | ||
end | ||
end | ||
|
||
def caveats | ||
<<~EOS | ||
Additional details on upcoming formula removal are available at: | ||
* https://github.com/Homebrew/homebrew-core/issues/157500 | ||
* https://docs.brew.sh/Python-for-Formula-Authors#libraries | ||
* https://docs.brew.sh/Homebrew-and-Python#pep-668-python312-and-virtual-environments | ||
EOS | ||
end | ||
|
||
test do | ||
pythons.each do |python| | ||
python_exe = python.opt_libexec/"bin/python" | ||
|