summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsetup.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 92655da..b8a002a 100755
--- a/setup.py
+++ b/setup.py
@@ -5,6 +5,7 @@ Setup script for eopayment
'''
import io
+import os
import subprocess
import distutils
@@ -112,7 +113,8 @@ class compile_translations(Command):
def run(self):
django_admin = find_executable('django-admin')
if django_admin:
- subprocess.call([django_admin, 'compilemessages'])
+ os.environ.pop('DJANGO_SETTINGS_MODULE', None)
+ subprocess.check_call([django_admin, 'compilemessages'])
class build(_build):