mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-21 19:53:06 +00:00
fix archivebox install not using LIB_DIR
This commit is contained in:
parent
6740202d78
commit
ee548eb16e
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue