Skip to content

Commit 4211b39

Browse files
authored
Bindings: fix wheel build in verification environment (#975)
* Bindings: fix wheel build in verification environment Signed-off-by: Ovidiu Mara <[email protected]> * Revert change to meta wheel build CLI Signed-off-by: Ovidiu Mara <[email protected]> --------- Signed-off-by: Ovidiu Mara <[email protected]>
1 parent f8ba9bc commit 4211b39

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.gitlab/test_python.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ export NIXL_PREFIX=${INSTALL_DIR}
4040
# Raise exceptions for logging errors
4141
export NIXL_DEBUG_LOGGING=yes
4242

43+
# Set the correct wheel name based on the CUDA version
44+
cuda_major=$(nvcc --version | grep -oP 'release \K[0-9]+')
45+
case "$cuda_major" in
46+
12|13) echo "CUDA $cuda_major detected" ;;
47+
*) echo "Error: Unsupported CUDA version $cuda_major"; exit 1 ;;
48+
esac
49+
pip3 install --break-system-packages tomlkit
50+
./contrib/tomlutil.py --wheel-name "nixl-cu${cuda_major}" pyproject.toml
4351
# Control ninja parallelism during pip build to prevent OOM (NPROC from common.sh)
4452
pip3 install --break-system-packages --config-settings=compile-args="-j${NPROC}" .
4553
pip3 install --break-system-packages dist/nixl-*none-any.whl

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# limitations under the License.
1515

1616
[build-system]
17-
requires = ["meson-python", "pybind11", "patchelf", "pyyaml", "types-PyYAML", "pytest"]
17+
requires = ["meson-python", "pybind11", "patchelf", "pyyaml", "types-PyYAML", "pytest", "build", "setuptools"]
1818
build-backend = "mesonpy"
1919

2020
[project]

0 commit comments

Comments
 (0)