fix: reduce size of wheels by excluding generated .c files (#262)
This commit is contained in:
@@ -37,6 +37,9 @@ def build(setup_kwargs):
|
|||||||
cmdclass=dict(build_ext=BuildExt),
|
cmdclass=dict(build_ext=BuildExt),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
setup_kwargs["exclude_package_data"] = {
|
||||||
|
pkg: ["*.c"] for pkg in setup_kwargs["packages"]
|
||||||
|
}
|
||||||
except Exception:
|
except Exception:
|
||||||
if os.environ.get("REQUIRE_CYTHON"):
|
if os.environ.get("REQUIRE_CYTHON"):
|
||||||
raise
|
raise
|
||||||
|
|||||||
Reference in New Issue
Block a user