@@ -7,10 +7,10 @@ osstring=`uname`
77
88if [ " $osstring " = " Darwin" ]; then
99 BASH_FILE=bash_profile
10- fil=" Anaconda3-2019.07 -MacOSX-x86_64.sh"
10+ fil=" Anaconda3-2020.02 -MacOSX-x86_64.sh"
1111elif [ " $osstring " = " Linux" ]; then
1212 BASH_FILE=bashrc
13- fil=" Anaconda3-2019.07 -Linux-x86_64.sh"
13+ fil=" Anaconda3-2020.02 -Linux-x86_64.sh"
1414else
1515 echo " Operating System not recognized"
1616 echo " Only MacOSX and Linux supported"
2020
2121echo " Running rss_ringoccs_config Script:"
2222
23- exit 1
24-
2523web=" https://repo.continuum.io/archive/"
2624webfil=" $web$fil "
2725
2826# Go to your home directory
2927MY_DIRECTORY=$( pwd)
3028cd ~
3129# Check to see if anaconda3 exists on your computer.
32- if [ -d anaconda3 ]; then
30+ if [ -d ~ /opt/ anaconda3 ]; then
3331 echo -e ' \t ' " You already have Anaconda on your computer."
3432 echo -e ' \t ' " Running updates..."
3533else
@@ -52,11 +50,11 @@ source .$BASH_FILE
5250
5351# Check that anaconda3 is included in your path
5452echo -e ' \t ' " Checking your PATH variable..."
55- if [[ " :$PATH :" == * " /anaconda3/bin" * ]]; then
53+ if [[ " :$PATH :" == * " ~/opt /anaconda3/bin" * ]]; then
5654 echo -e ' \t ' " PATH variable is set"
5755else
58- echo -e ' \t ' " Adding ~/anaconda3/bin to your PATH"
59- echo ' export PATH="~/anaconda3/bin:$PATH"' >> ~/.$BASH_FILE
56+ echo -e ' \t ' " Adding ~/opt/ anaconda3/bin to your PATH"
57+ echo ' export PATH="~/opt/ anaconda3/bin:$PATH"' >> ~/.$BASH_FILE
6058fi
6159
6260# Source .bashrc/.bash_profile to update you path.
@@ -70,6 +68,7 @@ yes | conda update conda
7068
7169# Install Spiceypy
7270echo -e ' \t ' " Installing spiceypy..."
71+ conda config --add channels conda-forge
7372yes | conda install -c conda-forge spiceypy
7473
7574# Install PyMieScatt
@@ -82,15 +81,15 @@ source .$BASH_FILE
8281cd " $MY_DIRECTORY "
8382
8483# Install rss_ringoccs.
85- cd ./rss_ringoccs/diffrec/
86-
87- # Remove any old compiled binary files.
88- rm -f * .so
84+ echo -e ' \t ' " Building librssringoccs... "
85+ cd librssringoccs/
86+ chmod +x config_librssringoccs.sh
87+ ./config_librssringoccs.sh
8988
9089# Compile the new binary files.
91- python setup.py config --compiler=gnu99 build_ext --inplace
92- rm -rf build /
93-
94- cd " $MY_DIRECTORY "
90+ echo -e ' \t ' " Building modules... "
91+ cd .. /
92+ chmod +x config_modules.sh
93+ ./config_modules.sh
9594
9695echo " Installation complete"
0 commit comments