From 54f2ba380156b2119aa8bbd7029f8a3be33ec921 Mon Sep 17 00:00:00 2001 From: Jonathan Helmus Date: Thu, 23 Apr 2026 10:37:59 -0400 Subject: [PATCH 1/2] remove tk demo files from distribution --- cpython-unix/build-cpython.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cpython-unix/build-cpython.sh b/cpython-unix/build-cpython.sh index 77f9ec5cd..c3cb6d7ec 100755 --- a/cpython-unix/build-cpython.sh +++ b/cpython-unix/build-cpython.sh @@ -1376,6 +1376,9 @@ if [ -d "${TOOLS_PATH}/deps/lib/tcl9" ]; then ) fi +# Prune the tk demos which are > 1 MB and not used +rm -rf "${ROOT}/out/python/install/lib/tk9.0/demos" + # Copy the terminfo database if present. if [ -d "${TOOLS_PATH}/deps/usr/share/terminfo" ]; then cp -av "${TOOLS_PATH}/deps/usr/share/terminfo" "${ROOT}/out/python/install/share/" From a375c1ef2ff715c2270609d998d82da096699200 Mon Sep 17 00:00:00 2001 From: Jonathan Helmus Date: Thu, 23 Apr 2026 10:46:25 -0400 Subject: [PATCH 2/2] remove tcl/tk translation files --- cpython-unix/build-cpython.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cpython-unix/build-cpython.sh b/cpython-unix/build-cpython.sh index c3cb6d7ec..f351833b3 100755 --- a/cpython-unix/build-cpython.sh +++ b/cpython-unix/build-cpython.sh @@ -1379,6 +1379,10 @@ fi # Prune the tk demos which are > 1 MB and not used rm -rf "${ROOT}/out/python/install/lib/tk9.0/demos" +# Prune the tcl/tk translations +rm -rf "${ROOT}/out/python/install/lib/tcl9.0/msgs" +rm -rf "${ROOT}/out/python/install/lib/tk9.0/msgs" + # Copy the terminfo database if present. if [ -d "${TOOLS_PATH}/deps/usr/share/terminfo" ]; then cp -av "${TOOLS_PATH}/deps/usr/share/terminfo" "${ROOT}/out/python/install/share/"