-
Notifications
You must be signed in to change notification settings - Fork 998
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
uv add pyqt5
error
#7005
Comments
I did some digging and found that In this case, how to lock dependencies across platforms? In other words, how to avoid errors, after all, there is no problem with normal installation. |
This is an inherent problem with distributions that don't ship source distributions, and have limited platform support. We can't guarantee that the set of wheels will cover all the platforms you care about. I'd suggest adding a constraint like: [tool.uv]
constraint-dependencies = ["pyqt5-qt5 <=5.15.2"] |
It's the same problem as #5182, so gonna merge in there. |
So, is this a bug or expected behavior? I tried multiple different package managers(poetry and pdm) and all went wrong, but I felt we could do better, after all, this distribution pattern exists for many popular libraries, so how do we lock down dependencies? |
Since this is a Windows-only issue, wouldn't it be better to do this? deps = [
"pyqt5>=5.15.11; sys_platform != 'win32'",
"pyqt5<=5.15.2; sys_platform == 'win32'"
] |
Note: |
uv pip install pyqt5
works perfectlybut
uv add pyqt5
result error:uv version
uv 0.4.4 (3d75df6ab 2024-09-04)
os windows 10
The text was updated successfully, but these errors were encountered: