changeset 41857:db3098d02a6d

setup: exclude some internal UCRT files When attempting to build the Inno installer locally, I was getting several file not found errors when py2exe was crawling DLL dependencies. The missing DLLs appear to be "internal" DLLs used by the Universal C Runtime (UCRT). In many cases, the missing DLLs don't appear to exist on my system at all! Some of the DLLs have version numbers that appear to be N+1 of what the existing version number is. Maybe the "public" UCRT DLLs are probing for version N+1 at load time and py2exe is picking these up? Who knows. This commit adds the non-public UCRT DLLs as found by py2exe on my system to the excluded DLLs set. After this change, I'm able to produce an Inno installer with an appropriate set of DLLs. Differential Revision: https://phab.mercurial-scm.org/D6065
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 03 Mar 2019 14:08:25 -0800
parents ed35057421ae
children d7dc4ac1ff84
files setup.py
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/setup.py	Sun Mar 03 15:46:26 2019 -0800
+++ b/setup.py	Sun Mar 03 14:08:25 2019 -0800
@@ -1372,6 +1372,14 @@
       options={
           'py2exe': {
               'packages': py2exepackages,
+              'dll_excludes': [
+                  'api-ms-win-core-apiquery-l1-1-0.dll',
+                  'api-ms-win-core-delayload-l1-1-0.dll',
+                  'api-ms-win-core-delayload-l1-1-1.dll',
+                  'api-ms-win-core-heap-l2-1-0.dll',
+                  'api-ms-win-core-libraryloader-l1-2-0.dll',
+                  'api-ms-win-core-registry-l1-1-0.dll',
+              ]
           },
           'bdist_mpkg': {
               'zipdist': False,