diff options
Diffstat (limited to 'win/misc')
-rw-r--r-- | win/misc/depcheck.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/win/misc/depcheck.py b/win/misc/depcheck.py index 6f14b1bb7..2f965d539 100644 --- a/win/misc/depcheck.py +++ b/win/misc/depcheck.py @@ -25,7 +25,8 @@ logging.basicConfig(level='INFO', format='%(levelname)s: %(message)s') log = logging.getLogger() IGNORED_LIBS = [ - ('Soup', '2.4') + ('Soup', '2.4'), + ('Gtk', '4.0') ] def get_required_by_typelibs() -> set[str]: @@ -35,7 +36,12 @@ def get_required_by_typelibs() -> set[str]: namespace, version = os.path.splitext(tl)[0].split('-', 1) if (namespace, version) in IGNORED_LIBS: continue - repo.require(namespace, version, 0) + try: + repo.require(namespace, version, 0) + except Exception as error: + log.warning('Unable to load %s %s: %s', + namespace, version, error) + continue lib = repo.get_shared_library(namespace) if lib: deps.update(lib.split(',')) |