From 77456c1f1f30ff9c0665bea1c03cd6c86a5b8722 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Fri, 25 Dec 2020 04:13:23 +0100 Subject: [PATCH] Exclude .pyx files from sdist package This way install only depends on the .c files compiled by us. --- psycopg3_c/setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/psycopg3_c/setup.py b/psycopg3_c/setup.py index cab5b64a5..aedc7fb45 100644 --- a/psycopg3_c/setup.py +++ b/psycopg3_c/setup.py @@ -91,6 +91,9 @@ setup( # For some reason pacakge_data doesn't work in setup.cfg package_data={ "psycopg3_c": ["py.typed"], - "": ["*.pyx", "*.pxd", "*.pyi"], + # NOTE: do not include .pyx files: they shoudn't be in the sdist + # package, so that build is only performed from the .c files (which are + # distributed instead). + "": ["*.pxd", "*.pyi"], }, ) -- 2.47.3