New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tkinter to the official embeddable python zip file #99566
Comments
|
This is deliberate, and certainly won't be added to the default. The vast majority of uses I'm aware of for the embeddable runtime do not use Tkinter, and it would be wasteful bloat to include all of the files in there. I also think having a second embeddable package would cause even more confusion than having a single one. Publishing to PyPI would be fine by me, though since Alternatively, if you do a regular install, you can just copy |
|
I understand the size constraint on the embeddable version is important and would like to understand why we would have a similar constraint on the nuget package. |
|
The concern isn't just the package size, but the surface area. Tcl/Tk adds a vast amount of surface area, that has huge implications for security and compatibility (though we generally don't update them often enough to cause compatibility problems...). Getting them onto PyPI so that only people using it pay that price (and also have a way to help themselves avoid issues) would be much more preferable. We don't do anything special, so anyone could publish a build - it doesn't have to be "official" to fill the gap. |
Feature
Add tkinter to the official embeddable python zip file
Pitch
At the moment tkinter is not included to the official embeddable python zip file despite being part of the standard library. Unfortunately, there does not seem to be an easy way to add it back after installing/unzipping the embeddable python because it is not on pypi.org.
It seems that adding tkinter to the zip file could be simply a matter of adding a single line in
https://github.com/python/cpython/blob/0faa0ba240e815614e5a2900e48007acac41b214/PC/layout/support/options.py
If the omission has been motivated by trying to keep the nugget file as small as possible maybe an alternative would be to provide an official tkinter package on pypi.org or to provide two embeddable versions.
The text was updated successfully, but these errors were encountered: