# HG changeset patch # User Gregory Szorc # Date 1552613107 25200 # Node ID e5ac701e5b7c8eb945fbd223b17f238b25fccf05 # Parent d6e3c16d48ab50078c07720b319719481a68ace5 setup: exclude crypt32.dll in py2exe builds py2exe is picking up crypt32.dll as a dependency and is including the DLL in the dist/lib directory, where it can get picked up by an installer and distributed. crypt32.dll is a core Windows DLL since Windows XP. We don't need to distribute it. Differential Revision: https://phab.mercurial-scm.org/D6136 diff -r d6e3c16d48ab -r e5ac701e5b7c setup.py --- a/setup.py Thu Mar 14 13:27:37 2019 -0700 +++ b/setup.py Thu Mar 14 18:25:07 2019 -0700 @@ -1253,7 +1253,7 @@ ] py2exeexcludes = [] -py2exedllexcludes = [] +py2exedllexcludes = ['crypt32.dll'] if issetuptools: extra['python_requires'] = supportedpy