mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
pypi: stop excluding setuptools
This commit is contained in:
parent
3821fab241
commit
ecc60a13e0
@ -249,9 +249,18 @@ module PyPI
|
||||
end
|
||||
end
|
||||
|
||||
python_deps = formula.deps
|
||||
.select { |d| d.name.match?(/^python(@.+)?$/) }
|
||||
.map(&:to_formula)
|
||||
.sort_by(&:version)
|
||||
.reverse
|
||||
|
||||
extra_packages = (extra_packages || []).map { |p| Package.new p }
|
||||
exclude_packages = (exclude_packages || []).map { |p| Package.new p }
|
||||
exclude_packages += %w[argparse pip setuptools wsgiref].map { |p| Package.new p }
|
||||
exclude_packages += %w[argparse pip wsgiref].map { |p| Package.new p }
|
||||
if python_deps.first && python_deps.first.version < Version.new("3.12")
|
||||
exclude_packages.append(Package.new("setuptools"))
|
||||
end
|
||||
# remove packages from the exclude list if we've explicitly requested them as an extra package
|
||||
exclude_packages.delete_if { |package| extra_packages.include?(package) }
|
||||
|
||||
@ -277,11 +286,6 @@ module PyPI
|
||||
end
|
||||
end
|
||||
|
||||
python_deps = formula.deps
|
||||
.map(&:to_formula)
|
||||
.select { |f| f.name.start_with?("python@") }
|
||||
.sort_by(&:version)
|
||||
.reverse
|
||||
python_name = if python_deps.empty?
|
||||
"python"
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user