Skip to content

Commit a2b6478

Browse files
committed
stricter
1 parent 5c9ef6e commit a2b6478

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tools/rapids-generate-pip-constraints

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,20 @@
1818

1919
set -euo pipefail
2020

21+
export RAPIDS_SCRIPT_NAME="rapids-generate-pip-constraints"
22+
2123
file_key="${1}"
2224
out_file="${2}"
2325

24-
echo "" > "${out_file}"
2526
if [[ "${RAPIDS_DEPENDENCIES}" == "oldest" ]]; then
2627
rapids-dependency-file-generator \
2728
--output requirements \
2829
--file-key "${file_key}" \
2930
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION};dependencies=${RAPIDS_DEPENDENCIES}" \
3031
| tee "${out_file}"
32+
elif [[ "${RAPIDS_DEPENDENCIES}" == "latest" ]]; then
33+
echo "" > "${out_file}"
34+
else
35+
rapids-echo-stderr "Got unrecognized value for RAPIDS_DEPENDENCIES: '${RAPIDS_DEPENDENCIES}'. Expected one of ('latest', 'oldest')."
36+
exit 1
3137
fi

0 commit comments

Comments
 (0)