prefix-dev / pixi

Package management made easy
https://pixi.sh
BSD 3-Clause "New" or "Revised" License
2.4k stars 137 forks source link

Python 2.0 selected when installing with zlib #1292

Open benmoss opened 2 months ago

benmoss commented 2 months ago

Checks

Reproducible example

On an osx-arm64 machine with pixi 0.20.1

pixi init --platform linux-64 --platform osx-arm64
pixi add python zlib

Issue description

It picks Python 2.0 for linux-64 and Python 3.12.3 for osx-arm64

Expected behavior

I think it should pick 3.12.3 for both

ruben-arts commented 2 months ago

That is an interesting find! Our solver tries to use the highest versions but this time it got exactly what you don't want.

python 3.x.x has a dependency of libzlib of <=1.2.13,<1.3.0a0 but for some reason the solver chose to pick libz 1.3.1 before the python version.

@baszalmstra Do you know if this is a issue in pixi or this is is part of resolvo. And you we could avoid this?

A quick fix would be to limit zlib or python yourself. E.g. pixi add "python>3.7" zlib