|
1 | 1 | diff --git a/Cython/Build/Dependencies.py b/Cython/Build/Dependencies.py
|
2 |
| -index 92fa96a..2885a4f 100644 |
| 2 | +index 92fa96a..8864b78 100644 |
3 | 3 | --- a/Cython/Build/Dependencies.py
|
4 | 4 | +++ b/Cython/Build/Dependencies.py
|
5 |
| -@@ -1082,6 +1082,8 @@ def cythonize(module_list, exclude=None, nthreads=0, aliases=None, quiet=False, |
| 5 | +@@ -1048,6 +1048,12 @@ def cythonize(module_list, exclude=None, nthreads=0, aliases=None, quiet=False, |
| 6 | + else: |
| 7 | + dep_timestamp, dep = deps.newest_dependency(source) |
| 8 | + priority = 2 - (dep in deps.immediate_dependencies(source)) |
| 9 | ++ # GraalPy change: force recythonize if not cythonized by our patched version |
| 10 | ++ if os.path.exists(c_file): |
| 11 | ++ with open(c_file, 'rb') as f: |
| 12 | ++ # We modify the watermark to include graalpy |
| 13 | ++ if not b'graalpy' in f.read(100): |
| 14 | ++ c_timestamp = -1 |
| 15 | + if force or c_timestamp < dep_timestamp: |
| 16 | + if not quiet and not force: |
| 17 | + if source == dep: |
| 18 | +@@ -1082,6 +1088,8 @@ def cythonize(module_list, exclude=None, nthreads=0, aliases=None, quiet=False, |
6 | 19 | progress = progress_fmt.format(i+1, N)
|
7 | 20 | to_compile[i] = to_compile[i][1:] + (progress,)
|
8 | 21 |
|
@@ -101,6 +114,17 @@ index 7361a55..6c4d9d9 100644
|
101 | 114 | entry.in_cinclude = self.in_cinclude
|
102 | 115 | entry.create_wrapper = create_wrapper
|
103 | 116 | if name:
|
| 117 | +diff --git a/Cython/Compiler/Version.py b/Cython/Compiler/Version.py |
| 118 | +index dcb561f..c2c06a0 100644 |
| 119 | +--- a/Cython/Compiler/Version.py |
| 120 | ++++ b/Cython/Compiler/Version.py |
| 121 | +@@ -6,4 +6,5 @@ from .. import __version__ as version |
| 122 | + |
| 123 | + # For 'generated by' header line in C files. |
| 124 | + |
| 125 | +-watermark = str(version) |
| 126 | ++# GraalPy change: watermark our patched version |
| 127 | ++watermark = f'{version}-graalpy' |
104 | 128 | diff --git a/Cython/Includes/cpython/datetime.pxd b/Cython/Includes/cpython/datetime.pxd
|
105 | 129 | index cd0f907..712cd92 100644
|
106 | 130 | --- a/Cython/Includes/cpython/datetime.pxd
|
@@ -154,7 +178,7 @@ index 099b3c4..0692df0 100644
|
154 | 178 | cval = ((PyComplexObject *)o)->cval;
|
155 | 179 | else
|
156 | 180 | diff --git a/Cython/Utility/Coroutine.c b/Cython/Utility/Coroutine.c
|
157 |
| -index aaa8a8e..152e9dc 100644 |
| 181 | +index aaa8a8e..e60a5e0 100644 |
158 | 182 | --- a/Cython/Utility/Coroutine.c
|
159 | 183 | +++ b/Cython/Utility/Coroutine.c
|
160 | 184 | @@ -531,8 +531,7 @@ static int __Pyx_PyGen__FetchStopIterationValue(CYTHON_UNUSED PyThreadState *$lo
|
@@ -221,7 +245,7 @@ index 93f577f..5dac1d7 100644
|
221 | 245 | #endif
|
222 | 246 | else if (PyMethod_Check(method)) {
|
223 | 247 | diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c
|
224 |
| -index cfff606..4a6a6ea 100644 |
| 248 | +index cfff606..90876c6 100644 |
225 | 249 | --- a/Cython/Utility/ModuleSetupCode.c
|
226 | 250 | +++ b/Cython/Utility/ModuleSetupCode.c
|
227 | 251 | @@ -186,6 +186,48 @@
|
|
0 commit comments