setup: exclude some internal UCRT files
authorGregory Szorc <gregory.szorc@gmail.com>
Sun, 03 Mar 2019 14:08:25 -0800
changeset 41852 db3098d02a6d
parent 41851 ed35057421ae
child 41853 d7dc4ac1ff84
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
setup.py
--- 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,