********: Adding json & sqlite3 Python modules to the py2exe packages list

Ed Morley emorley at mozilla.com
Wed Jun 11 12:25:50 UTC 2014


Hi

At Mozilla, we have several Mercurial extensions that require the Python 
json module [1] and a smaller subset that also need the sqlite3 module 
[2]. The repo for these extensions is at:
https://hg.mozilla.org/hgcustom/version-control-tools/

Currently the stock Mercurial Win32 MSI installer does not include these 
modules, since py2exe strips out anything unused. This results in our 
devs filing bugs like:
https://bugzilla.mozilla.org/show_bug.cgi?id=1023129

The TortoiseHg MSI includes the json and sqlite3 modules, since they are 
listed in:
https://bitbucket.org/tortoisehg/thg/src/default/win32/setup.cfg

It would be great if I could add json and/or sqlite3 (most keen about 
the former) to the stock Mercurial MSI, by appending them to:
http://selenic.com/hg/file/0f73ed629362/setup.py#l581

I understand that there are installer size implications with every 
addition [3], but I wondered if you might be receptive to the changes?

It would save people having to install the full TortoiseHg bundle or 
https://bitbucket.org/tortoisehg/thg-winbuild/downloads/, as well as us 
trying to figure out if they've instead used 
http://mercurial.selenic.com/downloads - given it's what they'd 
inevitably find first when searching. In addition, 
https://bitbucket.org/tortoisehg/thg-winbuild/downloads/ doesn't seem to 
be quite as up to date as the stock MSIs.

Best wishes,

Ed

[1] eg for importing/exporting patches and metadata from Bugzilla.
[2] eg for reading the Firefox profile cookies DB to borrow Bugzilla 
tokens, or for storing of local bug stats.
[3] http://bz.selenic.com/show_bug.cgi?id=2577#c1



More information about the Mercurial mailing list