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

pipx install --update #1572

Open
gsemet opened this issue Nov 7, 2024 · 1 comment
Open

pipx install --update #1572

gsemet opened this issue Nov 7, 2024 · 1 comment

Comments

@gsemet
Copy link

gsemet commented Nov 7, 2024

pipx install:

  • install if missing.
  • if available and in the right or wrong version (spec not respected), does nothing

pipx install --force:

  • always reinstall, even if available and if spec respected

pipx update:

  • always update, even when spec is respected
  • if not installed, fail

pipx update --install:

  • always update, even when spec is respected
  • if not installed, install.

What I need is a command that will:

  • if not install, install respecting the provided spec
  • if installed but the spec is not respected, update to the spec, allowing downgrade
  • if installed and spec is respected, does nothing, not even a network connectivity

Example:

$ pipx install --upgrade pylint<7
  • if the current pylint venv respects <7, does nothing.
  • If the current pylint venv does not respect <7, update
  • if no pylint installed, install to version <7
@gsemet
Copy link
Author

gsemet commented Nov 7, 2024

On the network connectivity, this might be done with #1275 to allow pipx run do not try to perform any network connectivity when the spec is respected

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