Mercurial > p > roundup > code
diff scripts/Docker/Dockerfile @ 7639:b9641ea5fee4
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".
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 24 Sep 2023 02:02:17 -0400 |
| parents | d745a6eb0604 |
| children | cea108761b8c |
line wrap: on
line diff
--- a/scripts/Docker/Dockerfile Sun Sep 24 00:36:20 2023 -0400 +++ b/scripts/Docker/Dockerfile Sun Sep 24 02:02:17 2023 -0400 @@ -95,7 +95,11 @@ cd "xapian-bindings-$VER/" && \ pip --no-cache-dir install sphinx && \ sed -i -e '/PYTHON3_SO=/s/distutils\.//g' \ - -e '/PYTHON3_SO=/s/"SO"/"EXT_SUFFIX"/g' configure && \ + -e '/PYTHON3_SO=/s/"SO"/"EXT_SUFFIX"/g' \ + -e '/PYTHON3_CACHE_TAG=/s/imp;print(imp.get_tag())/sys;print(sys.implementation.cache_tag)/' \ + -e '/PYTHON3_CACHE_OPT1_EXT=/s/imp\.get_tag()/sys.implementation.cache_tag/g' \ + -e '/PYTHON3_CACHE_OPT1_EXT=/s/imp\b/importlib/g' \ + configure && \ ./configure --prefix=/usr/local --with-python3 --disable-documentation && \ make && make install && \ pip uninstall --no-cache-dir -y sphinx && \
