fix archivebox install not using LIB_DIR

This commit is contained in:
Nick Sweeting 2024-11-19 04:44:43 -08:00
parent 6740202d78
commit ee548eb16e
No known key found for this signature in database
2 changed files with 5 additions and 1 deletions

View file

@ -29,10 +29,10 @@ class LibNpmBinProvider(NpmProvider):
LIB_DIR = abx.pm.hook.get_LIB_DIR()
self.npm_prefix = LIB_DIR / 'npm'
self.PATH = f'{LIB_DIR / "npm" / "node_modules" / ".bin"}:{NEW_NODE_BIN_PATH}:{OLD_NODE_BIN_PATH}'
super().setup()
SYS_NPM_BINPROVIDER = SystemNpmBinProvider()
LIB_NPM_BINPROVIDER = LibNpmBinProvider()
LIB_NPM_BINPROVIDER.setup()
npm = LIB_NPM_BINPROVIDER

View file

@ -63,9 +63,13 @@ class LibPipBinProvider(PipProvider):
super().setup()
SYS_PIP_BINPROVIDER = SystemPipBinProvider()
SYS_PIP_BINPROVIDER.setup()
PIPX_PIP_BINPROVIDER = SystemPipxBinProvider()
PIPX_PIP_BINPROVIDER.setup()
VENV_PIP_BINPROVIDER = VenvPipBinProvider()
VENV_PIP_BINPROVIDER.setup()
LIB_PIP_BINPROVIDER = LibPipBinProvider()
LIB_PIP_BINPROVIDER.setup()
pip = LIB_PIP_BINPROVIDER
# ensure python libraries are importable from these locations (if archivebox wasnt executed from one of these then they wont already be in sys.path)