-
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 install two version of pandas library at the same time #8407
Comments
Maybe related to #4703? |
this is a bizarre use of extras, which are intended for... well, extra requirements. Not for limiting existing requirements. clearly the result is not great but the right advice is still: don't do that (and as a result I guess this is unlikely to be high up anyone's list) |
This was a minimal reproducible example. The most common example uses two extras, where one extras requires pandas<1.6.0 and the other pandas>=1.0. If you install each extras separately, everything is fine. However, when installing them together poetry installs two versions of pandas again. Use the following setup.py to get this example: from setuptools import setup
setup(name="mypackage",extras_require={"all": "pandas<1.6.0", "something": "pandas>=1.0"}) Use both extras to install nested package: poetry add ./mypackage/ --extras all --extras something |
Might be a duplicate of #8380. Please try if the PR that resolves that issue also resolves your issue. |
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) and have included the output below.Issue
When installing a package with special dependencies and extras, poetry fails and decides to install two versions of pandas library at the same time (causing the library to fail).
Steps to Reproduce
setup.py
:poetry show
python -c "import pandas"
(Each time there is a different error. if one library is downloaded much faster than the second, there is no error at all):Expected behavior
When installing the
mypackage
nested package with extras=all, the pandas library has two restrictions: pandas>=1.0 and pandas<1.6.0. So I expect poetry to install the latest possible version of pandas (1.5.3)The text was updated successfully, but these errors were encountered: