packaging: mark mercurial.templates and subdirs as packages
We need these packages to be installed so PyOxidizer picks them up.
Differential Revision: https://phab.mercurial-scm.org/D8855
--- a/setup.py Thu Dec 12 12:41:01 2019 -0800
+++ b/setup.py Fri Jul 31 09:49:52 2020 -0700
@@ -1268,6 +1268,7 @@
'mercurial.hgweb',
'mercurial.interfaces',
'mercurial.pure',
+ 'mercurial.templates',
'mercurial.thirdparty',
'mercurial.thirdparty.attr',
'mercurial.thirdparty.zope',
@@ -1292,6 +1293,13 @@
'hgext3rd',
'hgdemandimport',
]
+
+for name in os.listdir(os.path.join('mercurial', 'templates')):
+ if name != '__pycache__' and os.path.isdir(
+ os.path.join('mercurial', 'templates', name)
+ ):
+ packages.append('mercurial.templates.%s' % name)
+
if sys.version_info[0] == 2:
packages.extend(
[