-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Add pkg_resources to UNSAFE_PACKAGES. (bugfix needed for 1.1) #2624
Conversation
@abn please have a look at this PR. |
Please do not forget about this PR. Needed for 1.1. |
@PetterS If we are detecting For what it is worth, I am unable to reproduce the issue. |
@abn It has been removed from my virtualenv at least two times using 1.1a3. After that, installation of other packages fail and the only solution is to delete the virtualenv and start over. |
Reproduces quite easily for me:
pyproject.toml:
|
@PetterS thanks for the reproducer. Based on your output, I think there is something wrong with how we detect installed packages. Also, note version |
Merge this PR as a work-around? In any case, I filed an issue as well for further discusssion. |
@PetterS I don't think this is the right solution. And if this is indeed an issue, we need to fix the issue prior to 1.1.0 GA. I tried your $ poetry install --remove-untracked
Installing dependencies from lock file
No dependencies to install or update
$ ls .venv/lib/python3.8/site-packages/pkg_resources/
extern __init__.py py31compat.py __pycache__ _vendor
$ poetry debug info
Poetry
Version: 1.1.0a3
Python: 3.8.3
Virtualenv
Python: 3.8.3
Implementation: CPython
Path: /path/to/project/.venv
Valid: True
System
Platform: linux
OS: posix
Python: /usr In your case, this could be to do somehow with the virtual environment setup. Happy to help narrow this down on Discord. |
|
Let's close this PR and keep the discussion in the issue. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
pkg_resources
is part ofsetuptools
. If it is not on this list,--remove-untracked
may remove it from the virtualenv, breaking subsequent installation of packages.