diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-21 15:35:48 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-21 15:36:10 +0900 |
| commit | cbf18b302d51c3e667ebe06cfebb14b90ccc93b7 (patch) | |
| tree | c3ad2222ae0e28cf00f11d305a44b8fb900cbf6f /internal/rosa/python.go | |
| parent | 1acb5b010507dd2246b77b8c856612b86cb2eda4 (diff) | |
internal/rosa/package: migrate nss
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/python.go')
| -rw-r--r-- | internal/rosa/python.go | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/internal/rosa/python.go b/internal/rosa/python.go index d80aee76..af4580e8 100644 --- a/internal/rosa/python.go +++ b/internal/rosa/python.go @@ -6,8 +6,10 @@ import ( "hakurei.app/internal/pkg" ) -// Python is the python interpreter used by [PipHelper]. -var Python = H("python") +var ( + _python = H("python") + _pythonPyTest = H("python-pytest") +) // PipHelper is the [Python] pip packaging helper. type PipHelper struct { @@ -29,15 +31,12 @@ type PipHelper struct { var _ Helper = new(PipHelper) -// pythonPyTest is used by [PipHelper] for automated testing. -var pythonPyTest = H("python-pytest") - // extra returns python, or pytest if defaults are assumed. func (attr *PipHelper) extra(int) P { if attr == nil || (!attr.SkipCheck && attr.Check == "") { - return P{pythonPyTest} + return P{_pythonPyTest} } - return P{Python} + return P{_python} } // wantsChmod returns true. @@ -113,7 +112,7 @@ func (s *S) newPythonPackage( Website: website, Version: version, - Dependencies: slices.Concat(P{Python}, extra), + Dependencies: slices.Concat(P{_python}, extra), ID: id, }, t.NewPackage(name, version, source, attrP, attr, slices.Concat( |
