forked from systemd/mkosi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·34 lines (28 loc) · 962 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/python3
# SPDX-License-Identifier: LGPL-2.1+
from setuptools import setup, Command, find_packages
class BuildManpage(Command):
description = ('builds the manpage')
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
self.spawn(['pandoc', '-t', 'man', '-s', '-o', 'man/mkosi.1', 'mkosi.md'])
setup(
name="mkosi",
version="14",
description="Build Bespoke OS Images",
url="https://github.com/systemd/mkosi",
maintainer="mkosi contributors",
maintainer_email="[email protected]",
license="LGPLv2+",
python_requires=">=3.7",
packages = find_packages(".", exclude=["tests"]),
package_data = {"": ["*.sh", "*.hook", "*.conf", "*.install"]},
include_package_data = True,
scripts = ["bin/mkosi"],
cmdclass = { "man": BuildManpage },
data_files = [('share/man/man1', ["man/mkosi.1"])],
)