nixpkgs/pkgs/development/interpreters/python/cpython
Frederik Rietdijk 46409b5c32 Python: add sitecustomize.py, listen to NIX_PYTHONPATH
This commit adds a Nix-specific module that recursively adds paths that
are on `NIX_PYTHONPATH` to `sys.path`. In order to process possible
`.pth` files `site.addsitedir` is used.

The paths listed in `PYTHONPATH` are added to `sys.path` afterwards, but
they will be added before the entries we add here and thus take
precedence.

The reason for adding support for this environment variable is that we
can set it in a wrapper without breaking support for `PYTHONPATH`.
2019-07-13 09:37:33 +02:00
..
2.7 Python: add sitecustomize.py, listen to NIX_PYTHONPATH 2019-07-13 09:37:33 +02:00
3.5 python3{5,6}: Reintroduce bytecode determinism 2019-04-18 08:12:29 +02:00
3.6 CPython: merge expressions of interpreters 2019-01-04 10:45:22 +01:00
3.7 python37: fix build on macOS 2019-04-15 10:49:34 -07:00
3.8 python38: init at 3.8.0b2 2019-07-09 15:31:37 +02:00
docs Generate python3 docs 2019-04-28 09:24:01 +02:00
default.nix Python: add sitecustomize.py, listen to NIX_PYTHONPATH 2019-07-13 09:37:33 +02:00