Package: python3-tk
Followup-For: Bug #1031909

Some notes from inspecting (but not yet testing) the relevant scripts:

  * There is an open merge request intended to fix a bug when too-many-files
    are encountered by the lib2to3 'prerm' script:

    * https://salsa.debian.org/cpython-team/python3-stdlib/-/merge_requests/1



  * The python3-distutils and python3-lib2to3 packages have prerm 'upgrade'
    steps to remove bytecode; python3-tk does not:

    * 
https://salsa.debian.org/cpython-team/python3-stdlib/-/blob/519a4643ba82ffd035827df37002c64853d4913b/debian/python3-distutils.prerm#L27-28

    * 
https://salsa.debian.org/cpython-team/python3-stdlib/-/blob/519a4643ba82ffd035827df37002c64853d4913b/debian/python3-lib2to3.prerm#L27-28

    * 
https://salsa.debian.org/cpython-team/python3-stdlib/-/blob/519a4643ba82ffd035827df37002c64853d4913b/debian/python3-tk.prerm#L27



  * All three of the previously-mentioned binary packages clear out
    py3.9-and-older library content during 'postinst' of more recent package
    versions; a similar step for py3.10 library content could be worth adding

    * 
https://salsa.debian.org/cpython-team/python3-stdlib/-/blob/519a4643ba82ffd035827df37002c64853d4913b/debian/python3-lib2to3.postinst.in#L22-41

Reply via email to