diff options
| author | Daniël de Kok <me@danieldk.eu> | 2020-06-06 09:48:21 +0200 |
|---|---|---|
| committer | Daniël de Kok <me@danieldk.eu> | 2020-06-06 10:05:26 +0200 |
| commit | e2309df85ead6611394693ead92ca99a94caec4a (patch) | |
| tree | 6d42a70de273f0365efad9d323d6fa44838e2813 /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch | |
| parent | cff356b82dac00704576c2b3f0893f1bb04be646 (diff) | |
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.
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions
