nixpkgs/pkgs/development/interpreters/python
Daniël de Kok e2309df85e pythonPackages.pipBuildHook: 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 pythonInterpreters.graalpython37: init 2019-10-22 09:16:18 +02:00
hooks pythonPackages.pipBuildHook: do not build in an isolated environment 2020-06-06 10:05:26 +02:00
manylinux Fix manylinux packages 2019-12-13 11:40:44 +01:00
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 pythonPackages.fetchPypi: support SRI hashes 2019-07-11 18:01:04 +02:00
mk-python-derivation.nix python: add pythonNamespacesHook 2020-03-18 12:20:51 -07:00
run_setup.py
setup-hook.nix
setup-hook.sh python: make it possible to disable the python setup-hook 2019-04-28 09:20:41 +02:00
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 Python: improve cross-compilation 2019-01-04 10:45:22 +01:00
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