aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/python.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/rosa/python.go')
-rw-r--r--internal/rosa/python.go15
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(