Skip to content

Commit

Permalink
rename args to --mode dist|inplace
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Sep 18, 2023
1 parent 8272959 commit 2dbb011
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,21 @@

build_${PY_LIB}_python_dist() {

# pull out the --rapids-dist or --rapids-inplace args (if any)
local mode="inplace";

# pull out the --mode dist|inplace arg (if any)
eval "$( \
devcontainer-utils-parse-args --names '
rapids-dist |
rapids-inplace |
m|mode |
' - <<< "$@" \
| xargs -r -d'\n' -I% echo -n local %\; \
)";

mode="${m:-${mode:-"inplace"}}";

# check if rapids_dist is set.

if [[ ! -z ${rapids_dist+x} ]]; then
if [[ ${mode} == "dist" ]]; then
build-${PY_LIB}-python-dist ${__rest__[@]};
else
build-${PY_LIB}-python-inplace ${__rest__[@]};
Expand Down

0 comments on commit 2dbb011

Please sign in to comment.