@@ -506,21 +506,17 @@ function stage_build_artifacts(){
506
506
function stage_python_wheels(){
507
507
info_log " START: ${FUNCNAME[0]} "
508
508
509
- if [[ ! -f " ${SPACEFX_DIR} /pypiserver/requirements.txt" ]]; then
510
- info_log " ...no requirements file found at '${SPACEFX_DIR} /pypiserver/requirements.txt'. Nothing to do."
511
- info_log " END: ${FUNCNAME[0]} "
512
- return
513
- fi
509
+ # Stage the microsoft-azure-orbital-sdk wheel to the wheel directory
510
+ run_a_script " ${SPACEFX_DIR} /scripts/stage/stage_build_artifact.sh --architecture ${ARCHITECTURE} --artifact microsoftazurespacefx-${SPACEFX_VERSION} -py3-none-any.whl"
514
511
515
- if [[ ! -s " ${SPACEFX_DIR} /pypiserver/requirements.txt " ]] ; then
516
- info_log " ... the requirements file ' ${SPACEFX_DIR} /pypiserver/requirements.txt' is empty. Nothing to do. Nothing to do. "
517
- info_log " END: ${FUNCNAME[0]} "
518
- return
519
- fi
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
514
+ # The pypiserver will detect these wheels and serve the python packages when it boots up
515
+ run_a_script " mkdir -p ${SPACEFX_DIR} /registry/pypiserver/packages "
516
+ run_a_script " find ${SPACEFX_DIR} /wheel -type f -name '*.whl' -exec mv {} ${SPACEFX_DIR} /registry/pypiserver/packages \; "
520
517
521
- info_log " Staging python wheels..."
522
- run_a_script " docker exec coresvc-registry /data/scripts/stage_python_packages.sh"
523
- info_log " ...successfully staged python wheels."
518
+ # Remove the wheel directory
519
+ run_a_script " rm -rf ${SPACEFX_DIR} /wheel"
524
520
525
521
info_log " FINISHED: ${FUNCNAME[0]} "
526
522
}
@@ -594,6 +590,10 @@ function main() {
594
590
enable_fileserver
595
591
_generate_spacefx_config_json
596
592
593
+ info_log " Staging python wheels..."
594
+ stage_python_wheels
595
+ info_log " ...successfully staged python wheels"
596
+
597
597
info_log " Staging coresvc-registry..."
598
598
stage_coresvc_registry
599
599
info_log " ...successfully staged coresvc-registry"
@@ -626,13 +626,8 @@ function main() {
626
626
stage_spacefx_service_images --service_group host
627
627
info_log " ...service images successfully staged."
628
628
629
-
630
- stage_python_wheels
631
-
632
-
633
629
remove_channels_from_extra_containers
634
630
635
-
636
631
info_log " Stopping coresvc-registry..."
637
632
run_a_script " ${SPACEFX_DIR} /scripts/coresvc_registry.sh --stop"
638
633
info_log " ...successfully stopped coresvc-registry"
0 commit comments