fix: reduce size of wheels by excluding generated .c files (#1284) · python-zeroconf/python-zeroconf@b6afa4b

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit b6afa4b

authored

fix: reduce size of wheels by excluding generated .c files (#1284)

1 parent e3ce455 commit b6afa4b

File tree

2 files changed

+

2

-

0

lines changed

2 files changed

+

2

-

0

lines changed

Lines changed: 1 addition & 0 deletions

Original file line numberDiff line numberDiff line change

@@ -1,2 +1,3 @@

11

include README.rst

22

include COPYING

3+

global-exclude *.c

Lines changed: 1 addition & 0 deletions

Original file line numberDiff line numberDiff line change

@@ -44,6 +44,7 @@ def build(setup_kwargs: Any) -> None:

4444

cmdclass=dict(build_ext=BuildExt),

4545

)

4646

)

47+

setup_kwargs["exclude_package_data"] = {pkg: ["*.c"] for pkg in setup_kwargs["packages"]}

4748

except Exception:

4849

if os.environ.get("REQUIRE_CYTHON"):

4950

raise

0 commit comments

Comments

 (0)