From dd4366eb4c68ebd17a086aac0a853afcf3232d3c Mon Sep 17 00:00:00 2001 From: Sergio Costas Date: Sat, 24 Mar 2018 13:48:21 +0100 Subject: [PATCH] Added check for the MSGFMT binary, needed to install devedeng --- setup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.py b/setup.py index 546ca2a..06d769b 100755 --- a/setup.py +++ b/setup.py @@ -43,6 +43,10 @@ def get_data_files(): def compile_translations(): + if (os.system("msgfmt -V") != 0): + print('You need the binary "msgfmt" (from "gettext") to compile the translations. Aborting') + sys.exit(-1) + try: for pofile in [f for f in os.listdir('po') if f.endswith('.po')]: pofile = os.path.join('po', pofile)