Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support cpp wheels in 'rapids-wheels-anaconda' #105

Merged
merged 5 commits into from
May 1, 2024
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
23 changes: 21 additions & 2 deletions tools/rapids-wheels-anaconda
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@

# Positional Arguments:
# 1) wheel name
# 2) package type (one of: 'cpp', 'python'). If not provided, defaults to 'python' for compatibility with older code where python was the only behavior.
#
# [usage]
#
# # upload any wheels found in CI artifacts with names like '*wheel_python_sparkly-unicorn*.tar.gz'
# rapids-wheels-anaconda 'sparkly-unicorn' 'python'
#

set -exou pipefail
set -eou pipefail
source rapids-constants
export RAPIDS_SCRIPT_NAME="rapids-wheels-anaconda"

Expand All @@ -13,8 +20,20 @@ if [ -z "$1" ]; then
exit 1
fi
WHEEL_NAME="$1"
PKG_TYPE="${2:-python}"

WHEEL_SEARCH_KEY="wheel_python_${WHEEL_NAME}"
case "${PKG_TYPE}" in
cpp)
;;
python)
;;
*)
rapids-echo-stderr 'Pass one of the following package types: "cpp", "python"'
exit 1
;;
esac

WHEEL_SEARCH_KEY="wheel_${PKG_TYPE}_${WHEEL_NAME}"

WHEEL_DIR="./dist"
mkdir -p "${WHEEL_DIR}"
Expand Down