From cbf18b302d51c3e667ebe06cfebb14b90ccc93b7 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 21 May 2026 15:35:48 +0900 Subject: internal/rosa/package: migrate nss Signed-off-by: Ophestra --- internal/rosa/python.go | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'internal/rosa/python.go') 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( -- cgit v1.3.1