blob: 345febc1ee02e425caf31735947a87bb8c50770d (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/usr/bin/env python3
# SPDX-License-Identifier: CC0-1.0
# Copyright (C) 2022 Wojtek Kosior <koszko@koszko.org>
#
# Available under the terms of Creative Commons Zero v1.0 Universal.
import setuptools
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})
|