mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-16 08:04:26 -04:00
merge plugantic and abx, all praise be to praise our glorious pluggy gods
This commit is contained in:
parent
4f42eb0313
commit
8d3f45b720
59 changed files with 870 additions and 1343 deletions
|
@ -1,38 +1,10 @@
|
|||
__package__ = 'archivebox.misc'
|
||||
|
||||
# TODO: migrate all of these to new plugantic/base_check.py Check system
|
||||
|
||||
from benedict import benedict
|
||||
from pathlib import Path
|
||||
|
||||
import archivebox
|
||||
|
||||
from .logging import stderr, hint, ANSI
|
||||
|
||||
|
||||
def check_dependencies(config: benedict, show_help: bool=True) -> None:
|
||||
# dont do this on startup anymore, it's too slow
|
||||
pass
|
||||
# invalid_dependencies = [
|
||||
# (name, binary) for name, info in settings.BINARIES.items()
|
||||
# if not binary.
|
||||
# ]
|
||||
# if invalid_dependencies and show_help:
|
||||
# stderr(f'[!] Warning: Missing {len(invalid_dependencies)} recommended dependencies', color='lightyellow')
|
||||
# for dependency, info in invalid_dependencies:
|
||||
# stderr(
|
||||
# ' ! {}: {} ({})'.format(
|
||||
# dependency,
|
||||
# info['path'] or 'unable to find binary',
|
||||
# info['version'] or 'unable to detect version',
|
||||
# )
|
||||
# )
|
||||
# if dependency in ('YOUTUBEDL_BINARY', 'CHROME_BINARY', 'SINGLEFILE_BINARY', 'READABILITY_BINARY', 'MERCURY_BINARY'):
|
||||
# hint(('To install all packages automatically run: archivebox setup',
|
||||
# f'or to disable it and silence this warning: archivebox config --set SAVE_{dependency.rsplit("_", 1)[0]}=False',
|
||||
# ''), prefix=' ')
|
||||
# stderr('')
|
||||
|
||||
from .logging import stderr, ANSI
|
||||
|
||||
|
||||
def check_data_folder(config: benedict) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue