Skip to content

Commit

Permalink
fix: reduce size of wheels by excluding generated .c files (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Oct 18, 2023
1 parent 46781c1 commit 1b56b6e
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 @@ -42,6 +42,9 @@ def build(setup_kwargs: 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 1b56b6e

Please sign in to comment.