nixpkgs/pkgs/development/interpreters/python/cpython
Jonas Chevalier 3d2bdd0788
python: implement PEP 668 (#229166)
Add a marker file to the python outputs that tells pip and other tooling
following PEP 668 that they should not be installing things system-wide.

This provides better feedback to the user and also potentially avoids issues in
single-user installs where the /nix/store is owned by the user.

For more details, see <https://peps.python.org/pep-0668/>

Here is how it currently looks like:

    $ pip install requests
    error: externally-managed-environment

    × This environment is externally managed
    ╰─> This command has been disabled as it tries to modify the immutable
        `/nix/store` filesystem.

        To use Python with Nix and nixpkgs, have a look at the online documentation:
        <https://nixos.org/manual/nixpkgs/stable/#python>.
2023-05-04 18:30:25 +02:00
..
2.7 Merge remote-tracking branch 'origin/master' into staging-next 2023-02-23 13:51:34 +00:00
3.7 python37: drop 2023-01-05 13:20:49 +01:00
3.8
3.9
3.10 python310: revert asyncio changes done in 3.10.9 2022-12-12 14:23:49 +01:00
3.11
3.12 python312: init at 3.12.0a2 2022-11-29 01:55:35 +01:00
docs python37: remove leftover files 2023-01-16 19:49:16 +08:00
default.nix python: implement PEP 668 (#229166) 2023-05-04 18:30:25 +02:00
loongarch-support.patch cpython: add loongarch triplets 2023-05-01 05:16:32 +08:00
mimetypes.patch
virtualenv-permissions.patch