# HG changeset patch # User Martin von Zweigbergk # Date 1596214192 25200 # Node ID 41ff8a463e107cc4b0669f2560b75c48fcd224b9 # Parent f55c47f41b8e497c85cb4ee32ced67dd47cb2839 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 diff -r f55c47f41b8e -r 41ff8a463e10 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( [