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:
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 forpython-djvulibre
(the PyPI package is broken and I am waiting for a maintainer transfer). Thus I am trying to work with an existing environment:/usr/bin/python3 -m venv /home/user/.local/share/pipx/venvs/ocrodjvu
/home/user/.local/share/pipx/venvs/ocrodjvu/bin/python -m pip --no-input install 'git+https://github.com/FriedrichFroebel/python-djvulibre.git'
/home/user/.local/share/pipx/venvs/ocrodjvu/bin/python -m pip show python-djvulibre
pipx install --force --verbose ocrodjvu
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-installpython-djvulibre
as stated in the help: