This is an archive of the discontinued Mercurial Phabricator instance.

packaging: bundle dulwich, keyring, and pywin32-ctypes with WiX too
ClosedPublic

Authored by mharbison72 on Feb 1 2020, 1:48 AM.

Details

Summary

TortoiseHg installs these, which is possibly where they originated (though I
would have thought it more likely to be in the WiX installer, given its
heritage). When I was working on the TortoiseHg app for Mac (which uses the
similar py2app), it wasn't possible to use the keyring extension (even
externally) without bundling this keyring package into the app. Assuming the
same principle applies here, these would enable some common extensions. One of
the things that the TortoiseHg packager on macOS does now is it adds the user's
local site-packages directory to sys.path. That would allow the user to
install these critical modules in cases like this. But that can probably wait
for py3 packaging.

The only difference in the installed packages that I see now is WiX also bundles
distutils for some reason. I suppose that's not harming anything, so I'm not
touching it.

The only orphans in the install directories when comparing WiX and Inno now is
the Copying.txt vs COPYING.rtf, the two uninstaller files for Inno, and a
Mercurial.url file in Inno. I have no idea what that is, and it has *.ini
syntax with a single field pointing to the Mercurial homepage.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

mharbison72 created this revision.Feb 1 2020, 1:48 AM
indygreg accepted this revision.Feb 1 2020, 6:57 PM
indygreg added a subscriber: indygreg.

As a follow-up, we can likely merge the requirements.txt[.in] files now.

Regarding the Mercurial.url file, that's a shortcut file that gets installed so people can open the Mercurial homepage with one click. I believe it is also a start menu entry. It feels like the kind of thing we can remove.

This revision is now accepted and ready to land.Feb 1 2020, 6:57 PM