From 22e5f95c7fa60c3c29f4fa89c8037b026aba914b Mon Sep 17 00:00:00 2001 From: rdb Date: Sun, 13 Sep 2020 15:20:38 +0200 Subject: [PATCH] dist: don't warn about missing DLLs that are a part of Windows --- direct/src/dist/commands.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/direct/src/dist/commands.py b/direct/src/dist/commands.py index 6b64011f79..2e5c639717 100644 --- a/direct/src/dist/commands.py +++ b/direct/src/dist/commands.py @@ -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.