diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-04-19 15:36:43 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-04-19 15:36:43 +0900 |
| commit | 3981d44757ea8ebbd8256a5eb77af2ba7c481e19 (patch) | |
| tree | ccb116485dcc6ad11498d1b4fe4ae4a37e234f43 | |
| parent | 9fd67e47b4433168ac8ab49fce7a60876333f4bb (diff) | |
internal/rosa/python: migrate setuptools to wrapper
Signed-off-by: Ophestra <cat@gensokyo.uk>
| -rw-r--r-- | internal/rosa/python.go | 33 |
1 files changed, 11 insertions, 22 deletions
diff --git a/internal/rosa/python.go b/internal/rosa/python.go index 88c04628..4746f4a7 100644 --- a/internal/rosa/python.go +++ b/internal/rosa/python.go @@ -210,32 +210,21 @@ func newPypi( } } -func (t Toolchain) newSetuptools() (pkg.Artifact, string) { +func init() { const ( version = "82.0.1" checksum = "nznP46Tj539yqswtOrIM4nQgwLA1h-ApKX7z7ghazROCpyF5swtQGwsZoI93wkhc" ) - return t.NewPackage("setuptools", version, newFromGitHub( - "pypa/setuptools", - "v"+version, checksum, - ), nil, &PipHelper{ - BuildIsolation: true, - }), version -} -func init() { - artifactsM[Setuptools] = Metadata{ - f: Toolchain.newSetuptools, - - Name: "python-setuptools", - Description: "the autotools of the Python ecosystem", - Website: "https://pypi.org/project/setuptools/", - - Dependencies: P{ - Python, - }, - - ID: 4021, - } + artifactsM[Setuptools] = newPythonPackage( + "setuptools", 4021, + "the autotools of the Python ecosystem", + "https://pypi.org/project/setuptools/", + version, newFromGitHub( + "pypa/setuptools", + "v"+version, checksum, + ), nil, &PipHelper{ + BuildIsolation: true, + }, nil) } func init() { |
