[#9632][feat] Support EXTRA_WHEEL_BUILD_ARGS during wheel build (#9633)

Signed-off-by: Yu Chi Li <yuchil@nvidia.com>
This commit is contained in:
Yu Chi Li 2025-12-02 14:54:58 -08:00 committed by GitHub
parent 0a7a88e74e
commit 7ca38a6c0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -946,8 +946,9 @@ def main(*,
# and validating python changes in the whl.
clear_folder(dist_dir)
extra_wheel_build_args = os.getenv("EXTRA_WHEEL_BUILD_ARGS", "")
build_run(
f'\"{venv_python}\" -m build {project_dir} --skip-dependency-check --no-isolation --wheel --outdir "{dist_dir}"'
f'\"{venv_python}\" -m build {project_dir} --skip-dependency-check {extra_wheel_build_args} --no-isolation --wheel --outdir "{dist_dir}"'
)
if install: