1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
Description: provide files in order
This is meant to help make the build reproducible.
Author: Sascha Steinbiss <satta@debian.org>
Last-Update: 2019-02-01
--- a/setup.py
+++ b/setup.py
@@ -107,9 +107,9 @@
# glob in Python 3.5 takes ** syntax
# pofiles = glob.glob(os.path.join(localedir, '**.po', recursive=True))
- pofiles = [os.path.join(dirpath, f)
+ pofiles = sorted([os.path.join(dirpath, f)
for dirpath, dirnames, files in os.walk(localedir)
- for f in files if f.endswith('.po')]
+ for f in files if f.endswith('.po')])
logging.debug('Loading %r', pofiles)
catalogs = {}
|