bug(pypi): conda package overwritten by pypi (failed mapping?)
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
[project]
channels = ["conda-forge", "conda-forge/label/cpptango_rc", "tango-controls/label/pytango_dev"]
name = "itango"
platforms = ["linux-64", "osx-64", "osx-arm64", "win-64"]
[dependencies]
python = ">=3.9"
pip = "*"
pytango = ">=9.3.0"
ipython = ">=8.5,<10.0"
packaging= "*"
qtconsole = "*"
[pypi-dependencies]
itango = { path = ".", editable = true }
[feature.tangorc.dependencies]
cpptango = { version = "==10.1.1rc1", channel = "conda-forge/label/cpptango_rc" }
pytango = { version = "10.1.0dev3.*", channel = "tango-controls/label/pytango_dev" }
[feature.test.dependencies]
pytest = ">=8"
pytest-cov = "*"
gevent = ">=25"
tango-test = ">=3.11"
pytango-db = ">=0.4.1"
[feature.test.tasks]
test = "pytest"
[environments]
tangorc = ["tangorc", "test"]
Full example: https://gitlab.com/tango-controls/itango/-/blob/pixi-dev-package-issue/pixi.toml?ref_type=heads
Issue description
With the pixi.toml defined above, in the default env I have pytango installed as conda package as expected:
$ pixi list
...
itango 0.3.1.dev4+g92c79b6 pypi (editable)
...
pytango 10.0.3 np22py313h03c3ae7_1 4.2 MiB conda https://conda.anaconda.org/conda-forge/
python 3.13.7 h5c937ed_100_cp313 11.4 MiB conda https://conda.anaconda.org/conda-forge/
In the tangorc environment, the pytango conda dev package is installed as expected but it's overwritten by a pypi package:
$ pixi list -e tangorc
...
itango 0.3.1.dev4+g92c79b6 pypi (editable)
...
pytango 10.1.0dev3+ge31422e3 py312hbfc98a5_0 3.9 MiB conda https://conda.anaconda.org/tango-controls/label/pytango_dev/
pytango 10.0.3 pypi
pytango-db 0.5.0 pyhd8ed1ab_0 44.3 KiB conda https://conda.anaconda.org/conda-forge/
Expected behavior
I'd expect only the dev conda package to be installed in the tangorc env.
itango is installed in editable mode and depends on pytango. In all envs with pytango installed with conda, it works fine, except in the one where I use a dev version. I don't see why uv/pip wouldn't detect pytango as already installed in that case.
I suppose our conda-pypi mapping struggles with the label channel? @nichmor maybe you know more?
I don't think it's just the label channel because if I use pytango = { version = "10.0.3rc1", channel = "conda-forge/label/pytango_rc" } then it works properly.
Which seems to point to the "dev" version.
I think there is a possibility that the dev package may package something else inside, which is why we don't treat them equally. I will need to investigate this.
hey @beenje ! The problem is that we don't create a mapping for the tango-controls channel - I'm working on adding it to the https://github.com/prefix-dev/parselmouth
hey @beenje ! Let me know if this issue still persists on your side ( if so, please reopen the issue ) - we have updated our mapping and included tango-controls. I've tested on my side - pypi will not overwrite anymore conda package.
I just tested and it works fine for me was well. Thanks!