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

Python virtualenv may end up containing unneeded packages #73

Open
StevenMaude opened this issue Jul 13, 2022 · 0 comments
Open

Python virtualenv may end up containing unneeded packages #73

StevenMaude opened this issue Jul 13, 2022 · 0 comments

Comments

@StevenMaude
Copy link
Contributor

The current prodenv/devenv simply do pip install -r requirements.txt to install dependencies.

This process will upgrade packages that were installed and need upgrading. It, however, does not remove packages that might have been legitimately previously installed, but are no longer needed.

There are cases where you might end up with unneeded packages in the virtualenv. For example:

  • you switch between development branches where the requirements change
  • the requirements are otherwise updated since you first install the virtualenv

Running pip-sync after installing the requirements should solve the problem, I think. It's perhaps a little bit complicated because we have separate recipes for prodenv and devenv.

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

1 participant