Mercurial > hg-stable
diff setup.py @ 45325:41ff8a463e10
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
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 31 Jul 2020 09:49:52 -0700 |
parents | c8655782ef19 |
children | e2320bb7a99f |
line wrap: on
line diff
--- 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( [