Skip to content

Commit

Permalink
Merge latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
magnusuMET committed May 22, 2023
1 parent 8af464a commit c6d1b43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 30 deletions.
31 changes: 2 additions & 29 deletions install_usermodule_r8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,8 @@

set -e

if [ -z "$1" ]; then
VERSION="TEST"
else
VERSION="$1"
fi
export VERSION

PREFIX=/modules/rhel8/user-apps/fou-modules/SnapPy/"$VERSION"/
if [ -d "$PREFIX" ]; then
echo "This version ('$VERSION') already exists, overwriting in 10 seconds"
echo "Use ctrl-C to cancel"
sleep 10
else
mkdir "$PREFIX"
fi
export PREFIX

source /modules/rhel8/conda/install/bin/activate

install_conda_env() {
conda create --channel conda-forge --prefix "$PREFIX" --yes --file /dev/stdin <<EOF
conda create --channel conda-forge --prefix "$1" --yes --file /dev/stdin <<EOF
python=3.10
cartopy=0.21.1
fimex=1.9.5
Expand Down Expand Up @@ -71,11 +52,9 @@ install_snappy() {
)

(
export VERSION="$SNAPPY_VERSION"
# Pip install messes up shebang: https://github.com/pypa/setuptools/issues/494
# pip install ./utils/SnapPy/
cd utils/SnapPy || exit 2
python3 setup.py install
pip install ./utils/SnapPy
)
}

Expand All @@ -89,14 +68,8 @@ install_bsnap() {
main() {
if [ -z "$1" ]; then
MODULE_VERSION="TEST"
SNAPPY_VERSION="0.0.0.dev0"
else
MODULE_VERSION="$1"
if [ -z "$2" ]; then
SNAPPY_VERSION="$MODULE_VERSION"
else
SNAPPY_VERSION="$2"
fi
fi

MODULE_PREFIX=/modules/rhel8/user-apps/fou-modules/SnapPy/"$MODULE_VERSION"/
Expand Down
2 changes: 1 addition & 1 deletion utils/SnapPy/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = Snappy
version = 2.1.10
version = 2.3.0
description = SNAP utilities in python
url = https://gitlab.met.no/emep/snap
author = Heiko Klein
Expand Down

0 comments on commit c6d1b43

Please sign in to comment.