diff options
Diffstat (limited to 'internal/rosa/python.go')
| -rw-r--r-- | internal/rosa/python.go | 32 |
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, - )...) - }) -} |
