pypa/pipx

pipx install --update

Open

#1 572 ouverte le 7 nov. 2024

Voir sur GitHub
 (2 commentaires) (1 réaction) (0 assignés)Python (363 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (7 844 stars)
Métriques de merge PR
 (Merge moyen 5j 2h) (16 PRs mergées en 30 j)

Description

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

Guide contributeur