make setup.py typeout more accurate
This commit is contained in:
parent
d03d99ccce
commit
cc13810673
8
setup.py
8
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
|
||||
|
Loading…
Reference in New Issue
Block a user