File tree 2 files changed +2
-1
lines changed
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ set(TRTLLM_VERSION_DIR ${PROJECT_SOURCE_DIR}/../tensorrt_llm)
109
109
set_directory_properties (PROPERTIES CMAKE_CONFIGURE_DEPENDS
110
110
${TRTLLM_VERSION_DIR} /version .py)
111
111
execute_process (
112
- COMMAND python3 -c "import version; print(version.__version__)"
112
+ COMMAND ${Python_EXECUTABLE} -c "import version; print(version.__version__)"
113
113
WORKING_DIRECTORY ${TRTLLM_VERSION_DIR}
114
114
OUTPUT_VARIABLE TRTLLM_VERSION
115
115
RESULT_VARIABLE TRTLLM_VERSION_RESULT
Original file line number Diff line number Diff line change @@ -363,6 +363,7 @@ def main(*,
363
363
f'cmake -DCMAKE_BUILD_TYPE="{ build_type } " -DBUILD_PYT="{ build_pyt } " -DBUILD_PYBIND="{ build_pybind } "'
364
364
f' -DNVTX_DISABLE="{ disable_nvtx } " -DBUILD_MICRO_BENCHMARKS={ build_micro_benchmarks } '
365
365
f' -DBUILD_WHEEL_TARGETS="{ ";" .join (targets )} "'
366
+ f' -DPython_EXECUTABLE={ venv_python } -DPython3_EXECUTABLE={ venv_python } '
366
367
f' { cmake_cuda_architectures } { cmake_def_args } { cmake_generator } -S "{ source_dir } "'
367
368
)
368
369
print ("CMake Configure command: " )
You can’t perform that action at this time.
0 commit comments