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

Package names are shown with dashes '-' while installing, but with underscores '_' when listing. #1890

Open
2 tasks done
RaphaelMelanconAtBentley opened this issue Aug 22, 2024 · 0 comments
Labels
🐞 bug Something isn't working

Comments

@RaphaelMelanconAtBentley

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

[project]
name = "pan"
platforms = ["linux-64"]
channels = ["conda-forge"]

[dependencies]
python = "3.11.9"

[pypi-dependencies]
tqdm = "*"
python_dotenv = "*"

Issue description

When running pixi install -vv:

 INFO pixi::environment: verifying prefix location is unchanged, with prefix file: /home/pan/.pixi/envs/default/conda-meta/pixi_env_prefix
 INFO pixi::lock_file::update: the lock-file is up-to-date
 INFO pixi::environment: Creating prefix file at: /home/pan/.pixi/envs/default/conda-meta/pixi_env_prefix
 INFO pixi::environment: Prefix file updated with: '/home/pan/.pixi/envs/default/conda-meta'.
 INFO pixi::environment: Checking if history file exists: /home/pan/.pixi/envs/default/conda-meta/history
 INFO pixi::environment: Creating history file: /home/pan/.pixi/envs/default/conda-meta/history
 INFO pixi::lock_file::resolve::uv_resolution_context: uv keyring provider is disabled
 INFO pixi::install_pypi: resolved install plan: local=2, remote=0, reinstalls=0, extraneous=0
 INFO pixi::install_pypi: Install: ["python-dotenv", "tqdm"]
 INFO pixi::install_pypi: Re-install: []
 INFO pixi::install_pypi: Remove: []
 INFO pixi::install_pypi: Installed 2 packages in 6ms
✔ The default environment has been installed.

We see that 'python-dotenv' is used.

But when doing pixi list | grep dotenv:

❯ pixi list | grep dotenv
python_dotenv     1.0.1                         53 KiB     pypi   python_dotenv-1.0.1-py3-none-any.http.whl

'python_dotenv' is used.

This makes if hard to search for packages in your pixi.toml based on the information provided during the installation when troubleshooting dependency issues, for instance.

Expected behavior

Pixi should stick to one convention.

@RaphaelMelanconAtBentley RaphaelMelanconAtBentley added the 🐞 bug Something isn't working label Aug 22, 2024
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
Development

No branches or pull requests

1 participant