diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-03-26 15:29:29 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-03-26 15:29:29 +0900 |
| commit | d514d0679fcd947cd10f7ba9d0418855515c19d5 (patch) | |
| tree | 0acab246a95c33afd80af86d01ee9a2c93c88837 /internal | |
| parent | 4407892632d6cd7df455e584aa4efc22a2012f78 (diff) | |
internal/rosa: set PYTHONUNBUFFERED=1
Some python tools try to be clever and buffers output. This makes the build process appear to hang and is quite frustrating. Instead of trying to address this on a case-by-case basis, this is turned off globally for the interpreter.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/rosa/rosa.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/rosa/rosa.go b/internal/rosa/rosa.go index 51de7648..b6a2c023 100644 --- a/internal/rosa/rosa.go +++ b/internal/rosa/rosa.go @@ -199,6 +199,10 @@ func lastIndexFunc[S ~[]E, E any](s S, f func(E) bool) (i int) { // fixupEnviron fixes up PATH, prepends extras and returns the resulting slice. func fixupEnviron(env, extras []string, paths ...string) []string { + // some python tools try to be clever and buffers their output, making the + // build process appear to hang + env = append(env, "PYTHONUNBUFFERED=1") + const pathPrefix = "PATH=" pathVal := strings.Join(paths, ":") |
