From 9ad80a997208d7f371d5d000af6562ca939474d4 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Wed, 3 Sep 2014 09:09:19 +0200 Subject: [PATCH] Use call_command to compile translations --- setup.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 13720be..9d83d16 100755 --- a/setup.py +++ b/setup.py @@ -21,15 +21,13 @@ class compile_translations(Command): def run(self): import os - import sys - from django.core.management.commands.compilemessages import \ - compile_messages + from django.core.management import call_command for path in ['mellon/']: if path.endswith('.py'): continue curdir = os.getcwd() os.chdir(os.path.realpath(path)) - compile_messages(sys.stderr) + call_command('compilemessages') os.chdir(curdir) class build(_build):