From b2556575c3e668372f300b2b0cdf632f16bfe4a8 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Wed, 8 Dec 2021 07:35:04 -0500 Subject: [PATCH] Do not install C sources with binary distributions This does not affect source distributions, and Cython sources (.pyx) are still installed. Fixes #646. --- CHANGES/646.misc | 1 + setup.py | 1 + 2 files changed, 2 insertions(+) create mode 100644 CHANGES/646.misc diff --git a/CHANGES/646.misc b/CHANGES/646.misc new file mode 100644 index 00000000..2b1f355b --- /dev/null +++ b/CHANGES/646.misc @@ -0,0 +1 @@ + Do not install C sources with binary distributions. diff --git a/setup.py b/setup.py index 0b178522..628f56a6 100644 --- a/setup.py +++ b/setup.py @@ -69,6 +69,7 @@ def read(name): install_requires=install_requires, python_requires=">=3.6", include_package_data=True, + exclude_package_data={"": ["*.c"]}, )