Skip to content

Commit f17a3e8

Browse files
committed
python-setuptools: add [email protected]
Signed-off-by: botantony <[email protected]>
1 parent 8f84c49 commit f17a3e8

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

Formula/p/python-setuptools.rb

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ class PythonSetuptools < Formula
44
url "https://files.pythonhosted.org/packages/18/5d/3bf57dcd21979b887f014ea83c24ae194cfcd12b9e0fda66b957c69d1fca/setuptools-80.9.0.tar.gz"
55
sha256 "f36b47402ecde768dbfafc46e8e4207b4360c654f1f3bb84475f0a28628fb19c"
66
license "MIT"
7+
revision 1
78

89
bottle do
910
sha256 cellar: :any_skip_relocation, all: "83ebb533c2181540817970579431c38953d9743d68bea5b69799a790d726c4fe"
1011
end
1112

1213
depends_on "[email protected]" => [:build, :test]
1314
depends_on "[email protected]" => [:build, :test]
15+
depends_on "[email protected]" => [:build, :test]
1416

1517
def pythons
1618
deps.map(&:to_formula)
@@ -19,21 +21,12 @@ def pythons
1921
end
2022

2123
def install
22-
inreplace_paths = %w[
23-
_distutils/compilers/C/unix.py
24-
_vendor/platformdirs/unix.py
25-
]
26-
2724
pythons.each do |python|
2825
system python, "-m", "pip", "install", *std_pip_args, "."
2926

3027
# Ensure uniform bottles
3128
setuptools_site_packages = prefix/Language::Python.site_packages(python)/"setuptools"
3229
inreplace setuptools_site_packages/"_vendor/platformdirs/macos.py", "/opt/homebrew", HOMEBREW_PREFIX
33-
34-
inreplace_files = inreplace_paths.map { |file| setuptools_site_packages/file }
35-
inreplace_files += setuptools_site_packages.glob("_vendor/platformdirs-*dist-info/METADATA")
36-
inreplace inreplace_files, "/usr/local", HOMEBREW_PREFIX
3730
end
3831
end
3932

0 commit comments

Comments
 (0)