prefix-dev / pixi

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

Add `pixi list --explict` #1216

Closed bollwyvl closed 1 month ago

bollwyvl commented 6 months ago

Problem description

As always: thanks for pixi!

The creaky old conda list --explicit --md5 format (broken hash, without PyPI deps, and all) is still the most portable thing for feeding into other tools such as constructor and dependency scanners.

While it would be possible to make a third-party contraption that extracted this data from the pixi.lock file, if the structure of even that is in flux (#1172), having a pixi list --explicit in the near term is likely the easiest thing to offer to folk that are otherwise curious about pixi, but need to ship installers.

An extra magic bonus would be not having to re-calculate a matrix with something akin to conda-lock's template mechanism:

pixi list --explicit --format="path/to/folder/{environment}-{platform}.conda.lock.txt"
ruben-arts commented 6 months ago

That could make sense! Not sure how hard it would be as pixi can still read conda lock like format using rattler

bollwyvl commented 6 months ago

Cool. Or, as pixi list already has a lot of options, having an pixi export (with explicit as the first of perhaps several formats) would make sense.

abkfenris commented 6 months ago

Cool. Or, as pixi list already has a lot of options, having an pixi export (with explicit as the first of perhaps several formats) would make sense.

Apixi export command was also my first thought from hacking around in list recently.

baszalmstra commented 2 months ago

Will be implemented in: https://github.com/prefix-dev/pixi/pull/1873

bollwyvl commented 1 month ago

Huzzah! Looking forward to the next release!