mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 12:14:10 +00:00
1e2b6695cf
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. |
||
---|---|---|
.. | ||
default.nix | ||
egg-build-hook.sh | ||
egg-install-hook.sh | ||
egg-unpack-hook.sh | ||
flit-build-hook.sh | ||
pip-build-hook.sh | ||
pip-install-hook.sh | ||
pytest-check-hook.sh | ||
python-catch-conflicts-hook.sh | ||
python-imports-check-hook.sh | ||
python-namespaces-hook.sh | ||
python-remove-bin-bytecode-hook.sh | ||
python-remove-tests-dir-hook.sh | ||
setuptools-build-hook.sh | ||
setuptools-check-hook.sh | ||
venv-shell-hook.sh | ||
wheel-unpack-hook.sh |