Skip to content

Commit aedf1d5

Browse files
authored
Merge branch 'main' into misc-build-updates
2 parents e8f0ec2 + 2ee7bdf commit aedf1d5

File tree

6 files changed

+40
-10
lines changed

6 files changed

+40
-10
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- "main"
7+
- "release/*"
78
tags:
89
- v[0-9].[0-9][0-9].[0-9][0-9]
910
workflow_dispatch:

ci/build_wheel.sh

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,28 @@ cd "${package_dir}"
2323
sccache --stop-server 2>/dev/null || true
2424

2525
rapids-logger "Building '${package_name}' wheel"
26+
27+
RAPIDS_PIP_WHEEL_ARGS=(
28+
-w dist
29+
-v
30+
--no-deps
31+
--disable-pip-version-check
32+
)
33+
34+
# Only use --build-constraint when build isolation is enabled.
35+
#
36+
# Passing '--build-constraint' and '--no-build-isolation` together results in an error from 'pip',
37+
# but we want to keep environment variable PIP_CONSTRAINT set unconditionally.
38+
# PIP_NO_BUILD_ISOLATION=0 means "add --no-build-isolation" (ref: https://github.com/pypa/pip/issues/573
39+
if [[ "${PIP_NO_BUILD_ISOLATION:-}" != "0" ]]; then
40+
RAPIDS_PIP_WHEEL_ARGS+=(--build-constraint="${PIP_CONSTRAINT}")
41+
fi
42+
# unset that environment variable... it doesn't affect builds as of pip 25.3, and
43+
# results in an error from 'pip wheel' when set and --build-constraint is also passed
44+
unset PIP_CONSTRAINT
45+
2646
rapids-pip-retry wheel \
27-
-w dist \
28-
-v \
29-
--no-deps \
30-
--disable-pip-version-check \
47+
"${RAPIDS_PIP_WHEEL_ARGS[@]}" \
3148
.
3249

3350
sccache --show-adv-stats

ci/build_wheel_ucxx.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ RAPIDS_PY_CUDA_SUFFIX="$(rapids-wheel-ctk-name-gen "${RAPIDS_CUDA_VERSION}")"
1616
# Downloads libucxx wheel from this current build,
1717
# then ensures 'ucxx' wheel builds always use the 'libucxx' just built in the same CI run.
1818
#
19-
# Using env variable PIP_CONSTRAINT (initialized by 'rapids-init-pip') is necessary to ensure the constraints
20-
# are used when creating the isolated build environment.
19+
# env variable 'PIP_CONSTRAINT' is set up by rapids-init-pip. It constrains all subsequent
20+
# 'pip install', 'pip download', etc. calls (except those used in 'pip wheel', handled separately in build scripts)
2121
LIBUCXX_WHEELHOUSE=$(RAPIDS_PY_WHEEL_NAME="libucxx_${RAPIDS_PY_CUDA_SUFFIX}" rapids-download-wheels-from-github cpp)
2222
echo "libucxx-${RAPIDS_PY_CUDA_SUFFIX} @ file://$(echo "${LIBUCXX_WHEELHOUSE}"/libucxx_*.whl)" >> "${PIP_CONSTRAINT}"
2323

dependencies.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,12 +305,18 @@ dependencies:
305305
matrices:
306306
- matrix:
307307
cuda: "12.*"
308+
cuda_suffixed: "true"
308309
packages:
309310
- &numba_cuda_cu12 numba-cuda[cu12]>=0.22.1
310-
# fallback to CUDA 13 versions if 'cuda' is '13.*' or not provided
311311
- matrix:
312+
cuda: "13.*"
313+
cuda_suffixed: "true"
312314
packages:
313315
- &numba_cuda_cu13 numba-cuda[cu13]>=0.22.1
316+
# fallback to numba-cuda with no extra CUDA packages if 'cuda_suffixed' isn't true
317+
- matrix:
318+
packages:
319+
- *numba_cuda
314320
run_python_distributed_ucxx:
315321
common:
316322
- output_types: [conda, requirements, pyproject]
@@ -325,12 +331,18 @@ dependencies:
325331
matrices:
326332
- matrix:
327333
cuda: "12.*"
334+
cuda_suffixed: "true"
328335
packages:
329336
- *numba_cuda_cu12
330-
# fallback to CUDA 13 versions if 'cuda' is '13.*' or not provided
331337
- matrix:
338+
cuda: "13.*"
339+
cuda_suffixed: "true"
332340
packages:
333341
- *numba_cuda_cu13
342+
# fallback to numba-cuda with no extra CUDA packages if 'cuda_suffixed' isn't true
343+
- matrix:
344+
packages:
345+
- *numba_cuda
334346
test_cpp:
335347
common:
336348
- output_types: conda

python/distributed-ucxx/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ license = "BSD-3-Clause"
2020
license-files = ["LICENSE"]
2121
requires-python = ">=3.11"
2222
dependencies = [
23-
"numba-cuda[cu13]>=0.22.1",
23+
"numba-cuda>=0.22.1",
2424
"pyyaml>=6",
2525
"rapids-dask-dependency==26.4.*,>=0.0.0a0",
2626
"ucxx==0.49.*,>=0.0.0a0",

python/ucxx/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ license = "BSD-3-Clause"
2020
requires-python = ">=3.11"
2121
dependencies = [
2222
"libucxx==0.49.*,>=0.0.0a0",
23-
"numba-cuda[cu13]>=0.22.1",
23+
"numba-cuda>=0.22.1",
2424
"numpy>=1.23,<3.0",
2525
"nvidia-ml-py>=12",
2626
"rmm==26.4.*,>=0.0.0a0",

0 commit comments

Comments
 (0)