Mercurial > public > mercurial-scm > hg
comparison setup.py @ 6789:c1c202e2d45d
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.
author | Paul Moore <p.f.moore@gmail.com> |
---|---|
date | Tue, 01 Jul 2008 20:17:11 +0100 |
parents | 7010e4557963 |
children | b2c4be19d7b1 |
comparison
equal
deleted
inserted
replaced
6724:2e58f1a36046 | 6789:c1c202e2d45d |
---|---|
123 ext_modules=ext_modules, | 123 ext_modules=ext_modules, |
124 data_files=[(os.path.join('mercurial', root), | 124 data_files=[(os.path.join('mercurial', root), |
125 [os.path.join(root, file_) for file_ in files]) | 125 [os.path.join(root, file_) for file_ in files]) |
126 for root, dirs, files in os.walk('templates')], | 126 for root, dirs, files in os.walk('templates')], |
127 cmdclass=cmdclass, | 127 cmdclass=cmdclass, |
128 options=dict(py2exe=dict(packages=['hgext']), | 128 options=dict(py2exe=dict(packages=['hgext', 'email']), |
129 bdist_mpkg=dict(zipdist=True, | 129 bdist_mpkg=dict(zipdist=True, |
130 license='COPYING', | 130 license='COPYING', |
131 readme='contrib/macosx/Readme.html', | 131 readme='contrib/macosx/Readme.html', |
132 welcome='contrib/macosx/Welcome.html')), | 132 welcome='contrib/macosx/Welcome.html')), |
133 **extra) | 133 **extra) |