From a87047099ae713c58a84744dd8d0024422011e68 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Wed, 18 Oct 2023 21:45:53 +0800 Subject: [PATCH] don't automatically include package data this excludes *.c & *.pyx in the wheel, but still includes them in the source tarball. --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index cb9ed35..bf9f7e0 100644 --- a/setup.py +++ b/setup.py @@ -68,6 +68,7 @@ author_email="aleivag@gmail.com", packages=["pystemd", "pystemd.systemd1", "pystemd.machine1", "pystemd.DBus"], ext_modules=external_modules, + include_package_data=False, package_data={ "pystemd": [ str(p.relative_to("pystemd")) for p in Path("pystemd").glob("**/*.pyi")