From 6bc04f8097e44e55cbf543d811ccd90671faedbc Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Mon, 25 Apr 2022 19:46:54 +0200 Subject: New upstream version 1.0 --- setup.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 setup.py (limited to 'setup.py') diff --git a/setup.py b/setup.py new file mode 100755 index 0000000..345febc --- /dev/null +++ b/setup.py @@ -0,0 +1,20 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: CC0-1.0 + +# Copyright (C) 2022 Wojtek Kosior +# +# 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}) -- cgit v1.2.3