Skip to content

Commit

Permalink
Updating to latest python version (#32)
Browse files Browse the repository at this point in the history
Co-authored-by: Hartorn <[email protected]>
  • Loading branch information
Hartorn and Hartorn authored Jan 27, 2025
1 parent 3b75e29 commit 4f81d26
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/Dockerfile_3.12
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ RUN set -eux; \
EXTRA_CFLAGS="$(dpkg-buildflags --get CFLAGS)"; \
LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"; \
LDFLAGS="${LDFLAGS:--Wl},--strip-all"; \
# https://docs.python.org/3.12/howto/perf_profiling.html
# But don't enable frame-pointers on 32bit x86 due to performance drop.
# https://github.com/docker-library/python/pull/1000#issuecomment-2597021615
test "$gnuArch" != 'i686-linux-gnu' && EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"; \
make -j "$nproc" \
"EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" \
"LDFLAGS=${LDFLAGS:-}" \
Expand Down
4 changes: 4 additions & 0 deletions python/Dockerfile_3.13
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ RUN set -eux; \
EXTRA_CFLAGS="$(dpkg-buildflags --get CFLAGS)"; \
LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"; \
LDFLAGS="${LDFLAGS:--Wl},--strip-all"; \
# https://docs.python.org/3.12/howto/perf_profiling.html
# But don't enable frame-pointers on 32bit x86 due to performance drop.
# https://github.com/docker-library/python/pull/1000#issuecomment-2597021615
test "$gnuArch" != 'i686-linux-gnu' && EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"; \
make -j "$nproc" \
"EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" \
"LDFLAGS=${LDFLAGS:-}" \
Expand Down

0 comments on commit 4f81d26

Please sign in to comment.