Browse Source

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

rdb 5 years ago
parent
commit
22e5f95c7f
1 changed files with 7 additions and 0 deletions
  1. 7 0
      direct/src/dist/commands.py

+ 7 - 0
direct/src/dist/commands.py

@@ -265,6 +265,7 @@ class build_apps(setuptools.Command):
             'dciman32.dll', 'comdlg32.dll', 'comctl32.dll', 'ole32.dll',
             'dciman32.dll', 'comdlg32.dll', 'comctl32.dll', 'ole32.dll',
             'oleaut32.dll', 'gdiplus.dll', 'winmm.dll', 'iphlpapi.dll',
             'oleaut32.dll', 'gdiplus.dll', 'winmm.dll', 'iphlpapi.dll',
             'msvcrt.dll', 'kernelbase.dll', 'msimg32.dll', 'msacm32.dll',
             'msvcrt.dll', 'kernelbase.dll', 'msimg32.dll', 'msacm32.dll',
+            'setupapi.dll', 'version.dll',
 
 
             # manylinux1/linux
             # manylinux1/linux
             'libdl.so.*', 'libstdc++.so.*', 'libm.so.*', 'libgcc_s.so.*',
             'libdl.so.*', 'libstdc++.so.*', 'libm.so.*', 'libgcc_s.so.*',
@@ -282,6 +283,12 @@ class build_apps(setuptools.Command):
             '/usr/lib/libedit.*.dylib',
             '/usr/lib/libedit.*.dylib',
             '/System/Library/**',
             '/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 = {}
         self.package_data_dirs = {}
 
 
         # We keep track of the zip files we've opened.
         # We keep track of the zip files we've opened.