Say I need to install some Python project ‘foo’.
It has a requirements.txt
or setup.py
or setup.cfg
or pyproject.toml
or omgwtf.python
that lists psycopg2
as a dependency.
But on my install target I don’t have a C toolchain or libpq headers, and it’s not particularly feasible to install one, so I want to install foo
using psycopg2-binary
instead of psycopg2
.
Is there any way to do this with pipx install git+https://web.site/foo
w/o cloning the sources and locally patching the Python dependencies – which might express this dependency in any of several inscrutable and overlapping forms due to the currently perl-esque TMTOWTDI nature of Python builds and dependency management?