Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Commit

Permalink
unset environment variable DJANGO_SETTINGS_MODULE before compiling me…
Browse files Browse the repository at this point in the history
…ssages

this prevents setup.py from crashing when a user defined settings module is not available in build directory
  • Loading branch information
exploide committed May 3, 2017
1 parent 94dccc6 commit 3744320
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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',
Expand Down

0 comments on commit 3744320

Please sign in to comment.