From cc138106738689cc06720b7161d587584806a31d Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Mon, 29 Feb 2016 17:25:16 -0800 Subject: [PATCH] make setup.py typeout more accurate --- setup.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index d96959734..d57187596 100755 --- a/setup.py +++ b/setup.py @@ -138,13 +138,12 @@ def build_trans(build_cmd): reply = input(ask) if reply in ['n', 'N']: raise SystemExit(msg) + log.info('Compiling %s >> %s', po_file, mo_file) #linux specific piece: target = 'share/locale/' + lang + '/LC_MESSAGES' data_files.append((target, [mo_file_unix])) - log.info('Compiling %s >> %s.', po_file, target) - def build_man(build_cmd): ''' Compresses Gramps manual files @@ -164,7 +163,7 @@ def build_man(build_cmd): import gzip man_file_gz = os.path.join(newdir, 'gramps.1.gz') if os.path.exists(man_file_gz): - if newer(newfile, man_file_gz): + if newer(filename, man_file_gz): os.remove(man_file_gz) else: filename = False @@ -175,6 +174,7 @@ def build_man(build_cmd): with open(newfile, 'rb') as f_in,\ gzip.open(man_file_gz, 'wb') as f_out: f_out.writelines(f_in) + log.info('Compiling %s >> %s', filename, man_file_gz) os.remove(newfile) filename = False @@ -184,8 +184,6 @@ def build_man(build_cmd): target = 'share/man/' + lang + '/man1' data_files.append((target, [src])) - log.info('Compiling %s >> %s.', src, target) - def build_intl(build_cmd): ''' Merge translation files into desktop and mime files