forked from rosa/hakurei
internal/rosa: remove unused helpers
These are no longer needed after migration. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -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,
|
||||
)...)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user