File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 33FROM ghcr.io/linuxserver/baseimage-alpine:3.19 as buildstage
44
55# set version label
6- ARG PYTHON_VERSION=3.12.2
6+ ARG PYTHON_VERSION
77
88ENV MAKEFLAGS="-j4"
99
4040 xz-dev \
4141 zlib-dev && \
4242 echo "**** compile python ****" && \
43+ if [ -z "${PYTHON_VERSION}" ]; then \
44+ 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); \
45+ fi && \
4346 mkdir -p \
4447 /tmp/python \
4548 /pythoncompiled && \
5356 patch -d /tmp/python -p 1 < "${patch}" ; \
5457 done && \
5558 cd /tmp/python && \
59+ sed -i -E 's|\$\( LLVM_PROF_FILE\) \$\( RUNSHARED\) \. /\$\( BUILDPYTHON\) \$\( PROFILE_TASK\) $|$(LLVM_PROF_FILE) $(RUNSHARED) ./$(BUILDPYTHON) $(PROFILE_TASK) \|\| true|g' Makefile.pre.in && \
5660 ./configure \
5761 --build="x86_64-linux-musl" \
5862 --enable-loadable-sqlite-extensions \
Original file line number Diff line number Diff line change 33FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.19 as buildstage
44
55# set version label
6- ARG PYTHON_VERSION=3.12.2
6+ ARG PYTHON_VERSION
77
88ENV MAKEFLAGS="-j4"
99
4040 xz-dev \
4141 zlib-dev && \
4242 echo "**** compile python ****" && \
43+ if [ -z "${PYTHON_VERSION}" ]; then \
44+ 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); \
45+ fi && \
4346 mkdir -p \
4447 /tmp/python \
4548 /pythoncompiled && \
5356 patch -d /tmp/python -p 1 < "${patch}"; \
5457 done && \
5558 cd /tmp/python && \
59+ sed -i -E 's|\$\(LLVM_PROF_FILE\) \$\(RUNSHARED\) \./\$\(BUILDPYTHON\) \$\(PROFILE_TASK\)$|$(LLVM_PROF_FILE) $(RUNSHARED) ./$(BUILDPYTHON) $(PROFILE_TASK) \|\| true|g' Makefile.pre.in && \
5660 ./configure \
5761 --build="x86_64-linux-musl" \
5862 --enable-loadable-sqlite-extensions \
You can’t perform that action at this time.
0 commit comments