Skip to content

Commit

Permalink
fix: reduce size of wheels by excluding generated .c files (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Oct 18, 2023
1 parent 460a072 commit dca4599
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 @@ -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
Expand Down

0 comments on commit dca4599

Please sign in to comment.