ignore test failures like pre 3.13

This commit is contained in:
aptalca 2024-10-09 12:44:47 -04:00
parent 17962f820c
commit df3485f498
No known key found for this signature in database
GPG Key ID: BE36CFFB9FD85548
2 changed files with 10 additions and 2 deletions

View File

@ -3,7 +3,7 @@
FROM ghcr.io/linuxserver/baseimage-alpine:3.19 as buildstage
# set version label
ARG PYTHON_VERSION=3.12.2
ARG PYTHON_VERSION
ENV MAKEFLAGS="-j4"
@ -40,6 +40,9 @@ RUN \
xz-dev \
zlib-dev && \
echo "**** compile python ****" && \
if [ -z "${PYTHON_VERSION}" ]; then \
PYTHON_VERSION=$(curl -sX GET https://api.github.com/repos/python/cpython/tags | jq -r '.[] | select(.name | contains("rc") or contains("a") or contains("b") | not) | .name' | sed 's|^v||g' | sort -rV | head -1); \
fi && \
mkdir -p \
/tmp/python \
/pythoncompiled && \
@ -53,6 +56,7 @@ RUN \
patch -d /tmp/python -p 1 < "${patch}"; \
done && \
cd /tmp/python && \
sed -i -E 's|\$\(LLVM_PROF_FILE\) \$\(RUNSHARED\) \./\$\(BUILDPYTHON\) \$\(PROFILE_TASK\)$|$(LLVM_PROF_FILE) $(RUNSHARED) ./$(BUILDPYTHON) $(PROFILE_TASK) \|\| true|g' Makefile.pre.in && \
./configure \
--build="x86_64-linux-musl" \
--enable-loadable-sqlite-extensions \

View File

@ -3,7 +3,7 @@
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.19 as buildstage
# set version label
ARG PYTHON_VERSION=3.12.2
ARG PYTHON_VERSION
ENV MAKEFLAGS="-j4"
@ -40,6 +40,9 @@ RUN \
xz-dev \
zlib-dev && \
echo "**** compile python ****" && \
if [ -z "${PYTHON_VERSION}" ]; then \
PYTHON_VERSION=$(curl -sX GET https://api.github.com/repos/python/cpython/tags | jq -r '.[] | select(.name | contains("rc") or contains("a") or contains("b") | not) | .name' | sed 's|^v||g' | sort -rV | head -1); \
fi && \
mkdir -p \
/tmp/python \
/pythoncompiled && \
@ -53,6 +56,7 @@ RUN \
patch -d /tmp/python -p 1 < "${patch}"; \
done && \
cd /tmp/python && \
sed -i -E 's|\$\(LLVM_PROF_FILE\) \$\(RUNSHARED\) \./\$\(BUILDPYTHON\) \$\(PROFILE_TASK\)$|$(LLVM_PROF_FILE) $(RUNSHARED) ./$(BUILDPYTHON) $(PROFILE_TASK) \|\| true|g' Makefile.pre.in && \
./configure \
--build="x86_64-linux-musl" \
--enable-loadable-sqlite-extensions \