Priority of .egg-info, .dist-info, and setup.py #4103
Labels
area/solver
Related to the dependency resolver
status/needs-consensus
Consensus among maintainers required
I am on the latest Poetry version.
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS version and name: macOS 11.3.1
Poetry version: 1.1.6
Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/4df62bef5bccf68667b8dd31c62e2a90
Issue
This is arguably not a poetry issue, but I think it'd be nice if poetry or its dependencies did something to avoid the problem I'm having. In addition to the
pyproject.toml
file I linked above, my toy example here also contains the directoryfoo
whose only contents is this setup.py file.To reproduce the problem I'm having, do the following:
pip install -e foo
.setup.py
file to depend on another package such asrequests
.poetry lock
.The problem here is that step (1) creates a
foo.egg-info
directory whichpoetry lock
uses in step (3) despite thesetup.py
file being modified to include other dependencies in step (2). Using the packages from my example here,poetry.lock
only includesurllib3
and notrequests
which I added as a dependency in step (2).Can
poetry
or its dependencies do something to avoid this issue?The text was updated successfully, but these errors were encountered: