From d514d0679fcd947cd10f7ba9d0418855515c19d5 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 26 Mar 2026 15:29:29 +0900 Subject: [PATCH] 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 --- internal/rosa/rosa.go | 4 ++++ 1 file changed, 4 insertions(+) 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, ":")