From e5a40942982cae870f52a3d254feba70c0e46136 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 23 May 2026 13:55:17 +0900 Subject: internal/rosa: remove unused helpers These are no longer needed after migration. Signed-off-by: Ophestra --- internal/rosa/python.go | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) (limited to 'internal/rosa/python.go') 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, - )...) - }) -} -- cgit v1.3.1