diff options
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -7,4 +7,14 @@ import setuptools -setuptools.setup() +from setuptools.command.build_py import build_py + +class CustomBuildCommand(build_py): + ''' + The build command but runs babel before build. + ''' + def run(self, *args, **kwargs): + self.run_command('compile_catalog') + super().run(*args, **kwargs) + +setuptools.setup(cmdclass={'build_py': CustomBuildCommand}) |