pixi icon indicating copy to clipboard operation
pixi copied to clipboard

Force package build in the same version

Open Elimiriel opened this issue 11 months ago • 4 comments

Problem description

It is necessary that search, (global)install, and add command should have feature for designate different builds of package or module on the same version number since CPU, GPU(cuda), and other possible device types are in. For example, qiskit-aer module that simulates quantum computers requires special CUDA|GPU build for HW accelerations but pixi has fixed (global) install|add CPU("latest" in the same version) build only. It should be possible since rattler supports setting build for module as their document, however I couldn't find a document or symbol about pixi command about setting package versions only, nor build.

Elimiriel avatar Dec 30 '25 08:12 Elimiriel

Correct me if I missunderstood. Do you mean specifying a build string as a dependency in pixi global install or pixi add?

If so, check out the pixi global install documentation. It has a few examples on how to use the matchspec specifier. I agree this could be more properly explained elsewhere.

ruben-arts avatar Dec 30 '25 13:12 ruben-arts

Correct me if I missunderstood. Do you mean specifying a build string as a dependency in pixi global install or pixi add?

If so, check out the pixi global install documentation. It has a few examples on how to use the matchspec specifier. I agree this could be more properly explained elsewhere.

That's correct. It should be explained in easy to notice.

Elimiriel avatar Dec 31 '25 04:12 Elimiriel

I think as outcome of this issue we need to update docs page

nichtmacho avatar Jan 02 '26 10:01 nichtmacho

Started on it in #5224

ruben-arts avatar Jan 02 '26 10:01 ruben-arts