diff options
author | Stéphane Bidoul <stephane.bidoul@gmail.com> | 2021-10-13 17:43:23 +0200 |
---|---|---|
committer | Stéphane Bidoul <stephane.bidoul@gmail.com> | 2021-10-18 14:34:50 +0200 |
commit | ae512892ebbb3bc1e479f3168c7d67b13fc48057 (patch) | |
tree | ec50c0e06704e8a7853446b011ff6f171a10acd6 /src/pip/_internal/wheel_builder.py | |
parent | b0eb95bab97bea66c8b2d72ec17d152eb7cce130 (diff) | |
download | pip-ae512892ebbb3bc1e479f3168c7d67b13fc48057.tar.gz |
Prepare legacy editable metadata in isolated env
When there is a pyproject.toml, metadata preparation must be
done in the isolated build environment for legacy editable installs too
(fixes a regression).
Also detect earlier if an editable install must go through the
legacy install path, to be sure to run it in an environment
with the correct build requirements.
Diffstat (limited to 'src/pip/_internal/wheel_builder.py')
-rw-r--r-- | src/pip/_internal/wheel_builder.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pip/_internal/wheel_builder.py b/src/pip/_internal/wheel_builder.py index b4855a9a7..a9123a0f1 100644 --- a/src/pip/_internal/wheel_builder.py +++ b/src/pip/_internal/wheel_builder.py @@ -71,10 +71,8 @@ def _should_build( return False if req.editable: - if req.use_pep517 and req.supports_pyproject_editable is not False: - return True - # we don't build legacy editable requirements - return False + # we only build PEP 660 editable requirements + return req.supports_pyproject_editable() if req.use_pep517: return True |