at 17.09-beta 603 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 15envHooks+=(addPythonPath) 16 17# Determinism: The interpreter is patched to write null timestamps when compiling python files. 18# This way python doesn't try to update them when we freeze timestamps in nix store. 19export DETERMINISTIC_BUILD=1; 20# Determinism: We fix the hashes of str, bytes and datetime objects. 21export PYTHONHASHSEED=0;