armbian-next: Python tools (aggregation/patching): use separate pycache dir in ./cache; use unbuffered stdout/stderr
This commit is contained in:
parent
59031be6b3
commit
7987dad34d
@ -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.
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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}"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user