Skip to content

Commit

Permalink
Merge pull request #680 from djhoese/bugfix-sh-swbundle-path
Browse files Browse the repository at this point in the history
Fix shell scripts not being added to PATH in software bundle
  • Loading branch information
djhoese committed Feb 2, 2024
2 parents 86b4f28 + be3e2e6 commit 1232a8c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions create_conda_software_bundle.sh
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 1232a8c

Please sign in to comment.