Skip to content

Commit d4485f1

Browse files
committed
build: make Dockerfile work for 3.12 release
3.12 build of xapian requires some additional edits. Copy them from the current 3.12 compatible workflow. This should mean that future updates to python:3-alpine to 3.12 will "just work".
1 parent 11c6582 commit d4485f1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/Docker/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,11 @@ RUN [ -z "${VERBOSE}" ] || set -xv; \
9595
cd "xapian-bindings-$VER/" && \
9696
pip --no-cache-dir install sphinx && \
9797
sed -i -e '/PYTHON3_SO=/s/distutils\.//g' \
98-
-e '/PYTHON3_SO=/s/"SO"/"EXT_SUFFIX"/g' configure && \
98+
-e '/PYTHON3_SO=/s/"SO"/"EXT_SUFFIX"/g' \
99+
-e '/PYTHON3_CACHE_TAG=/s/imp;print(imp.get_tag())/sys;print(sys.implementation.cache_tag)/' \
100+
-e '/PYTHON3_CACHE_OPT1_EXT=/s/imp\.get_tag()/sys.implementation.cache_tag/g' \
101+
-e '/PYTHON3_CACHE_OPT1_EXT=/s/imp\b/importlib/g' \
102+
configure && \
99103
./configure --prefix=/usr/local --with-python3 --disable-documentation && \
100104
make && make install && \
101105
pip uninstall --no-cache-dir -y sphinx && \

0 commit comments

Comments
 (0)