at master 837 B view raw
1addPythonPath() { 2 addToSearchPathWithCustomDelimiter : PYTHONPATH $1/@sitePackages@ 3} 4 5toPythonPath() { 6 local paths="$1" 7 local result= 8 for i in $paths; do 9 p="$i/@sitePackages@" 10 result="${result}${result:+:}$p" 11 done 12 echo $result 13} 14 15if [ -z "${dontAddPythonPath:-}" ]; then 16 addEnvHooks "$hostOffset" addPythonPath 17fi 18 19# Determinism: The interpreter is patched to write null timestamps when compiling python files. 20# This way python doesn't try to update them when we freeze timestamps in nix store. 21export DETERMINISTIC_BUILD=1; 22# Determinism: We fix the hashes of str, bytes and datetime objects. 23export PYTHONHASHSEED=0; 24# Determinism. Whenever Python is included, it should not check user site-packages. 25# This option is only relevant when the sandbox is disabled. 26export PYTHONNOUSERSITE=1;