Skip to content

Commit 7baf76f

Browse files
authored
remove tcl/tk translations and demo files from distributions (#1104)
Remove the Tcl/Tk translation files (.msg) and the Tk demos from the distribution artifacts. The former would only be needed in edge cases and the later is never be needed. closes #1095
1 parent 90a9247 commit 7baf76f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

cpython-unix/build-cpython.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,6 +1355,13 @@ if [ -d "${TOOLS_PATH}/deps/lib/tcl9" ]; then
13551355
)
13561356
fi
13571357

1358+
# Prune the tk demos which are > 1 MB and not used
1359+
rm -rf "${ROOT}/out/python/install/lib/tk9.0/demos"
1360+
1361+
# Prune the tcl/tk translations
1362+
rm -rf "${ROOT}/out/python/install/lib/tcl9.0/msgs"
1363+
rm -rf "${ROOT}/out/python/install/lib/tk9.0/msgs"
1364+
13581365
# Copy the terminfo database if present.
13591366
if [ -d "${TOOLS_PATH}/deps/usr/share/terminfo" ]; then
13601367
cp -av "${TOOLS_PATH}/deps/usr/share/terminfo" "${ROOT}/out/python/install/share/"

0 commit comments

Comments
 (0)