summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/rangehttpserver
diff options
context:
space:
mode:
authorqbisi <qbisicwate@gmail.com>2025-11-16 08:08:54 +0800
committerqbisi <qbisicwate@gmail.com>2025-11-16 11:19:14 +0800
commitabe61db737b8d682dd632fd60ba071757021d4d6 (patch)
treef893f36fa22aefb06b9d4517170d674219886acc /pkgs/development/python-modules/rangehttpserver
parent839a7d6dc22aac57dbe5753e87c3eea7bd976cb6 (diff)
python-env: wrap python executable with --resolve-argv0
This commit, together with https://github.com/NixOS/nixpkgs/pull/442540, changes the way python environments are built: * When generating wrappers for python executables, we inherit argv[0] from the wrapper. This causes python to initialize its configuration in the environment with all the correct paths. * We also resolve argv[0] to absolute path when invoking python from PATH. This helps set python's prefix correctly on Darwin. The end result is that python environments no longer appear to be venvs, and behave more like a vanilla python installation. In addition it's possible to create a venv using an environment and use packages from both the environment and the venv.
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions