okfn / docker-ckan

Docker images and Docker Compose setup for CKAN [Not Maintained]
GNU Affero General Public License v3.0
81 stars 88 forks source link

2.9/py2: Prefer requirements-py2.txt to requirements.txt if both exist #70

Closed chris48s closed 3 years ago

chris48s commented 3 years ago

The current setup (where we always install from requirements.txt) means that if we try to run a ckan-dev container with a local CKAN install, we end up with a broken install because the python3 requirements are installed on python2. This switches it so that when we are running CKAN 2.9 on python2, we first look for requirements-py2.txt and fall back to requirements.txt if it does not exist.