include sonic-client by default and allow ldap to be installed at runtime

This commit is contained in:
Nick Sweeting 2024-10-05 03:11:48 -07:00
parent 358e553328
commit 35446ce742
No known key found for this signature in database
5 changed files with 38 additions and 1 deletions

View file

@ -73,6 +73,11 @@ VENV_PIP_BINPROVIDER = VenvPipBinProvider()
LIB_PIP_BINPROVIDER = LibPipBinProvider()
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)
site_packages_dir = 'lib/python{}.{}/site-packages'.format(*sys.version_info[:2])
sys.path.append(str(VENV_PIP_BINPROVIDER.pip_venv / site_packages_dir))
sys.path.append(str(LIB_PIP_BINPROVIDER.pip_venv / site_packages_dir))
class ArchiveboxBinary(BaseBinary):
name: BinName = 'archivebox'