]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
fix(c): don't use Cython 3.1 or following to build the extension
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 8 May 2025 23:47:26 +0000 (01:47 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 9 May 2025 00:16:33 +0000 (02:16 +0200)
The resulting module seems affected by a memory leak.

https://github.com/cython/cython/issues/6850

psycopg_c/pyproject.toml

index 55c0504d60cdb571710b0a85baaed7261347d58f..d0802b55e398527d953d45fb52fc1f8163b8e1de 100644 (file)
@@ -14,4 +14,9 @@ backend-path = ["build_backend"]
 
 [cython-backend]
 # These packages are only installed if there are pyx files to compile.
-cython-requires = ["Cython >= 3.0.0"]
+
+# Don't install Cython 3.1: https://github.com/cython/cython/issues/6850
+# TODO: When the bug is solved we will remove the upper bound of the version
+# and just exclude the known broken versions, or we will establish a new
+# lower bound.
+cython-requires = ["Cython >= 3.0.0, < 3.1.0"]