Skip to content

Commit

Permalink
Fix shell scripts not being added to PATH in software bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese committed Feb 2, 2024
1 parent 86b4f28 commit be3e2e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions create_conda_software_bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit be3e2e6

Please sign in to comment.