@@ -26,7 +26,8 @@ for version in ${PLOTLY_PYTHON_VERSIONS[@]}; do
2626
2727 # only create a virtualenv if it doesn't already exist
2828 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} "
3031 fi
3132
3233 # get rid of the current virtualenv if we're in one
@@ -35,20 +36,24 @@ for version in ${PLOTLY_PYTHON_VERSIONS[@]}; do
3536 fi
3637
3738 # 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} "
3941
4042 # 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} "
4245
4346 # handle funkiness around python 2.6
4447 if [ ${version: 0: 3} == ' 2.6' ]
4548 then
46- pip install simplejson ordereddict
49+ pip install simplejson ordereddict ||
50+ error_exit " ${LINENO} : can't install extras for Python ${version} "
4751# pip install -r ${PLOTLY_OPTIONAL_REQUIREMENTS_FILE_2_6}
4852# else
4953# pip install -r ${PLOTLY_OPTIONAL_REQUIREMENTS_FILE}
5054 fi
5155
5256 # 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} "
5459done
0 commit comments