From: Daniele Varrazzo Date: Fri, 25 Dec 2020 03:13:23 +0000 (+0100) Subject: Exclude .pyx files from sdist package X-Git-Tag: 3.0.dev0~251 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77456c1f1f30ff9c0665bea1c03cd6c86a5b8722;p=thirdparty%2Fpsycopg.git Exclude .pyx files from sdist package This way install only depends on the .c files compiled by us. --- 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"], }, )