Home

Awesome

tkinter-standalone

This is the tkinter package, copied from the python 3.9 source tree for building in a flatpak package without having to recompile and distribute all of Python, as this leads to other compatibility problems.

Sources:

Add to flatpak with:

{
  "name": "tkinter",
  "buildsystem": "simple",
  "build-commands": [
    "pip3 install --prefix=${FLATPAK_DEST} ."
  ],
  "sources": [
    {
      "type": "git",
      "url": "https://github.com/iwalton3/tkinter-standalone",
      "commit": "d9cb97c5bd4f814c73678366e0e48220776b6ad3"
    }
  ],
  "modules": [
    {
      "name": "tcl8.6",
      "sources": [
        {
          "type": "archive",
          "url": "https://sourceforge.net/projects/tcl/files/Tcl/8.6.12/tcl8.6.12-src.tar.gz",
          "sha256": "26c995dd0f167e48b11961d891ee555f680c175f7173ff8cb829f4ebcde4c1a6",
          "x-checker-data": {
              "type": "html",
              "url": "https://sourceforge.net/projects/tcl/rss",
              "pattern": "<link>(https://sourceforge.net/.+/tcl(8\\.6\\.[\\d\\.]*\\d)-src.tar.gz)/download"
          }
        }
      ],
      "subdir": "unix",
      "post-install": [
        "chmod +w ${FLATPAK_DEST}/lib/libtcl8.6.so"
      ]
    },
    {
      "name": "tk8.6",
      "sources": [
        {
          "type": "archive",
          "url": "https://sourceforge.net/projects/tcl/files/Tcl/8.6.12/tk8.6.12-src.tar.gz",
          "sha256": "12395c1f3fcb6bed2938689f797ea3cdf41ed5cb6c4766eec8ac949560310630",
          "x-checker-data": {
              "type": "html",
              "url": "https://sourceforge.net/projects/tcl/rss",
              "pattern": "<link>(https://sourceforge.net/.+/tk(8\\.6\\.[\\d\\.]*\\d)-src.tar.gz)/download"
          }
        }
      ],
      "subdir": "unix",
      "post-install": [
        "chmod +w ${FLATPAK_DEST}/lib/libtk8.6.so"
      ]
    }
  ]
}

Based on: https://github.com/RomanKharin/flatpak-it-all