Opened 3 years ago
Closed 3 years ago
#33044 closed Bug (fixed)
pyproject.toml breaks pip install into user site directory with editable source
Reported by: | Tim Graham | Owned by: | Carlton Gibson |
---|---|---|---|
Component: | Packaging | Version: | dev |
Severity: | Release blocker | Keywords: | |
Cc: | Florian Apolloner, Chris Jerdonek, Nick Pope | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The addition of pyproject.toml in PR 13994 causes pip install -e
into a user site directory to fail. See thread on the original PR.
Nick Pope proposes three possible options:
- The documentation approach -- using
--no-build-isolation
withpip install --editable --user
will work. - Add the following hack to setup.py in Django:
import site import sys site.ENABLE_USER_SITE = '--user' in sys.argv[1:]
- Revert the change that added build-system isolation until there is a blessed solution for editable installs with PEP 517.
Note:
See TracTickets
for help on using tickets.
Agreed, we should do something. I'd prefer the second option.