diff --git a/lib/functions/compilation/kernel-patching.sh b/lib/functions/compilation/kernel-patching.sh index d4caedebb0..61ba100bb4 100644 --- a/lib/functions/compilation/kernel-patching.sh +++ b/lib/functions/compilation/kernel-patching.sh @@ -12,6 +12,8 @@ function kernel_main_patching_python() { # array with all parameters; will be auto-quoted by bash's @Q modifier below declare -a params_quoted=( + "PYTHONUNBUFFERED=yes" # Python should not buffer output, so we can see it in real time. + "PYTHONPYCACHEPREFIX=${SRC}/cache/pycache" # Python should not use its own cache, but use our own. "LOG_DEBUG=${patch_debug}" # Logging level for python. "SRC=${SRC}" # Armbian root "OUTPUT=${temp_file_for_output}" # Output file for the python script. diff --git a/lib/functions/compilation/uboot-patching.sh b/lib/functions/compilation/uboot-patching.sh index 6fb41400be..c5f27b4f07 100644 --- a/lib/functions/compilation/uboot-patching.sh +++ b/lib/functions/compilation/uboot-patching.sh @@ -6,6 +6,8 @@ function uboot_main_patching_python() { temp_file_for_output="$(mktemp)" # Get a temporary file for the output. # array with all parameters; will be auto-quoted by bash's @Q modifier below declare -a params_quoted=( + "PYTHONUNBUFFERED=yes" # Python should not buffer output, so we can see it in real time. + "PYTHONPYCACHEPREFIX=${SRC}/cache/pycache" # Python should not use its own cache, but use our own. "LOG_DEBUG=${SHOW_DEBUG}" # Logging level for python. "SRC=${SRC}" # Armbian root "OUTPUT=${temp_file_for_output}" # Output file for the python script. diff --git a/lib/functions/configuration/aggregation.sh b/lib/functions/configuration/aggregation.sh index 2300cf38d4..ab6848ae43 100644 --- a/lib/functions/configuration/aggregation.sh +++ b/lib/functions/configuration/aggregation.sh @@ -6,6 +6,9 @@ function aggregate_all_packages() { # array with all parameters; will be auto-quoted by bash's @Q modifier below declare -a aggregation_params_quoted=( + "PYTHONUNBUFFERED=yes" # Python should not buffer output, so we can see it in real time. + "PYTHONPYCACHEPREFIX=${SRC}/cache/pycache" # Python should not use its own cache, but use our own. + "LOG_DEBUG=${SHOW_DEBUG}" # Logging level for python. "SRC=${SRC}" "OUTPUT=${temp_file_for_aggregation}"