summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2014-09-03 07:09:19 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2014-09-03 07:12:00 (GMT)
commit9ad80a997208d7f371d5d000af6562ca939474d4 (patch)
tree883bf22783c64b6556ab6f720ed09a88d35f1ce5 /setup.py
parent0ec6419d8fcad385f1b84e0831bb83e7b6af2efb (diff)
downloaddjango-mellon-9ad80a997208d7f371d5d000af6562ca939474d4.zip
django-mellon-9ad80a997208d7f371d5d000af6562ca939474d4.tar.gz
django-mellon-9ad80a997208d7f371d5d000af6562ca939474d4.tar.bz2
Use call_command to compile translations
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py6
1 files 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):