Skip to content

Commit

Permalink
Also compile translation files when building a wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
Martijn Jacobs committed Feb 22, 2019
1 parent 7552af4 commit d4aaf9d
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 @@ -7,8 +7,8 @@
import sys


# When creating the sdist, make sure the django.mo file also exists:
if 'sdist' in sys.argv:
# When creating the distribution, make sure the django.mo file also exists:
if 'sdist' or 'bdist_wheel' in sys.argv:
os.chdir('oscar_docdata')
from django.core import management
management.call_command('compilemessages', stdout=sys.stderr, verbosity=1)
Expand Down

0 comments on commit d4aaf9d

Please sign in to comment.