Skip to content

Commit 0778b6f

Browse files
author
Ryan Maguire
committed
Updating config script.
1 parent 0c7797f commit 0778b6f

1 file changed

Lines changed: 15 additions & 16 deletions

File tree

config_rss_ringoccs.sh

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ osstring=`uname`
77

88
if [ "$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"
1111
elif [ "$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"
1414
else
1515
echo "Operating System not recognized"
1616
echo "Only MacOSX and Linux supported"
@@ -20,16 +20,14 @@ fi
2020

2121
echo "Running rss_ringoccs_config Script:"
2222

23-
exit 1
24-
2523
web="https://repo.continuum.io/archive/"
2624
webfil="$web$fil"
2725

2826
# Go to your home directory
2927
MY_DIRECTORY=$(pwd)
3028
cd ~
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..."
3533
else
@@ -52,11 +50,11 @@ source .$BASH_FILE
5250

5351
# Check that anaconda3 is included in your path
5452
echo -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"
5755
else
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
6058
fi
6159

6260
# Source .bashrc/.bash_profile to update you path.
@@ -70,6 +68,7 @@ yes | conda update conda
7068

7169
# Install Spiceypy
7270
echo -e ' \t ' "Installing spiceypy..."
71+
conda config --add channels conda-forge
7372
yes | conda install -c conda-forge spiceypy
7473

7574
# Install PyMieScatt
@@ -82,15 +81,15 @@ source .$BASH_FILE
8281
cd "$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

9695
echo "Installation complete"

0 commit comments

Comments
 (0)