From 19d565eefc657f4a73d0abf40996ebe7dd504de3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 9 Sep 2021 20:59:39 +0200 Subject: [PATCH 1/2] Do not install the *.c sources They should not be required for anything. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index af36dc8..1b409d3 100644 --- a/setup.py +++ b/setup.py @@ -210,7 +210,7 @@ def build_extensions(self): extra_compile_args=CFLAGS, ), ], - include_package_data=True, + include_package_data=False, test_suite='tests.suite', setup_requires=setup_requires, extras_require={ From 23ee12279467da5e54fb0e5220844662a6baf2e4 Mon Sep 17 00:00:00 2001 From: Fantix King Date: Mon, 16 Oct 2023 13:00:44 -0400 Subject: [PATCH 2/2] Exclude only .c/.h files in wheels --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index dd79285..200e6f6 100644 --- a/setup.py +++ b/setup.py @@ -210,7 +210,8 @@ def build_extensions(self): extra_compile_args=CFLAGS, ), ], - include_package_data=False, + include_package_data=True, + exclude_package_data={"": ["*.c", "*.h"]}, test_suite='tests.suite', setup_requires=setup_requires, extras_require={