-
Notifications
You must be signed in to change notification settings - Fork 224
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
Comments
This is indeed a bug. IIRC, the Thanks for reporting! |
This is fixed in #888 |
This is also the case for |
This is unfortunately reopened with v0.19.1 as we broke some environments with the logic we implemented in |
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"
The text was updated successfully, but these errors were encountered: