summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2020-11-20 09:12:17 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2020-11-20 14:38:59 (GMT)
commit7fcee11aa215d3376e1960d0013be238b7cac93a (patch)
treed8eece70bfd7c1d55442a53163832a90a420d55e
parent62c5549eb601d957e3931874023d9471e8830348 (diff)
downloadeopayment-master.zip
eopayment-master.tar.gz
eopayment-master.tar.bz2
setup.py: remove DJANGO_SETTINGS_MODULE from environment (#48707)HEADmaster
-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):