-
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
Poetry solve unnecessary dependency path #5731
Comments
poetry tries to produce a solution that is valid everywhere, not only in the place where you are running #4956 contains work in the general direction that you suggest, I think this can be treated as a duplicate of that. |
Yes this seems like what we need, especially for big project where we have our own targeted environment and don’t need to produce a solution that valid everywhere! Hope it will be released soon! |
so please close this as a duplicate |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).example pyproject.toml that can reproduce the behavior:
Issue
azure-identity
depends onmsal-extension
that in turn depends onportalocker
.msal-extension
has this requirement:Running in debug mode show that poetry tried to resolve 3 times:
In normal situation I understand why it would have this behaviour, but I wonder if there is anyway to optimize it? For example, the OS is definitely not Window, why do we have to try this?
Next, I tried to pin the version of portalocker to >=1.6 so that it would ignore the other condition, but it still tried to resolve for portalocker version >=1.0.
Would this be a waste of resource? In this toy example it seems ok, but in our current project, each run of the solver cost us 10 minutes, so rerun this 3 times and the poetry lock time is 30 minutes.
And we have this similar problem with other dependencies (for example pandas and numpy), making the numbers of retry bigger, and hence the lock time becomes hours.
The text was updated successfully, but these errors were encountered: