Skip to content

Commit

Permalink
Merge pull request #655 from djhoese/bugfix-etc-swbundle
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese authored Nov 27, 2023
2 parents b7e8e8f + efac734 commit 74fd933
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion create_conda_software_bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ cd "${SB_NAME}"
mkdir -p bin || oops "Couldn't make 'bin' directory"
mkdir -p etc || oops "Couldn't make 'etc' directory"
# expand glob pattern
P2G_ETC_DIR=$(echo libexec/python_runtime/lib/python*/site-package/polar2grid/etc)
P2G_ETC_DIR=$(echo libexec/python_runtime/lib/python?.??/site-packages/polar2grid/etc)
if [ ! -d "${P2G_ETC_DIR}" ]; then
oops "Couldn't find polar2grid etc directory"
fi
echo "Package etc directory found at: ${P2G_ETC_DIR}"
ln -s ../${P2G_ETC_DIR} etc/polar2grid || oops "Couldn't link to package etc directory"
ln -s etc/polar2grid/colormaps . || oops "Couldn't create softlink for colormaps directory"
cp -P ${BUNDLE_SCRIPTS_DIR}/*.sh ${BUNDLE_SCRIPTS_DIR}/*.txt bin/ || echo "Couldn't copy scripts to bin/ directory"
Expand Down

0 comments on commit 74fd933

Please sign in to comment.