# HG changeset patch # User Gregory Szorc # Date 2019-03-15 01:25:07 # 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 --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -1253,7 +1253,7 @@ py2exepackages = [ ] py2exeexcludes = [] -py2exedllexcludes = [] +py2exedllexcludes = ['crypt32.dll'] if issetuptools: extra['python_requires'] = supportedpy