From be3e2e6e319ace5c3f3d2fba05d2c67fea0bf00c Mon Sep 17 00:00:00 2001 From: David Hoese Date: Fri, 2 Feb 2024 09:58:34 -0600 Subject: [PATCH] Fix shell scripts not being added to PATH in software bundle --- create_conda_software_bundle.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/create_conda_software_bundle.sh b/create_conda_software_bundle.sh index d9f8e94c..54e3192a 100755 --- a/create_conda_software_bundle.sh +++ b/create_conda_software_bundle.sh @@ -121,6 +121,10 @@ for bash_file in *.sh; do sed -i "s/# __SWBUNDLE_ENVIRONMENT_INJECTION__/source \$POLAR2GRID_HOME\/bin\/env.sh/g" "$bash_file" done +# Softlink bin/ scripts in python runtime so env.sh adds them to PATH +cd ${PYTHON_RUNTIME_BASE}/bin +find ../../../bin/ -name "*.sh" ! -name "*env*" -exec ln -s {} . \; + echo "Copying Satpy auxiliary data to software bundle..." mkdir -p ${SATPY_DATA_DIR} || oops "Could not create polar2grid auxiliary data directory" # don't include large geotiff files that we don't use in P2G/G2G