# HG changeset patch
# User Paul Moore
# Date 1214939831 -3600
# Node ID c1c202e2d45db87c5c253024db9af66e2eeab4c4
# Parent 2e58f1a3604682a4fdfe40817150ccc12e76b25e
Force email package to be loaded in py2exe
With Python 2.5, the email package is not fully loaded by py2exe, due to
dynamic imports which are not found by modulefinder. This breaks the patchbomb
extension. This patch forces the whole email package to be included so that
the dynamic imports work as expected.
diff -r 2e58f1a36046 -r c1c202e2d45d setup.py
--- a/setup.py Tue Jun 24 09:33:13 2008 +0200
+++ b/setup.py Tue Jul 01 20:17:11 2008 +0100
@@ -125,7 +125,7 @@
[os.path.join(root, file_) for file_ in files])
for root, dirs, files in os.walk('templates')],
cmdclass=cmdclass,
- options=dict(py2exe=dict(packages=['hgext']),
+ options=dict(py2exe=dict(packages=['hgext', 'email']),
bdist_mpkg=dict(zipdist=True,
license='COPYING',
readme='contrib/macosx/Readme.html',