-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
C: PEP 517 impactAffected by PEP 517 processingAffected by PEP 517 processingC: build logicStuff related to metadata generation / wheel generationStuff related to metadata generation / wheel generationC: editableEditable installationsEditable installationsC: user schemeHandling of packages in user-specific directoriesHandling of packages in user-specific directoriestype: bugA confirmed bug or unintended behaviorA confirmed bug or unintended behavior
Description
In build_env.py
the environment variable PYTHONNOUSERSITE
is set:
pip/src/pip/_internal/build_env.py
Line 127 in 7b02273
'PYTHONNOUSERSITE': '1', |
This prevents editable installs with PYTHONUSERBASE=<some-user-base> pip3.8 install --user -e <some-file-path>
from succeeding if the user does not have write access to the base-Python site-packages directory.
This is a snapshot of the error.
running develop
WARNING: The user site-packages directory is disabled.
error: can't create or remove files in install directory
It may be that it is a deliberate design choice to disable editable installs under a user site directory. I personally needed this feature, however, and I am therefore setting site.ENABLE_USER_SITE = True
in setup.py
as a workaround.
ssbarnea, jwodder, WysokiStudent, astromancer, Logicbloke and 27 moreKarel-van-de-Plassche, ssbarnea and johnomotani
Metadata
Metadata
Assignees
Labels
C: PEP 517 impactAffected by PEP 517 processingAffected by PEP 517 processingC: build logicStuff related to metadata generation / wheel generationStuff related to metadata generation / wheel generationC: editableEditable installationsEditable installationsC: user schemeHandling of packages in user-specific directoriesHandling of packages in user-specific directoriestype: bugA confirmed bug or unintended behaviorA confirmed bug or unintended behavior