packaging: mark mercurial.templates and subdirs as packages
authorMartin von Zweigbergk <martinvonz@google.com>
Fri, 31 Jul 2020 09:49:52 -0700
changeset 45325 41ff8a463e10
parent 45324 f55c47f41b8e
child 45326 e2320bb7a99f
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
setup.py
--- 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(
         [