-
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
Arbitrary Equality Requirements #7256
Comments
Is |
Hi @radoering, in this case the source was the same, and changing them to be different was possible and fixed my issue, Thanks. However, I still think the feature has merit, since changing the sources is not always possible. |
Any update on this? I'm facing the same issue when installing
There are two versions for |
This issue makes it really hard to add a CPU-only dependency to PyTorch 2.1.0 RC which would work on both Linux and macOS. I can't just have
Because for Intel Linux and Windows the package source offers I guess currently the only workaround would be to upload the macOS packages to a separate, locally managed, source? Edit:
|
while it is superficially appealing to use arbitrary equality to resolve this sort of cpu-only local-version stuff - it would not be consistent with the intention of the spec:
ie it is not meant to be for packages that are using perfectly good PEP440 versions - but which are overloading those versions with more meaning than they were ever capable of carrying. I would caution against trying to work around mis-use of local versions by layering on top of that mis-use of arbitrary equality. if there really is a use case here that torch etc cannot resolve within the existing python version specifications: engage with the python packaging authority and get the specs improved. |
Wish poetry would stop resisting implementation of python standards. Even if use of the arbitrary equality clause is for corner cases, it is still there for a reason. And it is not like implementing this poetry would be difficult. Please stop giving us reasons to not adopt poetry. |
I do not think we decided on not implementing it. After all, this feature request is still open. It is just too low priority for anyone to invest more time on the implementation. I gave it a (halfhearted) try myself some time ago, but abandoned it because it was not as simple as I had expected first. |
I see. I would consider trying to work on it but only if I thought there was a very good chance that it would be accepted. |
Feature Request
Hi, I think poetry should support arbitrary equality requirements as described in PEP 440. Current behavior is problematic in case of the following usage:
Results in only the
0.81+upstream
version ever being installed (as though installed withpip install xgboost==0.81
, which too installs0.81+upstream
if available)I propose to make the following requirement legal
Which will install
0.81+upstream
on linux systems and0.81
on non-linux systems (install as though withpip install xgboost===0.81
)The text was updated successfully, but these errors were encountered: