-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Order of entries in pyproject.toml [dependencies] defines what versions get installed. #7965
Comments
There's more on the general topic here: #5161. We do rely on the order to aid in prioritization. |
The Numba / NumPy thing is a common issue. If you put NumPy first, then we prioritize solving for the last version of NumPy, which leads us to backtrack to a version of Numba that does not include a strict upper-bound. I'd suggest adding constraints to your version specifiers if you want to ensure that uv lands on a certain solve! |
Similar issues here #7881 and here #6281 (comment) RE Numba. |
Hi, please unclose this bug report or modify the documentation. However, order of dependencies does not matter for pip. |
I do really really like this project, don't think I don't. It's just not working here as advertised and I hope this can be fixed. |
There are always going to be minor differences between pip and uv, and we cover them in the docs. In particular, there's a section on package priority here. |
Hi, at least on their documentation, pip people write that dependencies are topologically sorted. Have a look here: Maybe that could provide some solution to the problem? Again, I am only trying not to make user check all of n! possibilities: think how much electricity that will save ;) Best wishes, |
In particular, I indeed do get the same dependencies installed with pip independent of the order in the example I posted above (numpy + numba thingie). |
I also do get it that you have tons of work on your plate, and that this is not a game-breaker as such, but in the context I would still consider this being a bug, albeit one that can be handled later on... |
Hi,
I have a funny problem here, might be an application issue of course.
I run your code inside 2 independent docker containers with one common Dockerfile:
After setting up both images, in the first one I run this:
and in the second one this:
the only difference between the two pandas_ops branches (that's a simply repo of mine) is the order of the dependencies:
in the first container it is:
and this works. on the second one, it is:
and this fails.
numba
has a specific lower version ofnumpy
as a dependency.I cannot put the versions above for it would miss the point. Of course, the problem might disappear later on when numba devs catch up with numpy. But as such, it seems to be and issue with
uv
that putting a dependency of another dependency creates confusion.In the first container I get:
on the second one:
both are using:
Best wishes,
The text was updated successfully, but these errors were encountered: