Skip to content

Commit

Permalink
Further updates to installer
Browse files Browse the repository at this point in the history
  • Loading branch information
nicwade committed Oct 26, 2017
1 parent 2f8884a commit fc07e44
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
4 changes: 1 addition & 3 deletions install/2_1_install/savu_v2.1.1/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,11 @@ dependencies:
- mako==1.0.6
- mrcfile==1.0.0
- notebook==5.0.0
- nvidia-ml-py==375.53.1
- nvidia-ml-py==375.53
- peakutils==1.1.0
- phasepack==1.5
- polytope==0.2.0
- prompt-toolkit==1.0.14
- pyastratoolbox==1.6
- pyfai==0.13.1
- pymca==5.1.4
- pymca5==5.1.4
- pyreadline==2.1
Expand Down
30 changes: 22 additions & 8 deletions install/2_1_install/savu_v2.1.1/savu_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ function flag_parse ()
flag=$1
return=$2
while [[ $# -gt 2 ]] ; do
echo $3
if [ $3 == $flag ] ; then
eval "$return"=true
fi
Expand Down Expand Up @@ -86,7 +85,8 @@ else
echo -e " ......Thank you for running the Savu installer......\n"
echo -e "Performing a library check..."
echo -e "\nNB: An MPI implementation is required to build Savu."
echo -e "fftw and cuda are desirable for a full range of plugins."
echo -e "fftw is required to build Savu."
echo -e "Cuda is desirable for a full range of plugins."
echo -e "\n============================================================="
fi

Expand Down Expand Up @@ -240,6 +240,18 @@ if [ "$facility" ]; then
cp $savu_path/mpi/$facility/savu_mpijob.sh $launcher_path
fi

#-----------------------------------------------------------------
echo "Installing tomopy..."
# these packages were missing copied environment for some reason
conda install -y -q -c dgursoy tomopy --no-deps
conda install -y -q -c dgursoy dxchange --no-deps
#-----------------------------------------------------------------

#-----------------------------------------------------------------
echo "Installing pyfai..."
pip install pyfai
#-----------------------------------------------------------------

#-----------------------------------------------------------------
echo "Installing mpi4py..."
mpi4py_version=`cat $recipes/mpi4py/version.txt`
Expand All @@ -248,6 +260,7 @@ env MPICC=$MPICC pip install mpi4py==$mpi4py_version

#-----------------------------------------------------------------
echo "Building hdf5..."
conda uninstall -y -q hdf5
conda build $recipes/hdf5
hdf5build=`conda build $recipes/hdf5 --output`

Expand All @@ -257,6 +270,7 @@ conda install -y -q --use-local $hdf5build --no-deps

#-----------------------------------------------------------------
echo "Building h5py..."
conda uninstall -y -q h5py
conda build $recipes/h5py --no-test
h5pybuild=`conda build $recipes/h5py --output`

Expand Down Expand Up @@ -287,12 +301,12 @@ conda install -y -q --use-local $xraylibbuild --no-deps
#-----------------------------------------------------------------

#-----------------------------------------------------------------
echo "Building xdesign"
conda build $recipes/xdesign
xdesignbuild=`conda build $recipes/xdesign --output`
#echo "Building xdesign"
#conda build $recipes/xdesign
#xdesignbuild=`conda build $recipes/xdesign --output`

echo "Installing xdesign"
conda install -y -q --use-local $xdesignbuild --no-deps
#echo "Installing xdesign"
#conda install -y -q --use-local $xdesignbuild --no-deps
#-----------------------------------------------------------------

echo -e "\n\t***************************************************"
Expand Down Expand Up @@ -391,7 +405,7 @@ while true ; do
echo -e "\n\t >>> mpi_gpu_test.sh <output_dir>.\n"
break
elif [ "$input" = "n" ]; then
continue
break
else
echo -e "\nYour input was unknown.\n"
fi
Expand Down

0 comments on commit fc07e44

Please sign in to comment.