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
15addEnvHooks "$hostOffset" 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;
22# Determinism. Whenever Python is included, it should not check user site-packages.
23# This option is only relevant when the sandbox is disabled.
24export PYTHONNOUSERSITE=1;