[Build] Skip spinloop extension on Python < 3.11 (#44783)

Signed-off-by: Jasen2201 <yajizhan@amd.com>
This commit is contained in:
jasen
2026-06-11 11:23:21 +00:00
committed by GitHub
parent 3508cb78d4
commit ef67071b21
2 changed files with 17 additions and 13 deletions
+2 -1
View File
@@ -1086,7 +1086,8 @@ if _is_cuda() or _is_hip():
# copying the relevant .py files from the source repository.
ext_modules.append(CMakeExtension(name="vllm.triton_kernels", optional=True))
ext_modules.append(CMakeExtension(name="vllm.spinloop"))
if sys.version_info >= (3, 11):
ext_modules.append(CMakeExtension(name="vllm.spinloop"))
if _is_hip():
ext_modules.append(CMakeExtension(name="vllm._rocm_C"))