@@ -26,7 +26,8 @@ for version in ${PLOTLY_PYTHON_VERSIONS[@]}; do
26
26
27
27
# only create a virtualenv if it doesn't already exist
28
28
if [ ! -d ${PLOTLY_VENV_DIR} /${version} ]; then
29
- virtualenv ${PLOTLY_VENV_DIR} /${version} || error_exit " ${LINENO} : can't install virtualenv for ${version} "
29
+ virtualenv ${PLOTLY_VENV_DIR} /${version} ||
30
+ error_exit " ${LINENO} : can't install virtualenv for ${version} "
30
31
fi
31
32
32
33
# get rid of the current virtualenv if we're in one
@@ -35,20 +36,24 @@ for version in ${PLOTLY_PYTHON_VERSIONS[@]}; do
35
36
fi
36
37
37
38
# drop us into a virtualenv
38
- source ${PLOTLY_VENV_DIR} /${version} /bin/activate
39
+ source ${PLOTLY_VENV_DIR} /${version} /bin/activate ||
40
+ error_exit " ${LINENO} : can't activate virtualenv for Python ${version} "
39
41
40
42
# install core requirements all versions need
41
- pip install -r ${PLOTLY_CORE_REQUIREMENTS_FILE}
43
+ pip install -r ${PLOTLY_CORE_REQUIREMENTS_FILE} ||
44
+ error_exit " ${LINENO} : can't install core reqs for Python ${version} "
42
45
43
46
# handle funkiness around python 2.6
44
47
if [ ${version: 0: 3} == ' 2.6' ]
45
48
then
46
- pip install simplejson ordereddict
49
+ pip install simplejson ordereddict ||
50
+ error_exit " ${LINENO} : can't install extras for Python ${version} "
47
51
# pip install -r ${PLOTLY_OPTIONAL_REQUIREMENTS_FILE_2_6}
48
52
# else
49
53
# pip install -r ${PLOTLY_OPTIONAL_REQUIREMENTS_FILE}
50
54
fi
51
55
52
56
# install some test tools
53
- pip install nose coverage
57
+ pip install nose coverage ||
58
+ error_exit " ${LINENO} : can't install test tools for Python ${version} "
54
59
done
0 commit comments