diff options
Diffstat (limited to 'testsuite/install.sh')
-rwxr-xr-x | testsuite/install.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuite/install.sh b/testsuite/install.sh index 8eecd71d7..8721c8015 100755 --- a/testsuite/install.sh +++ b/testsuite/install.sh @@ -6,8 +6,12 @@ pip install -r testsuite/requirements.txt --use-mirrors PYVER=$(python -c 'import sys;print(".".join(str(v) for v in sys.version_info[0:2]))') +if [[ ${PYVER:0:1} == "2" && $PYVER != "2.7" ]]; then + pip install --use-mirrors unittest2 +fi + if [[ "$WITH_OPTIONAL_DEPS" == "yes" ]]; then - pip install --use-mirrors genshi PyYAML pyinotify boto + pip install --use-mirrors PyYAML pyinotify boto if [[ $PYVER == "2.5" ]]; then # markdown 2.2+ doesn't work on py2.5 pip install --use-mirrors simplejson 'markdown<2.2' 'django<1.4.9' @@ -17,7 +21,7 @@ if [[ "$WITH_OPTIONAL_DEPS" == "yes" ]]; then if [[ ${PYVER:0:1} == "2" ]]; then # django supports py3k, but South doesn't, and the django bits # in bcfg2 require South - pip install cheetah 'django<1.5' 'South<0.8' M2Crypto + pip install cheetah 'South<0.8' M2Crypto fi else # python < 2.6 requires M2Crypto for SSL communication, not just |