From acf3caf7eb28767185e782815f145e373ca03923 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Fri, 8 Sep 2023 10:28:15 +0200 Subject: [PATCH] Add back setup.py file The pyproject metadata stuff depends on https://peps.python.org/pep-0621/ for which support is only available in a recent version of setuptools that isn't available in all distributions just yet. So let's add back a setup.py file to allow building on older distributions. --- setup.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 setup.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..077691d --- /dev/null +++ b/setup.py @@ -0,0 +1,19 @@ +#!/usr/bin/python3 +# SPDX-License-Identifier: LGPL-2.1+ + +from setuptools import setup, find_packages + +setup( + name="mkosi", + version="16", + description="Build Bespoke OS Images", + url="https://github.com/systemd/mkosi", + maintainer="mkosi contributors", + maintainer_email="systemd-devel@lists.freedesktop.org", + license="LGPLv2+", + python_requires=">=3.9", + packages = find_packages(".", exclude=["tests"]), + package_data = {"": ["repart/**/*", "mkosi.md", "mkosi.1", "mkosi-initrd/**/*", "mkosi-tools/**/*"]}, + include_package_data = True, + entry_points = { "console_scripts": ["mkosi = mkosi.__main__:main"] }, +) -- 2.41.0