pixi icon indicating copy to clipboard operation
pixi copied to clipboard

Misleading prerelease hint for pypi dependency

Open nichmor opened this issue 1 year ago • 12 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

[dependencies]
python = "~=3.9.0"

[pypi-dependencies]
colorama = "~=5.0"

Issue description

During the resolution phase for pixi install it will fail and print a hint

hint: colorama was requested with a pre-release marker (e.g., colorama>=5.0,<6.dev0), but pre-releases weren't enabled (try:
      `--prerelease=allow`)

Screenshot 2024-05-08 at 17 54 40

This hint ( --prerelease=allow ) is not present in pixi install so it fail with following error:

Screenshot 2024-05-08 at 17 55 53

Expected behavior

Hide the tip or allow passing --prerelease=allow downstream from pixi to uv

nichmor avatar May 08 '24 14:05 nichmor

Related: https://github.com/prefix-dev/pixi/issues/1291

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

I ran into this issue trying to install arcade, because they depend on a prerelease of pyglet, see https://github.com/pythonarcade/arcade/issues/2358

Would be great if you could support installing such packages with pixi.

cdeil avatar Aug 31 '24 10:08 cdeil