We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d28876 commit a652175Copy full SHA for a652175
setup.py
@@ -9,16 +9,13 @@
9
10
# When creating the sdist, make sure the django.mo file also exists:
11
if 'sdist' in sys.argv or 'develop' in sys.argv:
12
+ os.chdir('fluent_faq')
13
try:
- os.chdir('fluent_faq')
14
-
15
- from django.core.management.commands.compilemessages import Command
16
- command = Command()
17
- command.execute(stdout=sys.stderr, verbosity=1)
+ from django.core import management
+ management.call_command('compilemessages', stdout=sys.stderr, verbosity=1)
18
except ImportError:
19
- # < Django 1.7
20
- from django.core.management.commands.compilemessages import compile_messages
21
- compile_messages(sys.stderr)
+ if 'sdist' in sys.argv:
+ raise
22
finally:
23
os.chdir('..')
24
0 commit comments