[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:
rasmithandMicah Williamson authored and GitHub committed 2026-10-26 17:10:53 -04:00
1 parent 3f45273050
commit eb703fbb3d
1 file changed
+1 -1
+1 -1
View File
@@ -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: