Skip to content

Commit 0c3a66a

Browse files
committed
refactor: don't include cpython base in cpp artifacts
1 parent 67aa283 commit 0c3a66a

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

tools/rapids-artifact-name

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22
# Generates a standardized artifact name following the template:
3-
# {repo}_{pkg_type}_{pkg_lang}_{pkg_name}_{cpython_version}_{cuda_version}_{arch}
3+
# python: {repo}_{pkg_type}_{pkg_lang}_{pkg_name}_{arch}_{cpython_version}[_{cuda_version}]
4+
# cpp: {repo}_{pkg_type}_{pkg_lang}_{pkg_name}_{arch}[_{cuda_version}]
45
# Positional Arguments:
56
# 1) package type (conda_cpp, conda_python, wheel_cpp, wheel_python)
67
# 2) package name (e.g. librmm, rmm)
@@ -132,7 +133,7 @@ fi
132133

133134
# Resolve cpython_version field
134135
if [[ "${pkg_lang}" == "cpp" ]]; then
135-
cpython_version="pure"
136+
cpython_version=""
136137
elif (( stable_flag == 1 )); then
137138
cpython_version="abi3"
138139
elif (( pure_flag == 1 )); then
@@ -156,10 +157,12 @@ case "${raw_arch}" in
156157
*) arch_field="${raw_arch}" ;;
157158
esac
158159

159-
artifact_name="${repo_name}_${pkg_type_part}_${pkg_lang}_${pkg_name}_${cpython_version}"
160+
artifact_name="${repo_name}_${pkg_type_part}_${pkg_lang}_${pkg_name}_${arch_field}"
161+
if [[ -n "${cpython_version}" ]]; then
162+
artifact_name+="_${cpython_version}"
163+
fi
160164
if [[ -n "${cuda_field}" ]]; then
161165
artifact_name+="_${cuda_field}"
162166
fi
163-
artifact_name+="_${arch_field}"
164167

165168
echo -n "${artifact_name}"

0 commit comments

Comments
 (0)