From a9736b96c0cdd25ee1a525204c677c423260f588 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 27 Aug 2014 15:13:19 +0200 Subject: [PATCH] po2json is only needed in development environments, so don't try to always import it --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c0875388..207f0371 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,6 @@ import shutil import glob from babel.messages import frontend as babel -import po2json I18N_MAPPING_FILE = "babel.cfg" I18N_DOMAIN = "messages" @@ -129,6 +128,8 @@ class CompileTranslation(Command): def run(self): self.babel_compile_messages.run() + import po2json + for lang_code in os.listdir(I18N_OUTPUT_DIR_PY): full_path = os.path.join(I18N_OUTPUT_DIR_PY, lang_code)