Skip to content

Commit 0991d38

Browse files
pyinstaller spec: avoid pkg_resources warning
1 parent 69e009e commit 0991d38

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/borg.exe.spec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ basepath = os.path.abspath(os.path.join(here, '..'))
1212
if is_win32:
1313
hiddenimports = []
1414
else:
15-
hiddenimports = ['borg.platform.posix', 'pkg_resources.py2_warn', ]
15+
hiddenimports = ['borg.platform.posix', ]
1616

1717
block_cipher = None
1818

@@ -27,6 +27,7 @@ a = Analysis([os.path.join(basepath, 'src', 'borg', '__main__.py'), ],
2727
runtime_hooks=[],
2828
excludes=[
2929
'_ssl', 'ssl',
30+
'pkg_resources', # avoid pkg_resources related warnings
3031
],
3132
win_no_prefer_redirects=False,
3233
win_private_assemblies=False,

0 commit comments

Comments
 (0)