pixi icon indicating copy to clipboard operation
pixi copied to clipboard

Allow pixi cache to differentiate between packages from different pypi repositories (or locally editable)

Open oliver-batchelor-work opened this issue 10 months ago • 5 comments

Problem description

If I have two locations of a package, one locally editable and one on a PyPI server. Both with the same name and version number - and I first install one of them, I can't get pixi to switch to the other one.

e.g. if I switch from using a wheel on my pypi server, then I change my pixi.toml to point at a locally editable one, then it will continue to use the wheel regardless.

I believe the same thing is true for switching between PyPI repositories, too. For example, a common thing is to have separate PyPI repositories for wheels compiled for different cuda versions. Let's say I am using cuda 12.6, then I update to cuda 13.0, and switch the PyPI repository I'm using. Pixi will still continue to use the cached 12.6 package.

oliver-batchelor-work avatar Jan 29 '26 00:01 oliver-batchelor-work

I know that we had a PR that fixed a similar issue - https://github.com/prefix-dev/pixi/pull/5254 , But I guess we have another edge case here.

nichtmacho avatar Jan 29 '26 10:01 nichtmacho

Indeed! Would be good to get a reproducer though :)

tdejager avatar Jan 29 '26 10:01 tdejager

@oliver-batchelor-work Do you think you can come up with a reproducer?

baszalmstra avatar Feb 13 '26 10:02 baszalmstra

@oliver-batchelor-work Gentle ping. 😺

baszalmstra avatar Mar 13 '26 10:03 baszalmstra

Closing due to the lack of a reproducer.

ruben-arts avatar Mar 27 '26 10:03 ruben-arts