🐛 Consistently use pip install --use-feature=2020-resolver

This commit is contained in:
Gerber, Mike 2020-09-25 16:11:11 +02:00
parent 8fc5449fbf
commit 311e3eab88
6 changed files with 14 additions and 9 deletions

View file

@ -1,7 +1,9 @@
FROM my_ocrd_workflow-core
ARG PIP_INSTALL="pip3 install --no-cache-dir --use-feature=2020-resolver"
ENV OCRD_OLENA_VERSION 1.2.0
# Build ocrd_olena
RUN apt-get update && \
apt-get install -y \
@ -19,7 +21,7 @@ RUN curl -sSL --retry 3 -o ocrd_olena.tar.gz https://github.com/OCR-D/ocrd_olena
tar xvz -C ocrd_olena --strip-components=1 -f ocrd_olena.tar.gz && \
cd ocrd_olena && \
sed -i 's/^install: deps$/install:/' Makefile && \
pip3 install --no-cache-dir --use-feature=2020-resolver ocrd && \
${PIP_INSTALL} ocrd && \
make install PREFIX=/usr/local && \
cd .. && rm -rf ocrd_olena ocrd_olena.tar.gz