66
77set -e
88
9- # Helper functions
10- success () {
11- if [ $1 -eq 0 ]; then
12- echo " Successfully installed $2 "
13- else
14- echo " Failed to install $2 "
15- fi
16- }
17-
189# Check if we are running Python 2 or 3. This is needed for the apt-get package names
1910if [[ $TRAVIS_PYTHON_VERSION == ' 3.2' ]]; then
2011 export PYTHON_SUFFIX=" 3" ;
@@ -29,7 +20,7 @@ time sudo apt-get update -qq
2920
3021# Install the dependencies we need
3122time sudo apt-get -qq install clang-3.5 libclang-3.5-dev gcc-4.8 g++-4.8
32- time sudo apt-get install -qq python${PYTHON_SUFFIX} -numpy python${PYTHON_SUFFIX} -sphinx python${PYTHON_SUFFIX} -nose python${PYTHON_SUFFIX} -pip
23+ time sudo apt-get install -qq python${PYTHON_SUFFIX} -numpy python${PYTHON_SUFFIX} -sphinx python${PYTHON_SUFFIX} -nose python${PYTHON_SUFFIX} -pip cython ${PYTHON_SUFFIX}
3324# matplotlib and PyTables are not available for Python 3 as packages from the main repo yet.
3425if [[ $TRAVIS_PYTHON_VERSION == ' 2.7' ]]; then
3526 time sudo apt-get install -qq python-matplotlib python-tables;
5950# DailyPythonTools location
6051export base=` pwd`
6152
62- # package list from FinalStateAnalysis (https://github.com/uwcms/FinalStateAnalysis/blob/master/recipe/install_python.sh)
53+ # package list from FinalStateAnalysis
54+ # (https://github.com/uwcms/FinalStateAnalysis/blob/master/recipe/install_python.sh)
6355echo " Installing yolk"
6456time sudo pip install -U yolk
6557echo " Installing ipython"
@@ -70,14 +62,10 @@ echo "Installing uncertainties <-- awesome error propagation"
7062time sudo pip install -U uncertainties
7163echo " Install progressbar"
7264time sudo pip install -U progressbar
73- echo " Install cython"
74- time sudo pip install -U cython
7565echo " Installing argparse"
7666time sudo pip install -U argparse
7767echo " Installing pudb <-- interactive debugging"
7868time sudo pip install -U pudb
79- # echo "Installing numpy"
80- # time sudo pip install -U numpy
8169echo " Installing dateutil"
8270time sudo pip install python-dateutil
8371echo " Installing PrettyTable"
@@ -95,7 +83,6 @@ if [ ! -d "$base/external/lib" ]; then
9583 echo " Building RooUnfold"
9684 cd $base /external/RooUnfold/
9785 make -j4
98- success $? RooUnfold
9986 # remove tmp folder
10087 rm -fr $base /external/RooUnfold/tmp
10188 mv $base /external/RooUnfold/libRooUnfold.so $base /external/lib/.
@@ -106,7 +93,6 @@ if [ ! -d "$base/external/lib" ]; then
10693 echo " Building TopAnalysis"
10794 cd $base /external/TopAnalysis/
10895 make -j4
109- success $? TopAnalysis
11096 # remove tmp folder
11197 rm -fr $base /external/TopAnalysis/tmp
11298 mv $base /external/TopAnalysis/libTopSVDUnfold.so $base /external/lib/.
0 commit comments