Skip to content

remove tcl/tk translations and demo files from distributions#1104

Merged
zanieb merged 2 commits into
astral-sh:mainfrom
jjhelmus:rm_tcl_demos
Apr 29, 2026
Merged

remove tcl/tk translations and demo files from distributions#1104
zanieb merged 2 commits into
astral-sh:mainfrom
jjhelmus:rm_tcl_demos

Conversation

@jjhelmus
Copy link
Copy Markdown
Contributor

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

@jjhelmus jjhelmus added platform:darwin Specific to the macOS platform platform:linux Specific to the Linux platform build:debug python:3.14 labels Apr 23, 2026
@jjhelmus
Copy link
Copy Markdown
Contributor Author

On macOS, CPython 3.14, and the debug build, removing these files saves around ~450 kB in the compressed distribution and ~1200 kB when unpacked.

❯ ls -l *.tar.zst
-rw-r--r--@ 1 jjhelmus  staff  30127303 Apr 23 10:55 ref.tar.zst
-rw-r--r--@ 1 jjhelmus  staff  29677725 Apr 23 10:52 smaller.tar.zst
❯ tar xf ref.tar.zst -C ./ref
❯ tar xf smaller.tar.zst -C ./smaller
❯ du -Aks ref
197143  ref
❯ du -Aks smaller
195958  smaller

@jjhelmus jjhelmus requested a review from geofft April 23, 2026 15:42
@zanieb zanieb merged commit 7baf76f into astral-sh:main Apr 29, 2026
54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build:debug platform:darwin Specific to the macOS platform platform:linux Specific to the Linux platform python:3.14

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider not shipping lib/tk9.0/demos to save 1 MB

3 participants