pixi
pixi copied to clipboard
Can't install pypi package by version, but success if by path
Checks
-
[X] I have checked that this issue has not already been reported.
-
[X] I have confirmed this bug exists on the latest version of pixi, using
pixi --version
.
Reproducible example
Issue description
pixi fail to resolve pypi dependencies by version, but it will succeed when by path
Additionally, I successfully installed this package by [email protected]
.
Expected behavior
Can successfully resolve pypi dependencies through version
I think this again has to do with the system-requirements
. Could you try with:
[system-requirements]
libc = "2.31"
I personally can not recreate this issue as I can't seem to find the package at all.
Still doesn't work.
Is there a way to get alpha-flow2 for me?
Sorry, this is a private package, but I will continue to investigate. At present, I found that the UV only detects the wheel of py311, and does not detect the wheel of py37, resulting in the inability to install py37.
selfhost pypi index returns
- alpha-flow2.py311.wheel
- alpha-flow2.py37.wheel
I guess whether the UV matches the package of the first wheel and then doesn't match any further.
I've found the reason. The default value for default_glibc_version
is 2.17, which causes the largest manylinux not to be less than it. However, the package I installed requires 2.31.
https://github.com/prefix-dev/pixi/blob/66ce6cf69e9b8ff9bc7b427cce00c8b555165171/src/project/virtual_packages.rs#L17-L19
https://github.com/prefix-dev/pixi/blob/66ce6cf69e9b8ff9bc7b427cce00c8b555165171/src/pypi_tags.rs#L19-L53
So I just need to specify system-requirements libc = "2.31"
I'm sorry for my typo, I did indeed mean libc
with my system-requirements example. Thanks for the full answer!