Description: Disable linux_uring backend on 32-bit PowerPC Author: Yuri Konotopov Forwarded: not-needed Last-Update: 2026-08-29 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- caio.orig/setup.py +++ caio/setup.py @@ -7,6 +7,7 @@ module_name = "caio" OS_NAME = platform.system().lower() +MACHINE = platform.machine().lower() extensions = [] @@ -40,13 +41,14 @@ if "linux" in OS_NAME: extra_compile_args=["-g"], ), ) - extensions.append( - Extension( - "{}.linux_uring".format(module_name), - ["{}/linux_uring.c".format(module_name)], - extra_compile_args=["-g"], - ), - ) + if MACHINE not in {"ppc", "powerpc"}: + extensions.append( + Extension( + "{}.linux_uring".format(module_name), + ["{}/linux_uring.c".format(module_name)], + extra_compile_args=["-g"], + ), + ) setup(