-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #176591 from branchvincent/pyyaml
pyyaml: deprecate, disable in 3 months
- Loading branch information
Showing
1 changed file
with
9 additions
and
6 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 |
---|---|---|
|
@@ -16,8 +16,8 @@ class Pyyaml < Formula | |
sha256 cellar: :any_skip_relocation, x86_64_linux: "d53f5c35de430f055c83fdbb1e857b3423cbea9c66523f929cb525876ef55fae" | ||
end | ||
|
||
depends_on "cython" => :build | ||
depends_on "python-setuptools" => :build | ||
disable! date: "2024-10-06", 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 "libyaml" | ||
|
@@ -29,11 +29,9 @@ def pythons | |
end | ||
|
||
def install | ||
cythonize = Formula["cython"].bin/"cythonize" | ||
system cythonize, "yaml/_yaml.pyx" | ||
pythons.each do |python| | ||
python_exe = python.opt_libexec/"bin/python" | ||
system python_exe, "-m", "pip", "install", *std_pip_args, "." | ||
python3 = python.opt_libexec/"bin/python" | ||
system python3, "-m", "pip", "install", *std_pip_args(build_isolation: true), "." | ||
end | ||
end | ||
|
||
|
@@ -45,6 +43,11 @@ def caveats | |
<<~EOS | ||
This formula provides the `yaml` module for Python #{python_versions}. | ||
If you need `yaml` for a different version of Python, use pip. | ||
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 | ||
|
||
|