[Build] Propagate vLLM version to Rust binaries (#52593)
Signed-off-by: Bugen Zhao <i@bugenzhao.com> Co-authored-by: Nick Hill <nickhill123@gmail.com> Co-authored-by: Andreas Karatzas <akaratza@amd.com>
This commit is contained in:
co-authored by
Nick Hill
Andreas Karatzas
parent
b0e9cff5e7
commit
c89d692cb5
@@ -1493,6 +1493,11 @@ if (
|
||||
):
|
||||
cmdclass["build_rust"] = precompiled_build_rust
|
||||
|
||||
# Resolve the Python version first because get_vllm_version() may set
|
||||
# SETUPTOOLS_SCM_PRETEND_VERSION, which the Rust version should inherit.
|
||||
vllm_version = get_vllm_version()
|
||||
rust_build.prepare_build_environment()
|
||||
|
||||
# Rust artifacts, built via setuptools-rust and installed into the package
|
||||
# directory alongside the Python modules.
|
||||
rust_extensions = rust_build.rust_extensions(
|
||||
@@ -1501,7 +1506,7 @@ rust_extensions = rust_build.rust_extensions(
|
||||
|
||||
setup(
|
||||
# static metadata should rather go in pyproject.toml
|
||||
version=get_vllm_version(),
|
||||
version=vllm_version,
|
||||
ext_modules=ext_modules,
|
||||
rust_extensions=rust_extensions,
|
||||
install_requires=get_requirements(),
|
||||
|
||||
Reference in New Issue
Block a user