Patchwork D6136: setup: exclude crypt32.dll in py2exe builds

login
register
mail settings
Submitter phabricator
Date March 15, 2019, 1:39 a.m.
Message ID <differential-rev-PHID-DREV-q2fltmpwnjx2f6ouapwl-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/39252/
State Superseded
Headers show

Comments

phabricator - March 15, 2019, 1:39 a.m.
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  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.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D6136

AFFECTED FILES
  setup.py

CHANGE DETAILS




To: indygreg, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -1253,7 +1253,7 @@ 
 ]
 
 py2exeexcludes = []
-py2exedllexcludes = []
+py2exedllexcludes = ['crypt32.dll']
 
 if issetuptools:
     extra['python_requires'] = supportedpy