Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,11 @@ def run(self):
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"

Expand Down Expand Up @@ -640,6 +645,9 @@ def _read_requirements(filename: str) -> list[str]:
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",
Expand Down
Loading