Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions tools/rapids-generate-pip-constraints
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@
#
# 1) file key to be passed to `rapids-dependency-file-generator --file-key`
# 2) filepath to append the constraint data to (creates it if it doesn't exist)
# 3) optional output type to pass to `rapids-dependency-file-generator --output`,
# set to `requirements` by default
#
# [usage]
#
# rapids-generate-pip-constraints test_python ./constraints.txt
# rapids-generate-pip-constraints test_python ./constraints.txt requirements
#

set -euo pipefail
Expand All @@ -22,9 +24,10 @@ export RAPIDS_SCRIPT_NAME="rapids-generate-pip-constraints"

file_key="${1}"
out_file="${2}"
output_type="${3:-requirements}"

rapids-dependency-file-generator \
--output requirements \
--output "${output_type}" \
--file-key "${file_key}" \
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION};dependencies=${RAPIDS_DEPENDENCIES};cuda_suffixed=true;use_cuda_wheels=true" \
| tee -a "${out_file}"
Loading