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

pixi run "any_task_name" triggers installing project dependencies #2429

Open
2 tasks done
Okroshiashvili opened this issue Nov 6, 2024 · 1 comment
Open
2 tasks done

Comments

@Okroshiashvili
Copy link

Okroshiashvili commented Nov 6, 2024

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

All my projects, that use pixi has this problem. So, most probably the issue should be same for all others as well.

Issue description

Today I've updated pixi to 0.35.0 version and got this issue. Every time I run any task, pixi tries to install project dependencies again and only after that runs the task. After downgrading to previous version, 0.34.0 solved the issue.

Expected behavior

Do not re-install project dependencies if they are already installed and environment exists.

@SHEscher
Copy link

SHEscher commented Nov 7, 2024

I have the same issue:

I have dependencies in my pyproject.toml :

# pyproject.toml
...

dependencies = [
    "numpy",
    "pandas",
    ...
 ]

...

I run this (dummy) command with the verbose flag:

pixi run -v python -m MYMODULE

Even after running this more than once, I get the following output, where pixi (re-)installs the "distribution":

...
 INFO pixi::install_pypi: Re-install: []
 INFO pixi::install_pypi: Remove: []
 INFO pixi::install_pypi: Prepared 1 package in 3ms
 INFO pixi::install_pypi: Installed 35 packages in 2.45s

The issue did not occur with the previous version of pixi < 0.35.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants