pyinstaller spec: avoid pkg_resources warning

This commit is contained in:
Thomas Waldmann 2025-06-18 22:34:34 +02:00
parent eefbee7667
commit 0324395baf
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -12,7 +12,7 @@ basepath = os.path.abspath(os.path.join(here, '..'))
if is_win32:
hiddenimports = ['borghash']
else:
hiddenimports = ['borg.platform.posix', 'pkg_resources.py2_warn', 'borghash']
hiddenimports = ['borg.platform.posix', 'borghash']
block_cipher = None
@ -27,6 +27,7 @@ a = Analysis([os.path.join(basepath, 'src', 'borg', '__main__.py'), ],
runtime_hooks=[],
excludes=[
'_ssl', 'ssl',
'pkg_resources', # avoid pkg_resources related warnings
],
win_no_prefer_redirects=False,
win_private_assemblies=False,