From 97848c05cedd1ebdc0a4256861cc25eda1d92fc5 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Thu, 9 Dec 2021 02:45:35 +0000 Subject: [PATCH] [PR #6400/e1ed247d backport][3.9] Do not install C sources in binary distributions (#6403) Co-authored-by: Ben Beasley --- CHANGES/6399.misc | 1 + setup.cfg | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 CHANGES/6399.misc diff --git a/CHANGES/6399.misc b/CHANGES/6399.misc new file mode 100644 index 00000000000..beaeafbea61 --- /dev/null +++ b/CHANGES/6399.misc @@ -0,0 +1 @@ +Do not install C sources with binary distributions. diff --git a/setup.cfg b/setup.cfg index 4b29fcc4375..541c1788627 100644 --- a/setup.cfg +++ b/setup.cfg @@ -59,6 +59,11 @@ install_requires = frozenlist >= 1.1.1 aiosignal >= 1.1.2 +[options.exclude_package_data] +* = + *.c + *.h + [options.extras_require] speedups = aiodns @@ -74,7 +79,6 @@ exclude = # https://setuptools.readthedocs.io/en/latest/setuptools.html#options # (see notes for the asterisk/`*` meaning) * = -# *.c *.so [pep8]