[CI/Build] fix setuptools-scm usage (#8771)

This commit is contained in:
Daniele
2024-09-24 21:38:12 +02:00
committed by GitHub
parent 72fc97a0f1
commit 2467b642dd
3 changed files with 7 additions and 10 deletions

View File

@ -354,12 +354,15 @@ def get_path(*filepath) -> str:
def get_vllm_version() -> str:
version = get_version()
version = get_version(
write_to="vllm/_version.py", # TODO: move this to pyproject.toml
)
sep = "+" if "+" not in version else "." # dev versions might contain +
if _no_device():
if envs.VLLM_TARGET_DEVICE == "empty":
version += "+empty"
version += f"{sep}empty"
elif _is_cuda():
cuda_version = str(get_nvcc_cuda_version())
if cuda_version != MAIN_CUDA_VERSION: