internal/rosa/python: migrate setuptools to wrapper
All checks were successful
Test / Create distribution (push) Successful in 1m3s
Test / Sandbox (push) Successful in 2m47s
Test / Hakurei (push) Successful in 3m56s
Test / ShareFS (push) Successful in 4m4s
Test / Sandbox (race detector) (push) Successful in 6m2s
Test / Hakurei (race detector) (push) Successful in 7m54s
Test / Flake checks (push) Successful in 2m9s

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-04-19 15:36:43 +09:00
parent 9fd67e47b4
commit 3981d44757

View File

@@ -210,32 +210,21 @@ func newPypi(
} }
} }
func (t Toolchain) newSetuptools() (pkg.Artifact, string) { func init() {
const ( const (
version = "82.0.1" version = "82.0.1"
checksum = "nznP46Tj539yqswtOrIM4nQgwLA1h-ApKX7z7ghazROCpyF5swtQGwsZoI93wkhc" checksum = "nznP46Tj539yqswtOrIM4nQgwLA1h-ApKX7z7ghazROCpyF5swtQGwsZoI93wkhc"
) )
return t.NewPackage("setuptools", version, newFromGitHub( artifactsM[Setuptools] = newPythonPackage(
"pypa/setuptools", "setuptools", 4021,
"v"+version, checksum, "the autotools of the Python ecosystem",
), nil, &PipHelper{ "https://pypi.org/project/setuptools/",
BuildIsolation: true, version, newFromGitHub(
}), version "pypa/setuptools",
} "v"+version, checksum,
func init() { ), nil, &PipHelper{
artifactsM[Setuptools] = Metadata{ BuildIsolation: true,
f: Toolchain.newSetuptools, }, nil)
Name: "python-setuptools",
Description: "the autotools of the Python ecosystem",
Website: "https://pypi.org/project/setuptools/",
Dependencies: P{
Python,
},
ID: 4021,
}
} }
func init() { func init() {