nixpkgs/pkgs/development/interpreters/python/hooks
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
..
default.nix python: add pythonNamespacesHook 2020-03-18 12:20:51 -07:00
egg-build-hook.sh python: Add support for installing Python eggs 2020-01-08 13:59:04 +00:00
egg-install-hook.sh python: Add support for installing Python eggs 2020-01-08 13:59:04 +00:00
egg-unpack-hook.sh python: Add support for installing Python eggs 2020-01-08 13:59:04 +00:00
flit-build-hook.sh treewide: *Phase(s)? variables are optional 2019-11-01 14:44:44 -04:00
pip-build-hook.sh pythonPackages.pipBuildHook: do not build in an isolated environment 2020-06-06 10:05:26 +02:00
pip-install-hook.sh treewide: *Phase(s)? variables are optional 2019-11-01 14:44:44 -04:00
pytest-check-hook.sh pythonPackages.pytestCheckHook: disable setuptoolsCheckPhase 2020-05-11 22:12:08 +02:00
python-catch-conflicts-hook.sh treewide: Make still dont* Variables are optional in most cases 2019-11-01 14:44:44 -04:00
python-imports-check-hook.sh python: execute pythonImportsCheckPhase in subshell 2020-02-19 22:30:50 -08:00
python-namespaces-hook.sh python: add pythonNamespacesHook 2020-03-18 12:20:51 -07:00
python-remove-bin-bytecode-hook.sh treewide: Make still dont* Variables are optional in most cases 2019-11-01 14:44:44 -04:00
python-remove-tests-dir-hook.sh python: add pythonRemoveTestsDirHook 2020-03-03 20:01:00 +01:00
setuptools-build-hook.sh pythonPackages.setuptoolsBuildHook: do not build in an isolated environment 2020-06-06 10:05:26 +02:00
setuptools-check-hook.sh treewide: *Phase(s)? variables are optional 2019-11-01 14:44:44 -04:00
venv-shell-hook.sh python3Packages.venvShellHook: add postVenvCreation (#87850) 2020-05-16 09:34:11 +02:00
wheel-unpack-hook.sh treewide: *Phase(s)? variables are optional 2019-11-01 14:44:44 -04:00