mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-13 18:14:24 +02:00
fix archivebox install not using LIB_DIR
This commit is contained in:
@@ -29,10 +29,10 @@ class LibNpmBinProvider(NpmProvider):
|
|||||||
LIB_DIR = abx.pm.hook.get_LIB_DIR()
|
LIB_DIR = abx.pm.hook.get_LIB_DIR()
|
||||||
self.npm_prefix = LIB_DIR / 'npm'
|
self.npm_prefix = LIB_DIR / 'npm'
|
||||||
self.PATH = f'{LIB_DIR / "npm" / "node_modules" / ".bin"}:{NEW_NODE_BIN_PATH}:{OLD_NODE_BIN_PATH}'
|
self.PATH = f'{LIB_DIR / "npm" / "node_modules" / ".bin"}:{NEW_NODE_BIN_PATH}:{OLD_NODE_BIN_PATH}'
|
||||||
|
|
||||||
super().setup()
|
super().setup()
|
||||||
|
|
||||||
|
|
||||||
SYS_NPM_BINPROVIDER = SystemNpmBinProvider()
|
SYS_NPM_BINPROVIDER = SystemNpmBinProvider()
|
||||||
LIB_NPM_BINPROVIDER = LibNpmBinProvider()
|
LIB_NPM_BINPROVIDER = LibNpmBinProvider()
|
||||||
|
LIB_NPM_BINPROVIDER.setup()
|
||||||
npm = LIB_NPM_BINPROVIDER
|
npm = LIB_NPM_BINPROVIDER
|
||||||
|
@@ -63,9 +63,13 @@ class LibPipBinProvider(PipProvider):
|
|||||||
super().setup()
|
super().setup()
|
||||||
|
|
||||||
SYS_PIP_BINPROVIDER = SystemPipBinProvider()
|
SYS_PIP_BINPROVIDER = SystemPipBinProvider()
|
||||||
|
SYS_PIP_BINPROVIDER.setup()
|
||||||
PIPX_PIP_BINPROVIDER = SystemPipxBinProvider()
|
PIPX_PIP_BINPROVIDER = SystemPipxBinProvider()
|
||||||
|
PIPX_PIP_BINPROVIDER.setup()
|
||||||
VENV_PIP_BINPROVIDER = VenvPipBinProvider()
|
VENV_PIP_BINPROVIDER = VenvPipBinProvider()
|
||||||
|
VENV_PIP_BINPROVIDER.setup()
|
||||||
LIB_PIP_BINPROVIDER = LibPipBinProvider()
|
LIB_PIP_BINPROVIDER = LibPipBinProvider()
|
||||||
|
LIB_PIP_BINPROVIDER.setup()
|
||||||
pip = LIB_PIP_BINPROVIDER
|
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)
|
# ensure python libraries are importable from these locations (if archivebox wasnt executed from one of these then they wont already be in sys.path)
|
||||||
|
Reference in New Issue
Block a user