cython: fix recythonize by default patch (#40096)

This commit is contained in:
Harmen Stoppels 2023-09-21 14:09:47 +02:00 committed by GitHub
parent bd8d121a23
commit 8bd54e2f8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,23 @@
From d6b6df173dc43625c22f23503b22253db35848e2 Mon Sep 17 00:00:00 2001
From: Harmen Stoppels <me@harmenstoppels.nl>
Date: Tue, 19 Sep 2023 21:36:24 +0200
Subject: [PATCH] cythonize 0.29.x: use force=None as default instead of
force=False
---
Cython/Build/Dependencies.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Cython/Build/Dependencies.py b/Cython/Build/Dependencies.py
index 28c48ed8c3b..92fa96aa013 100644
--- a/Cython/Build/Dependencies.py
+++ b/Cython/Build/Dependencies.py
@@ -878,7 +878,7 @@ class Extension_setuptools(Extension): pass
# This is the user-exposed entry point.
-def cythonize(module_list, exclude=None, nthreads=0, aliases=None, quiet=False, force=False, language=None,
+def cythonize(module_list, exclude=None, nthreads=0, aliases=None, quiet=False, force=None, language=None,
exclude_failures=False, **options):
"""
Compile a set of source modules into C/C++ files and return a list of distutils

View File

@ -57,6 +57,7 @@ class PyCython(PythonPackage):
# Backports CYTHON_FORCE_REGEN environment variable
patch("5307.patch", when="@0.29:0.29.33")
patch("5712.patch", when="@0.29")
@property
def command(self):