fix: reduce size of wheels by excluding generated .c files (#262)

This commit is contained in:
J. Nick Koston 2023-10-17 21:44:54 -10:00 committed by GitHub
parent 460a072652
commit dca459900e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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