1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/interpreters/python
Daniël de Kok 1e2b6695cf pythonPackages.setuptoolsBuildHook: do not build in an isolated environment
When a PEP 517 project file is present, pip will not install
prerequisites in `site-packages`:

https://pip.pypa.io/en/stable/reference/pip/#pep-517-and-518-support

For the shell hook, this has the consequence that the generated
temporary directory that is added to PYTHONPATH does not contain
`site.py`. As a result, Python does not discover the Python
module. Thus when a user executes nix-shell in a project, they cannot
import the project's Python module.

This change adds the `--no-build-isolation` option to pip when
creating the editable environment, to correctly generate `site.py`,
even when a `pyproject.toml` is present.
2020-06-06 10:05:26 +02:00
..
catch_conflicts
cpython Merge staging-next into staging 2020-06-05 19:42:16 +02:00
graalpython
hooks pythonPackages.setuptoolsBuildHook: do not build in an isolated environment 2020-06-06 10:05:26 +02:00
manylinux
pypy pypy: Remove bootstrap python from closure 2020-05-23 11:47:11 +01:00
tests Python: fix virtualenv with Python 2 2020-05-24 10:43:24 +02:00
update-python-libraries python: add use-pkgs-prefix option to update script 2020-03-27 01:47:30 -07:00
default.nix python3Minimal: override python38, not python3 2020-06-05 16:46:40 +02:00
fetchpypi.nix
mk-python-derivation.nix python: add pythonNamespacesHook 2020-03-18 12:20:51 -07:00
run_setup.py
setup-hook.nix
setup-hook.sh
sitecustomize.py Python: fix virtualenv with Python 2 2020-05-24 10:43:24 +02:00
tests.nix Python: fix virtualenv with Python 2 2020-05-24 10:43:24 +02:00
with-packages.nix
wrap-python.nix
wrap.sh python.pkgs.wrapPython: get rid of warning 2019-12-30 16:46:55 +01:00
wrapper.nix Python: introduce NIX_PYTHONPREFIX in order to set site.PREFIXES 2020-03-14 21:39:31 +00:00