Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conda-forge package and Pypi package with the same name #710

Closed
2 tasks done
boisgera opened this issue Jan 26, 2024 · 4 comments · Fixed by #1335
Closed
2 tasks done

Conda-forge package and Pypi package with the same name #710

boisgera opened this issue Jan 26, 2024 · 4 comments · Fixed by #1335
Labels
🐞 bug Something isn't working

Comments

@boisgera
Copy link

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

The sequence of shell commands that fails:

pixi init
pixi add python
pixi add pandoc
pixi add --pypi pandoc
pixi run python -c "import pandoc"

Issue description

A corner case of hybrid projects needing a conda-forge package with a name and a different pypi package with the same name.
Here: pandoc refers on conda-forge to the Haskell CLI/library and pandoc on Pypi refers to (one of the) corresponding Python library. "Pandoc-the-Python-library" requires "Pandoc-the-Haskell-tool" to be installed.

Note that the following alternate sequence of commands works (but I'd rather not use it since the pandoc pypi dependency is not recorded in the pyproject.toml file):

pixi init
pixi add python
pixi add pandoc
pixi add pip
pixi run pip install pandoc
pixi run python -c "import pandoc"

Expected behavior

Expected behavior : the last line "should" work ; the Python pandoc module should be importable in the pixi environment defined by the previous commands.

pixi init
pixi add python
pixi add pandoc
pixi add --pypi pandoc
pixi run python -c "import pandoc"
@boisgera boisgera added the 🐞 bug Something isn't working label Jan 26, 2024
@ruben-arts
Copy link
Contributor

This is indeed a bug. IIRC, the verify_pypi_platform_satisfiability is not looking at the correct info. It should take into account the purls.

Thanks for reporting!

@ruben-arts
Copy link
Contributor

This is fixed in #888

@ruben-arts
Copy link
Contributor

This is also the case for libclang

@ruben-arts
Copy link
Contributor

This is unfortunately reopened with v0.19.1 as we broke some environments with the logic we implemented in v0.19.0. We're working on a proper fix right now so again fix this issue but in a v0.19.2 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
2 participants