Skip to content
Snippets Groups Projects
Commit 9a23e128 authored by POLCHER Jan's avatar POLCHER Jan :bicyclist_tone4:
Browse files

Improved the management of the Anaconda environment for Rviewer.

parent 9ebff1e5
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,11 @@
# Set the right Python 3 Anaconda environment
#
if [ -f ~/anaconda3/bin/activate ] ; then
echo "Loading Anaconda"
if [ ! -d ~/anaconda3/envs/Rviewer ] ; then
echo "Installing Anaconda packages for Rviewer"
conda create -y -n Rviewer mpi4py numba astropy netcdf4 matplotlib shapely scipy cartopy
fi
echo "Loading Anaconda packages"
source ~/anaconda3/bin/activate
conda activate Rviewer
fi
......
#!/bin/bash
#
#########################################
#
# Script to build and maintain en environment to run
# the python code in this directory. We verify that
# all needed packages are available.
# This is based on the anaconda python system : https://www.anaconda.com/distribution/
#
# Usage : source Environment
#
#########################################
#
# Functions
#
conda create -y -n Rviewer mpi4py numba astropy netcdf4 matplotlib shapely scipy cartopy
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment