1
0
forked from rosa/hakurei

internal/rosa/python: append to source path

This gets around messy projects with multiple packages.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-04-19 17:51:00 +09:00
parent 8ee53a5164
commit f8902e3679

View File

@@ -83,6 +83,8 @@ func init() {
// PipHelper is the [Python] pip packaging helper. // PipHelper is the [Python] pip packaging helper.
type PipHelper struct { type PipHelper struct {
// Path elements joined with source.
Append []string
// Whether to omit --no-build-isolation. // Whether to omit --no-build-isolation.
BuildIsolation bool BuildIsolation bool
// Whether to enter source after install. // Whether to enter source after install.
@@ -133,7 +135,7 @@ pip3 install \
--no-index \ --no-index \
--prefix=/system \ --prefix=/system \
--root=/work \` + extra + ` --root=/work \` + extra + `
'/usr/src/` + name + `' '` + AbsUsrSrc.Append(name).Append(attr.Append...).String() + `'
` + script ` + script
} }