pypa / pipx

Install and Run Python Applications in Isolated Environments
https://pipx.pypa.io
MIT License
10.64k stars 418 forks source link

Modifying existing environment still attempts to reinstall existing packages #1568

Open FriedrichFroebel opened 3 weeks ago

FriedrichFroebel commented 3 weeks ago

Describe the bug

Trying to install the ocrodjvu with the --force option attempts to build a dependency which is already installed in the virtual environment.

How to reproduce

Running pipx install ocrodjvu fails due to some incompatibilities for python-djvulibre (the PyPI package is broken and I am waiting for a maintainer transfer). Thus I am trying to work with an existing environment:

This attempts to re-build python-djvulibre (from PyPI) and fails due to known incompatibilities.

Expected behavior

pipx install --force should re-use the existing virtual environment and not attempt to re-install python-djvulibre as stated in the help:

  --force, -f           Modify existing virtual environment and files in PIPX_BIN_DIR and PIPX_MAN_DIR