aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-04-19 21:35:12 +0900
committerOphestra <cat@gensokyo.uk>2026-04-19 21:38:44 +0900
commit9ef84d3904065618d17e757aabc1611343b37ab6 (patch)
tree0f484902a894dce375e2dcf1ffe879ffe712ea75
parent3b7b6e51fb2a7fbdd825ae56ce6b74e416cf9347 (diff)
internal/rosa/python: setuptools-scm artifact
Awful hack required by many packages. Signed-off-by: Ophestra <cat@gensokyo.uk>
-rw-r--r--internal/rosa/all.go4
-rw-r--r--internal/rosa/meson.go2
-rw-r--r--internal/rosa/python.go50
3 files changed, 53 insertions, 3 deletions
diff --git a/internal/rosa/all.go b/internal/rosa/all.go
index ffbdde85..dc50fcee 100644
--- a/internal/rosa/all.go
+++ b/internal/rosa/all.go
@@ -139,12 +139,14 @@ const (
PythonPyTest
PythonPyYAML
PythonPygments
+ PythonSetuptools
+ PythonSetuptoolsSCM
+ PythonVCSVersioning
QEMU
Rdfind
Readline
Rsync
Sed
- Setuptools
SPIRVHeaders
SPIRVTools
SquashfsTools
diff --git a/internal/rosa/meson.go b/internal/rosa/meson.go
index 163a0deb..cb735e55 100644
--- a/internal/rosa/meson.go
+++ b/internal/rosa/meson.go
@@ -44,7 +44,7 @@ python3 ./run_project_tests.py \
--backend=ninja
`,
},
- Setuptools,
+ PythonSetuptools,
PkgConfig,
CMake,
Ninja,
diff --git a/internal/rosa/python.go b/internal/rosa/python.go
index 7eefb8e4..f8f753a9 100644
--- a/internal/rosa/python.go
+++ b/internal/rosa/python.go
@@ -244,7 +244,7 @@ func init() {
version = "82.0.1"
checksum = "nznP46Tj539yqswtOrIM4nQgwLA1h-ApKX7z7ghazROCpyF5swtQGwsZoI93wkhc"
)
- artifactsM[Setuptools] = newPythonPackage(
+ artifactsM[PythonSetuptools] = newPythonPackage(
"setuptools", 4021,
"the autotools of the Python ecosystem",
"https://pypi.org/project/setuptools/",
@@ -258,6 +258,54 @@ func init() {
func init() {
const (
+ version = "1.1.1"
+ checksum = "rXZixTsZcRcIoUC1LvWrjySsiXSv5uhW6ng2P-yXZrbdj7FrSrDeJLCfC2b-ladV"
+ )
+ artifactsM[PythonVCSVersioning] = newPythonPackage(
+ "vcs-versioning", 389421,
+ "core VCS versioning functionality extracted as a standalone library",
+ "https://setuptools-scm.readthedocs.io/en/latest/",
+ version, newFromGitHub(
+ "pypa/setuptools-scm",
+ "vcs-versioning-v"+version, checksum,
+ ), &PackageAttr{
+ Env: []string{
+ "SETUPTOOLS_SCM_PRETEND_VERSION=" + version,
+ },
+ }, &PipHelper{
+ Append: []string{"vcs-versioning"},
+ }, nil,
+ PythonSetuptools,
+ PythonPackaging,
+ )
+}
+
+func init() {
+ const (
+ version = "10.0.5"
+ checksum = "vTN_TPd-b4Wbsw5WmAcsWjrs-FNXXznOeVTDnb54NtXve9Oy-eb2HPy-RG3FzNqp"
+ )
+ artifactsM[PythonSetuptoolsSCM] = newPythonPackage(
+ "setuptools-scm", 7874,
+ "extracts Python package versions from Git or Mercurial metadata",
+ "https://setuptools-scm.readthedocs.io/en/latest/",
+ version, newFromGitHub(
+ "pypa/setuptools-scm",
+ "setuptools-scm-v"+version, checksum,
+ ), &PackageAttr{
+ Env: []string{
+ "SETUPTOOLS_SCM_PRETEND_VERSION=" + version,
+ },
+ }, &PipHelper{
+ Append: []string{"setuptools-scm"},
+ }, nil,
+ PythonSetuptools,
+ PythonVCSVersioning,
+ )
+}
+
+func init() {
+ const (
version = "3.12.0"
checksum = "VcTsiGiDU1aPLbjSPe38f9OjJDCLcxFz9loObJqUI1ZxDHXAaQMxBpNyLz_G1Rff"
)