[Bugfix] Fix issues in CPU build Dockerfile. Fixes #9182 (#11435)

Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
This commit is contained in:
Yuan Tang
2024-12-24 16:53:28 +00:00
committed by GitHub
parent 196c34b0ac
commit 409475a827
2 changed files with 10 additions and 6 deletions
+7 -3
View File
@@ -455,9 +455,13 @@ def get_gaudi_sw_version():
def get_vllm_version() -> str:
version = get_version(
write_to="vllm/_version.py", # TODO: move this to pyproject.toml
)
# TODO: Revisit this temporary approach: https://github.com/vllm-project/vllm/issues/9182#issuecomment-2404860236
try:
version = get_version(
write_to="vllm/_version.py", # TODO: move this to pyproject.toml
)
except LookupError:
version = "0.0.0"
sep = "+" if "+" not in version else "." # dev versions might contain +