From c479e794975a2ef7f40526350088fb09c266ed5f Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 17 Oct 2023 21:55:58 -1000 Subject: [PATCH] fix: reduce size of wheels by excluding generated .c files --- build_ext.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build_ext.py b/build_ext.py index 7a72f50..6ec955b 100644 --- a/build_ext.py +++ b/build_ext.py @@ -43,6 +43,9 @@ def build(setup_kwargs: Dict[Any, Any]) -> None: 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