Skip to content

Commit

Permalink
fix: reduce size of wheels by excluding generated .c files (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Oct 18, 2023
1 parent 915697b commit a25ebca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a25ebca

Please sign in to comment.