dist: don't warn about missing DLLs that are a part of Windows

This commit is contained in:
rdb 2020-09-13 15:20:38 +02:00
parent 30d8c90f77
commit 22e5f95c7f

View File

@ -265,6 +265,7 @@ class build_apps(setuptools.Command):
'dciman32.dll', 'comdlg32.dll', 'comctl32.dll', 'ole32.dll',
'oleaut32.dll', 'gdiplus.dll', 'winmm.dll', 'iphlpapi.dll',
'msvcrt.dll', 'kernelbase.dll', 'msimg32.dll', 'msacm32.dll',
'setupapi.dll', 'version.dll',
# manylinux1/linux
'libdl.so.*', 'libstdc++.so.*', 'libm.so.*', 'libgcc_s.so.*',
@ -282,6 +283,12 @@ class build_apps(setuptools.Command):
'/usr/lib/libedit.*.dylib',
'/System/Library/**',
]
if sys.version_info >= (3, 5):
# Python 3.5+ requires at least Windows Vista to run anyway, so we
# shouldn't warn about DLLs that are shipped with Vista.
self.exclude_dependencies += ['bcrypt.dll']
self.package_data_dirs = {}
# We keep track of the zip files we've opened.