Skip to content

Commit

Permalink
Added some better conditional behavior to the installer, updated the …
Browse files Browse the repository at this point in the history
…version
  • Loading branch information
adam-iris committed Oct 9, 2017
1 parent 7d7b2a0 commit 5ef7cc7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion installer/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ dependencies:
- qtconsole
- pyzmq
- pip:
- pyweed==0.4.dev3
- pyweed==0.4.dev4
- geographiclib
14 changes: 11 additions & 3 deletions installer/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,18 @@ cd /tmp/

export ARCH=`uname -m`

CONDA_INSTALL_PATH="$HOME/.pyweed/miniconda"

###
# Install Anaconda if not found

echo "Looking for Anaconda installation"

# Anaconda may have been previously installed but not on the existing path, so add the install
# path to ensure we find it in that case
export PATH="$PATH:$CONDA_INSTALL_PATH/bin"
hash -r

conda info > /dev/null 2>&1
if (( $? )); then
echo "
Expand All @@ -29,8 +37,8 @@ Anaconda Python not found, do you want to install it? [yes|no]
echo "Downloading Miniconda";
curl -Ss -o miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-latest-${OS}-${ARCH}.sh

bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
bash miniconda.sh -b -p $CONDA_INSTALL_PATH
export PATH="$CONDA_INSTALL_PATH/bin:$PATH"
hash -r
conda config --set always_yes yes --set changeps1 no
conda update -q conda
Expand Down Expand Up @@ -73,7 +81,7 @@ Install PyWEED to /Applications folder? [yes|no]
if [[ ($ANS != 'yes') && ($ANS != 'y') ]]; then
echo "Application is available at $PWD/PyWEED.app"
else
mv $PWD/PyWEED.app /Applications/
mv -f $PWD/PyWEED.app /Applications/
echo "Installed to /Applications/PyWEED.app"
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion pyweed/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os.path

__pkg_path___ = os.path.dirname(os.path.abspath(__file__))
__version__ = '0.4.dev3'
__version__ = '0.4.dev4'
__app_name__ = "PyWEED"

0 comments on commit 5ef7cc7

Please sign in to comment.