Skip to content

Commit aec133a

Browse files
committed
Drop CPython 3.6
1 parent 9d065a2 commit aec133a

File tree

7 files changed

+16
-7807
lines changed

7 files changed

+16
-7807
lines changed

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ Image content
268268

269269
All supported images currently contain:
270270

271-
- CPython 3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13, 3.13t and PyPy 3.7, 3.8, 3.9, 3.10 installed in
271+
- CPython 3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13, 3.13t and PyPy 3.7, 3.8, 3.9, 3.10 installed in
272272
``/opt/python/<python tag>-<abi tag>``. The directories are named
273273
after the PEP 425 tags for each environment --
274274
e.g. ``/opt/python/cp37-cp37m`` contains a CPython 3.7 build, and

docker/Dockerfile

+1-6
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,6 @@ RUN export OPENSSL_ROOT=openssl-3.0.16 && \
125125
manylinux-entrypoint /build_scripts/build-openssl.sh
126126

127127

128-
FROM build_cpython_system_ssl AS build_cpython36
129-
COPY build_scripts/cpython-pubkeys.txt /build_scripts/cpython-pubkeys.txt
130-
RUN manylinux-entrypoint /build_scripts/build-cpython.sh "" "" 3.6.15
131-
132128
FROM build_cpython_system_ssl AS build_cpython37
133129
RUN manylinux-entrypoint /build_scripts/build-cpython.sh [email protected] https://github.com/login/oauth 3.7.17
134130

@@ -160,8 +156,7 @@ COPY --from=build_mpdecimal /manylinux-rootfs /
160156
COPY --from=build_sqlite3 /manylinux-rootfs /
161157
COPY --from=build_git /manylinux-rootfs /
162158
COPY build_scripts /opt/_internal/build_scripts/
163-
RUN --mount=type=bind,target=/build_cpython36,from=build_cpython36 \
164-
--mount=type=bind,target=/build_cpython37,from=build_cpython37 \
159+
RUN --mount=type=bind,target=/build_cpython37,from=build_cpython37 \
165160
--mount=type=bind,target=/build_cpython38,from=build_cpython38 \
166161
--mount=type=bind,target=/build_cpython39,from=build_cpython39 \
167162
--mount=type=bind,target=/build_cpython310,from=build_cpython310 \

docker/build_scripts/build-cpython.sh

+4-15
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,8 @@ function pyver_dist_dir {
2828

2929
CPYTHON_DIST_DIR=$(pyver_dist_dir "${CPYTHON_VERSION}")
3030
fetch_source "Python-${CPYTHON_VERSION}.tar.xz" "${CPYTHON_DOWNLOAD_URL}/${CPYTHON_DIST_DIR}"
31-
if [ "${CERT_IDENTITY}" == "" ]; then
32-
fetch_source "Python-${CPYTHON_VERSION}.tar.xz.asc" "${CPYTHON_DOWNLOAD_URL}/${CPYTHON_DIST_DIR}"
33-
gpg --import "${MY_DIR}/cpython-pubkeys.txt"
34-
gpg --verify "Python-${CPYTHON_VERSION}.tar.xz.asc"
35-
else
36-
fetch_source "Python-${CPYTHON_VERSION}.tar.xz.sigstore" "${CPYTHON_DOWNLOAD_URL}/${CPYTHON_DIST_DIR}"
37-
cosign verify-blob "Python-${CPYTHON_VERSION}.tar.xz" --bundle "Python-${CPYTHON_VERSION}.tar.xz.sigstore" --certificate-identity="${CERT_IDENTITY}" --certificate-oidc-issuer="${CERT_OIDC_ISSUER}"
38-
fi
31+
fetch_source "Python-${CPYTHON_VERSION}.tar.xz.sigstore" "${CPYTHON_DOWNLOAD_URL}/${CPYTHON_DIST_DIR}"
32+
cosign verify-blob "Python-${CPYTHON_VERSION}.tar.xz" --bundle "Python-${CPYTHON_VERSION}.tar.xz.sigstore" --certificate-identity="${CERT_IDENTITY}" --certificate-oidc-issuer="${CERT_OIDC_ISSUER}"
3933

4034
tar -xJf "Python-${CPYTHON_VERSION}.tar.xz"
4135
pushd "Python-${CPYTHON_VERSION}"
@@ -49,11 +43,6 @@ if [ "${4:-}" == "nogil" ]; then
4943
CONFIGURE_ARGS+=(--disable-gil)
5044
fi
5145

52-
if [ "${CPYTHON_VERSION}" == "3.6.15" ]; then
53-
# https://github.com/python/cpython/issues/89863
54-
# gcc-12+ uses these 2 flags in -O2 but they were only enabled in -O3 with gcc-11
55-
CFLAGS_EXTRA="${CFLAGS_EXTRA} -fno-tree-loop-vectorize -fno-tree-slp-vectorize"
56-
fi
5746
if [ "${AUDITWHEEL_POLICY}" == "manylinux2014" ] ; then
5847
# Python 3.11+
5948
export TCLTK_LIBS="-ltk8.6 -ltcl8.6"
@@ -68,7 +57,7 @@ fi
6857
SQLITE_PREFIX=$(find /opt/_internal -maxdepth 1 -name 'sqlite*')
6958
if [ "${SQLITE_PREFIX}" != "" ]; then
7059
case "${CPYTHON_VERSION}" in
71-
3.6.*|3.7.*|3.8.*|3.9.*|3.10.*) sed -i "s|/usr/local/include/sqlite3|/opt/_internal/sqlite3/include|g ; s|sqlite_extra_link_args = ()|sqlite_extra_link_args = ('-Wl,--enable-new-dtags,-rpath=/opt/_internal/sqlite3/lib',)|g" setup.py;;
60+
3.7.*|3.8.*|3.9.*|3.10.*) sed -i "s|/usr/local/include/sqlite3|/opt/_internal/sqlite3/include|g ; s|sqlite_extra_link_args = ()|sqlite_extra_link_args = ('-Wl,--enable-new-dtags,-rpath=/opt/_internal/sqlite3/lib',)|g" setup.py;;
7261
*) ;;
7362
esac
7463
fi
@@ -97,7 +86,7 @@ fi
9786
make > /dev/null
9887
make install > /dev/null
9988
popd
100-
rm -rf "Python-${CPYTHON_VERSION}" "Python-${CPYTHON_VERSION}.tar.xz" "Python-${CPYTHON_VERSION}.tar.xz.sigstore" "Python-${CPYTHON_VERSION}.tar.xz.asc"
89+
rm -rf "Python-${CPYTHON_VERSION}" "Python-${CPYTHON_VERSION}.tar.xz" "Python-${CPYTHON_VERSION}.tar.xz.sigstore"
10190

10291
if [ "${OPENSSL_PREFIX}" != "" ]; then
10392
rm -rf "${OPENSSL_PREFIX:?}/bin" "${OPENSSL_PREFIX}/include" "${OPENSSL_PREFIX}/lib/pkgconfig" "${OPENSSL_PREFIX}/lib/*.so"

0 commit comments

Comments
 (0)