Skip to content

Commit 00df331

Browse files
author
Brad Armstrong
committed
move the wheels instead of copying them
1 parent 2aee06d commit 00df331

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

scripts/stage_spacefx.sh

+6-3
Original file line numberDiff line numberDiff line change
@@ -509,11 +509,14 @@ function stage_python_wheels(){
509509
# Stage the microsoft-azure-orbital-sdk wheel to the wheel directory
510510
run_a_script "${SPACEFX_DIR}/scripts/stage/stage_build_artifact.sh --architecture ${ARCHITECTURE} --artifact microsoftazurespacefx-${SPACEFX_VERSION}-py3-none-any.whl"
511511

512-
# Find all wheels in the ${SPACEFX_DIR}/wheel directory and copy them to the ${SPACEFX_DIR}/registry/pypiserver/packages directory
513-
# Copy only the wheel itself to the root level of the pypiserver/packages directory and not the entire directory structure
512+
# Find all wheels in the ${SPACEFX_DIR}/wheel directory and move them to the ${SPACEFX_DIR}/registry/pypiserver/packages directory
513+
# Move only the wheel itself to the root level of the ${SPACEFX_DIR}/registry/pypiserver/packages directory and not the entire directory structure
514514
# The pypiserver will detect these wheels and serve the python packages when it boots up
515515
run_a_script "mkdir -p ${SPACEFX_DIR}/registry/pypiserver/packages"
516-
run_a_script "find ${SPACEFX_DIR}/wheel -type f -name '*.whl' -exec cp {} ${SPACEFX_DIR}/registry/pypiserver/packages \;"
516+
run_a_script "find ${SPACEFX_DIR}/wheel -type f -name '*.whl' -exec mv {} ${SPACEFX_DIR}/registry/pypiserver/packages \;"
517+
518+
# Remove the wheel directory
519+
run_a_script "rm -rf ${SPACEFX_DIR}/wheel"
517520

518521
info_log "FINISHED: ${FUNCNAME[0]}"
519522
}

0 commit comments

Comments
 (0)