always pre-setup binproviders

This commit is contained in:
Nick Sweeting 2024-11-19 05:24:12 -08:00
parent f8e2f7c753
commit 6b47510f70
No known key found for this signature in database
5 changed files with 13 additions and 1 deletions

View file

@ -68,6 +68,11 @@ VENV_PIP_BINPROVIDER = VenvPipBinProvider()
LIB_PIP_BINPROVIDER = LibPipBinProvider()
pip = LIB_PIP_BINPROVIDER
SYS_PIP_BINPROVIDER.setup()
PIPX_PIP_BINPROVIDER.setup()
VENV_PIP_BINPROVIDER.setup()
LIB_PIP_BINPROVIDER.setup()
# ensure python libraries are importable from these locations (if archivebox wasnt executed from one of these then they wont already be in sys.path)
assert VENV_PIP_BINPROVIDER.pip_venv is not None
assert LIB_PIP_BINPROVIDER.pip_venv is not None