mirror of
https://github.com/linuxserver/docker-python.git
synced 2026-02-19 17:24:19 +08:00
ignore test failures like pre 3.13
This commit is contained in:
parent
60a40589f9
commit
1fb113d9f8
@ -3,7 +3,7 @@
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:3.20 as buildstage
|
||||
|
||||
# set version label
|
||||
ARG PYTHON_VERSION=3.12.4
|
||||
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 \
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.20 as buildstage
|
||||
|
||||
# set version label
|
||||
ARG PYTHON_VERSION=3.12.4
|
||||
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 \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user