diff options
| author | Martin Häcker <spamfaenger@gmx.de> | 2025-11-18 21:53:20 +0100 |
|---|---|---|
| committer | Martin Häcker <spamfaenger@gmx.de> | 2025-11-18 21:53:20 +0100 |
| commit | f5eb10b52cc8f54e1970176e26d2e6627bd240ca (patch) | |
| tree | cde3e6913c7402fb96a40e62ddf16035dcbf0509 /pkgs/development/python-modules/python-openstackclient/git@git.tavy.me:nixos | |
| parent | f0a5e10f07ee1317ffc2ecbd032f18b0b463fd8f (diff) | |
virtualisation/rosetta: Perserve ArgvZero to fix python virtualenv creation
Preserving ArgvZero is supported from MacOS 14 Sonoma forward, which is
the current minimum supported version of nixpkgs. See
https://developer.apple.com/documentation/virtualization/running-intel-binaries-in-linux-vms-with-rosetta#Mount-the-Shared-Directory-and-Register-Rosetta
The necessity of this fix came up with python virtual environments,
because python uses the path of the executable (argv zero) to determine
if it should load a virtual environment or not. In the past this was
overriden with NIX_PYTHONEXECUTABLE, NIX_PYTHONPATH and
NIX_PYTHONPREFIX, but we stopped doing that for the python interpreter
so it works more like a normal python interpreter in nix.
Without those variables, in the rosetta emulated case, python was no
longer able to determine where it was called from, and thus could not
correctly activate virtual environments in that case.
Diffstat (limited to 'pkgs/development/python-modules/python-openstackclient/git@git.tavy.me:nixos')
0 files changed, 0 insertions, 0 deletions
