Skip to content

Commit 7993e1d

Browse files
committed
revert hard-code cython version and use env as workaround
1 parent 3296f33 commit 7993e1d

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[build-system]
2-
requires = ["cython < 3.1.0", "setuptools"]
2+
requires = ["cython", "setuptools"]
33
build-backend = "setuptools.build_meta"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[build-system]
2-
requires = ["cython < 3.1.0", "setuptools"]
2+
requires = ["cython", "setuptools"]
33
build-backend = "setuptools.build_meta"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[build-system]
2-
requires = ["setuptools >= 45.0.0", "cython < 3.1.0"]
2+
requires = ["setuptools >= 45.0.0", "cython"]
33
build-backend = "setuptools.build_meta"

tests/integration/test_manylinux.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,10 @@ def anylinux(
458458
for key in os.environ:
459459
if key.startswith("COV_CORE_"):
460460
env[key] = os.environ[key]
461+
# cython 3.1.0+ requires a C99 compiler,
462+
# where manylinux_2_5 uses gcc 4.8 which is not C99 compliant by default.
463+
if policy == "manylinux_2_5":
464+
env["CFLAGS"] = "-std=c99"
461465

462466
with docker_container_ctx(manylinux_img, io_folder, env) as container:
463467
platform_tag = ".".join(

0 commit comments

Comments
 (0)