aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/python.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-23 13:55:17 +0900
committerOphestra <cat@gensokyo.uk>2026-05-23 14:00:18 +0900
commite5a40942982cae870f52a3d254feba70c0e46136 (patch)
treeb0f751324bd67edaa49c95f20204623264a1fa85 /internal/rosa/python.go
parent410c4f8bb08939c2de370da4ff6f6b13f48aaa1e (diff)
internal/rosa: remove unused helpers
These are no longer needed after migration. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/python.go')
-rw-r--r--internal/rosa/python.go32
1 files changed, 1 insertions, 31 deletions
diff --git a/internal/rosa/python.go b/internal/rosa/python.go
index d868efe3..3ebc1e08 100644
--- a/internal/rosa/python.go
+++ b/internal/rosa/python.go
@@ -1,17 +1,11 @@
package rosa
-import (
- "slices"
-
- "hakurei.app/internal/pkg"
-)
-
var (
_python = H("python")
_pythonPyTest = H("python-pytest")
)
-// PipHelper is the [Python] pip packaging helper.
+// PipHelper installs python packages from source using pip.
type PipHelper struct {
// Path elements joined with source.
Append []string
@@ -94,27 +88,3 @@ pip3 install \
'` + sourcePath.String() + `'
` + script
}
-
-// newPythonPackage registers a new [Python] package.
-func (s *S) newPythonPackage(
- name string, id int, description, website, version string,
- source pkg.Artifact, attrP *PackageAttr, attr *PipHelper,
- build P, extra ...ArtifactH,
-) {
- name = "python-" + name
- s.MustRegister(name, func(t Toolchain) (*Metadata, pkg.Artifact) {
- return &Metadata{
- Name: name,
- Description: description,
- Website: website,
- Version: version,
-
- Dependencies: slices.Concat(P{_python}, extra),
-
- ID: id,
- }, t.NewPackage(name, version, source, attrP, attr, slices.Concat(
- extra,
- build,
- )...)
- })
-}