Skip to content

Commit

Permalink
CKAN Dockerfile: fix dependency issue
Browse files Browse the repository at this point in the history
We need to pin setuptools-scm on an older version, since newer versions
don't work correctly with the setuptools version that CKAN uses.
  • Loading branch information
stsnel committed Feb 26, 2025
1 parent c93a8d9 commit 50c7bbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/images/ckan/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,11 @@ ENV CKAN_ADMIN_PASSWORD="testtest"
ENV CKAN_MSLAPI_PASSWORD="testtest"

# Install CKAN and plugins
# Newer versions of setuptools-scm don't work with current version of CKAN because of setuptools version dependency
RUN ckan-pip3 install -U pip && \
ckan-pip3 install setuptools==44.1.0 && \
ckan-pip3 install --upgrade pip && \
ckan-pip3 install wheel && \
ckan-pip3 install setuptools-scm==7.1.0 && \
ckan-pip3 install -e "git+https://github.com/ckan/ckan@ckan-${CKAN_VERSION}#egg=ckan[requirements]" && \
ckan-pip3 install uwsgi && \
ckan-pip3 install -e "git+https://github.com/ckan/ckanext-scheming@${CKAN_SCHEMING_VERSION}#egg=ckanext-scheming" && \
Expand Down

0 comments on commit 50c7bbb

Please sign in to comment.