-
Notifications
You must be signed in to change notification settings - Fork 947
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install as user from git with pip install --user -e . does not work #3351
Comments
Thanks for pointing this out. I don't think we should be setting ENABLE_USER_SITE ourselves, like in the workaround you linked above. It has specific security meanings, for example: https://docs.python.org/3/library/site.html#site.ENABLE_USER_SITE From the discussion over there, another workaround is |
I don't get it, why it has security meanings. In python, there are several workarounds. So the security here is, that the user has no idea what he/she is doing and gets an error. I care more about usability and wasting time of someone that wants to use a package:
I think the right user site workaround would be |
From the docs I linked above:
My concern is overriding a system value that has ramifications throughout Python, and may have been set for specific security reasons, to work around what seems to be a pip bug. Thanks for the more correct user site workaround. I think that should go into the contributor docs, at the very least. |
This install workaround is documented in #3360. |
Description
pip
does not work well together withpyproject.toml
and a--user
flag.This is a common problem across several python projects and I got the impression, that the
pip
package won't fix it.Is it possible, that you fix it in your
setup.py
?PIP issue: pypa/pip#7953
Fix from another package: https://github.com/fgnt/paderbox/pull/58/files
Reproduce
Note: I have no write permissions to the python installation, but with the
--user
flag it should not be necessary.Expected behavior
No error message.
The text was updated successfully, but these errors were encountered: