Compare commits

...
Author SHA1 Message Date
yewentao256 451959c6cc fix python install ci error
Signed-off-by: yewentao256 <zhyanwentao@126.com>
2025-12-01 14:19:43 -08:00
+8
View File
@@ -310,6 +310,11 @@ class cmake_build_ext(build_ext):
class precompiled_build_ext(build_ext):
"""Disables extension building when using precompiled binaries."""
def finalize_options(self) -> None:
# use the project root as build_lib
super().finalize_options()
self.build_lib = str(ROOT_DIR)
def run(self) -> None:
assert _is_cuda(), "VLLM_USE_PRECOMPILED is only supported for CUDA builds"
@@ -640,6 +645,9 @@ if _is_cuda():
if _build_custom_ops():
ext_modules.append(CMakeExtension(name="vllm._C"))
if envs.VLLM_USE_PRECOMPILED:
ext_modules = [ext for ext in ext_modules if ext.name != "vllm.triton_kernels"]
package_data = {
"vllm": [
"py.typed",