mirror of
https://github.com/vllm-project/vllm.git
synced 2026-10-28 09:45:26 +08:00
[BugFix] [Build] Fix for where setup.py fails with MAX_JOBS invalid literal error (#45188)
Signed-off-by: Randall Smith <Randall.Smith@amd.com> Co-authored-by: Micah Williamson <micah.williamson@amd.com>
This commit is contained in:
1 parent
3f45273050
commit
eb703fbb3d
1 file changed
+1
-1
@@ -216,7 +216,7 @@ class cmake_build_ext(build_ext):
|
||||
# `num_jobs` is either the value of the MAX_JOBS environment variable
|
||||
# (if defined) or the number of CPUs available.
|
||||
num_jobs = envs.MAX_JOBS
|
||||
if num_jobs is not None:
|
||||
if isinstance(num_jobs, str) and num_jobs.isnumeric():
|
||||
num_jobs = int(num_jobs)
|
||||
logger.info("Using MAX_JOBS=%d as the number of jobs.", num_jobs)
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user