Skip to content

Commit 26247d6

Browse files
author
Sebastian Ramacher
committed
Fix build target.
We only want to compile the translation files during build. The compilation step needs to be done before the mo files are copied.
1 parent 550b547 commit 26247d6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

setup.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,7 @@ def initialize_options(self):
7575
self.output_dir = translations_dir
7676
self.input_file = os.path.join(translations_dir, 'bpython.pot')
7777

78-
build.sub_commands.append(('compile_catalog', None))
79-
build.sub_commands.append(('update_catalog', None))
80-
build.sub_commands.append(('extract_messages', None))
81-
build.sub_commands.append(('init_catalog', None))
78+
build.sub_commands.insert(0, ('compile_catalog', None))
8279

8380
cmdclass['compile_catalog'] = compile_catalog
8481
cmdclass['extract_messages'] = extract_messages

0 commit comments

Comments
 (0)