pixi icon indicating copy to clipboard operation
pixi copied to clipboard

Can't install pypi package by version, but success if by path

Open zen-xu opened this issue 9 months ago • 4 comments

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

image image

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]. image

Expected behavior

Can successfully resolve pypi dependencies through version

zen-xu avatar May 15 '24 03:05 zen-xu

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.

ruben-arts avatar May 15 '24 07:05 ruben-arts

Still doesn't work.

zen-xu avatar May 15 '24 07:05 zen-xu

Is there a way to get alpha-flow2 for me?

ruben-arts avatar May 15 '24 09:05 ruben-arts

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.

zen-xu avatar May 15 '24 10:05 zen-xu

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

image

zen-xu avatar May 16 '24 08:05 zen-xu

So I just need to specify system-requirements libc = "2.31"

zen-xu avatar May 16 '24 08:05 zen-xu

I'm sorry for my typo, I did indeed mean libc with my system-requirements example. Thanks for the full answer!

ruben-arts avatar May 16 '24 08:05 ruben-arts