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.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/rosa/python.go b/internal/rosa/python.go
index 54022bd7..8b363d87 100644
--- a/internal/rosa/python.go
+++ b/internal/rosa/python.go
@@ -26,7 +26,7 @@ type PipHelper struct {
var _ Helper = new(PipHelper)
// tools returns python and pytest if defaults are assumed.
-func (attr *PipHelper) tools() P {
+func (attr *PipHelper) tools(Toolchain) P {
if attr == nil || (!attr.SkipCheck && attr.Check == "") {
return P{_python, _pythonPyTest}
}
@@ -50,6 +50,10 @@ func (*PipHelper) wantsDir() (string, bool) { return `"$(mktemp -d)"`, false }
// script generates the pip3 install command.
func (attr *PipHelper) script(t Toolchain, name string) string {
+ if t.cross() {
+ panic(CrossError(name))
+ }
+
if attr == nil {
attr = new(PipHelper)
}