Skip to content

Fix wheel build script shell#591

Open
fallintoplace wants to merge 1 commit into
NVIDIA:mainfrom
fallintoplace:fix/build-wheels-bash
Open

Fix wheel build script shell#591
fallintoplace wants to merge 1 commit into
NVIDIA:mainfrom
fallintoplace:fix/build-wheels-bash

Conversation

@fallintoplace

Copy link
Copy Markdown

Summary

  • Run the wheel build script with Bash via its shebang.
  • Keep stricter Bash error handling while guarding optional environment variables and missing option values.

Why

The workflow executes .github/workflows/scripts/build_wheels.sh directly, so the script's shebang controls the interpreter. The script uses Bash-only syntax such as (( ... )), [[ ... ]], source, and +=, which can fail under POSIX-style shells before the wheel build starts.

Validation

  • bash -n .github/workflows/scripts/build_wheels.sh
  • env -u CUQUANTUM_ROOT -u LD_LIBRARY_PATH .github/workflows/scripts/build_wheels.sh --cuda-version confirms the script reaches its own missing-argument error under the new shebang
  • git diff --check

@copy-pr-bot

copy-pr-bot Bot commented Jun 7, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

Signed-off-by: Minh Vu <vuhoangminh97@gmail.com>
@fallintoplace fallintoplace force-pushed the fix/build-wheels-bash branch from 8886dd0 to 3657519 Compare June 7, 2026 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant