diff -r 41ff8a463e10 -r e2320bb7a99f setup.py --- a/setup.py Fri Jul 31 09:49:52 2020 -0700 +++ b/setup.py Fri Jul 31 10:05:07 2020 -0700 @@ -1635,10 +1635,8 @@ for root in ('templates',): for curdir, dirs, files in os.walk(os.path.join('mercurial', root)): - curdir = curdir.split(os.sep, 1)[1] - for f in filter(ordinarypath, files): - f = os.path.join(curdir, f) - packagedata['mercurial'].append(f) + packagename = curdir.replace(os.sep, '.') + packagedata[packagename] = list(filter(ordinarypath, files)) datafiles = []