Revision 9e71d383
Added by koszko over 1 year ago
setup.py | ||
---|---|---|
7 | 7 |
|
8 | 8 |
import setuptools |
9 | 9 |
|
10 |
setuptools.setup() |
|
10 |
from setuptools.command.build_py import build_py |
|
11 |
|
|
12 |
class CustomBuildCommand(build_py): |
|
13 |
''' |
|
14 |
The build command but runs babel before build. |
|
15 |
''' |
|
16 |
def run(self, *args, **kwargs): |
|
17 |
self.run_command('compile_catalog') |
|
18 |
super().run(*args, **kwargs) |
|
19 |
|
|
20 |
setuptools.setup(cmdclass={'build_py': CustomBuildCommand}) |
Also available in: Unified diff
internationalize using Babel
this commit also makes the sdist tarball generated by setuptools REUSE-compliant