Merge pull request #382 from ckan/fix-travis-requirements-py2

Fix for Travis build, now requirements.txt on master is for python3
This commit is contained in:
David Read 2019-11-22 13:47:28 +00:00 committed by GitHub
commit f9eedcac4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -19,7 +19,12 @@ else
echo "CKAN version: ${CKAN_TAG#ckan-}" echo "CKAN version: ${CKAN_TAG#ckan-}"
fi fi
python setup.py develop python setup.py develop
pip install -r requirements.txt --allow-all-external if [ -f requirements-py2.txt ]
then
pip install -r requirements-py2.txt
else
pip install -r requirements.txt
fi
pip install -r dev-requirements.txt --allow-all-external pip install -r dev-requirements.txt --allow-all-external
cd - cd -