From dca459900e19e7340b68601d13422c83a7d67a19 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 17 Oct 2023 21:44:54 -1000 Subject: [PATCH] fix: reduce size of wheels by excluding generated .c files (#262) --- build_ext.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build_ext.py b/build_ext.py index df80aa32..4c5e5486 100644 --- a/build_ext.py +++ b/build_ext.py @@ -37,6 +37,9 @@ def build(setup_kwargs): cmdclass=dict(build_ext=BuildExt), ) ) + setup_kwargs["exclude_package_data"] = { + pkg: ["*.c"] for pkg in setup_kwargs["packages"] + } except Exception: if os.environ.get("REQUIRE_CYTHON"): raise