Open
Description
In build_env.py
the environment variable PYTHONNOUSERSITE
is set:
pip/src/pip/_internal/build_env.py
Line 127 in 7b02273
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.