]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Exclude .pyx files from sdist package
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 25 Dec 2020 03:13:23 +0000 (04:13 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 25 Dec 2020 03:13:23 +0000 (04:13 +0100)
This way install only depends on the .c files compiled by us.

psycopg3_c/setup.py

index cab5b64a52b36f9c000608ca38620fbce1eb7de6..aedc7fb45b534857e79199493e9d81b5b31c23fa 100644 (file)
@@ -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"],
     },
 )