From 37443201ec2edec68fe4efc06f663046dcd8373f Mon Sep 17 00:00:00 2001 From: exploide Date: Wed, 3 May 2017 11:34:40 +0200 Subject: [PATCH] unset environment variable DJANGO_SETTINGS_MODULE before compiling messages this prevents setup.py from crashing when a user defined settings module is not available in build directory --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 8958805..8049c61 100644 --- a/setup.py +++ b/setup.py @@ -24,9 +24,9 @@ def finalize_options(self): pass def run(self): - import os from django.core import management + os.environ['DJANGO_SETTINGS_MODULE'] = '' curdir = os.getcwd() os.chdir(os.path.realpath('build/lib/pyBuchaktion')) management.call_command('compilemessages') @@ -42,7 +42,7 @@ def run(self): setup( name='pyBuchaktion', - version='0.2', + version='0.3', packages=find_packages(), include_package_data=True, license='AGPL-3.0',