Skip to content

Commit

Permalink
fix: reduce size of wheels by excluding generated .c files (#1284)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Oct 18, 2023
1 parent e3ce455 commit b6afa4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
@@ -1,2 +1,3 @@
include README.rst
include COPYING
global-exclude *.c
1 change: 1 addition & 0 deletions build_ext.py
Expand Up @@ -44,6 +44,7 @@ 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 b6afa4b

Please sign in to comment.