]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Enable cython faster call convention
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 21 Dec 2020 01:39:23 +0000 (02:39 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 21 Dec 2020 15:52:47 +0000 (16:52 +0100)
psycopg3_c/setup.py

index 8f3770afafabf5e7d6010545d8d949e5d35cef42..cab5b64a52b36f9c000608ca38620fbce1eb7de6 100644 (file)
@@ -60,6 +60,9 @@ class psycopg3_build_ext(build_ext):
             self.distribution.ext_modules = cythonize(
                 self.distribution.ext_modules,
                 language_level=3,
+                compiler_directives={
+                    "always_allow_keywords": False,
+                },
                 annotate=False,  # enable to get an html view of the C module
             )
         else: