setup: exclude crypt32.dll in py2exe builds
authorGregory Szorc <gregory.szorc@gmail.com>
Thu, 14 Mar 2019 18:25:07 -0700
changeset 41954 e5ac701e5b7c
parent 41953 d6e3c16d48ab
child 41955 9661a9c0695e
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
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