[Bugfix] Pass PYTHONPATH from setup.py to CMake (#7730)

This commit is contained in:
sasha0552
2024-08-21 11:17:48 -07:00
committed by GitHub
parent f7e3b0c5aa
commit 1b32e02648
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -184,6 +184,10 @@ class cmake_build_ext(build_ext):
# match.
cmake_args += ['-DVLLM_PYTHON_EXECUTABLE={}'.format(sys.executable)]
# Pass the python path to cmake so it can reuse the build dependencies
# on subsequent calls to python.
cmake_args += ['-DVLLM_PYTHON_PATH={}'.format(":".join(sys.path))]
#
# Setup parallelism and build tool
#