Skip to content

Commit e11dea3

Browse files
authored
Merge pull request #2112 from IntelPython/pin-cython-when-python-3.13-or-greater
Pin Cython<3.1.0 for Python>=3.13
2 parents 716d3ff + e4d311e commit e11dea3

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

conda-recipe/meta.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ requirements:
4141
- {{ dep }}
4242
{% elif dep.startswith('build>=') %}
4343
- {{ 'python-' ~ dep }}
44+
{% elif dep.startswith('cython') %}
45+
{% if dep.split(';')[1] == "python_version<'3.13'" %}
46+
- {{ dep.split(';')[0] }} # [py<313]
47+
{% else %}
48+
- {{ dep.split(';')[0] }} # [py>=313]
49+
{% endif %}
4450
{% else %}
4551
- {{ dep|replace('_','-') }}
4652
{% endif %}

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ requires = [
88
"scikit-build>=0.17.0",
99
"ninja>=1.11.1; platform_system!='Windows'",
1010
"cmake>=3.29.0",
11-
"cython>=3.0.10",
11+
"cython>=3.0.10;python_version<'3.13'",
12+
"cython>=3.0.10,<3.1.0;python_version>='3.13'",
1213
"numpy >=1.23",
1314
# WARNING: check with doc how to upgrade
1415
"versioneer[toml]==0.29"

0 commit comments

Comments
 (0)