From 36eed0d9c90543eecb03f620b26f8399caa948ba Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 14 Sep 2020 12:20:07 +0200 Subject: [PATCH] dist: don't exclude api-ms-win-crt-*.dll libraries These are needed to run the program on systems without the right CRT installed. --- direct/src/dist/commands.py | 3 +-- doc/ReleaseNotes | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/direct/src/dist/commands.py b/direct/src/dist/commands.py index 219e0ebd88..c5f14ae489 100644 --- a/direct/src/dist/commands.py +++ b/direct/src/dist/commands.py @@ -1098,8 +1098,7 @@ class build_apps(setuptools.Command): pe = pefile.PEFile() pe.read(fp) for lib in pe.imports: - if not lib.lower().startswith('api-ms-win-'): - deps.append(lib) + deps.append(lib) elif magic == b'\x7FELF': # Elf magic. Used on (among others) Linux and FreeBSD. diff --git a/doc/ReleaseNotes b/doc/ReleaseNotes index c4657a4894..79cf156c83 100644 --- a/doc/ReleaseNotes +++ b/doc/ReleaseNotes @@ -52,6 +52,7 @@ Deployment * Fix libffi-7.dll not being included in official wheels * PYTHONINSPECT mechanism is no longer enabled when building with optimizations * A few unnecessary warning messages are squelched +* Windows builds now include previously missing CRT dlls API * Add pickle support to Datagram class