Skip to content

Commit 8628e84

Browse files
authored
fix: tests using cython on manylinux_2_5 (#585)
cython 3.1.0+ requires a C99 compiler but manylinux_2_5 uses gcc 4.8 which is not C99 compliant by default.
1 parent c97eb19 commit 8628e84

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/integration/test_manylinux.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,10 @@ def anylinux(
454454
for key in os.environ:
455455
if key.startswith("COV_CORE_"):
456456
env[key] = os.environ[key]
457+
# cython 3.1.0+ requires a C99 compiler,
458+
# where manylinux_2_5 uses gcc 4.8 which is not C99 compliant by default.
459+
if policy == "manylinux_2_5":
460+
env["CFLAGS"] = "-std=c99"
457461

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

0 commit comments

Comments
 (0)