<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[HyperForum — Help running tkinter]]></title>
		<link>https://forums.hyperbola.info/viewtopic.php?id=1038</link>
		<atom:link href="https://forums.hyperbola.info/extern.php?action=feed&amp;tid=1038&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Help running tkinter.]]></description>
		<lastBuildDate>Thu, 18 Apr 2024 07:55:07 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Help running tkinter]]></title>
			<link>https://forums.hyperbola.info/viewtopic.php?pid=7905#p7905</link>
			<description><![CDATA[<p>Perfect: The package will be updated that way. Thanks for the feedback. <img src="https://forums.hyperbola.info/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (throgh)]]></author>
			<pubDate>Thu, 18 Apr 2024 07:55:07 +0000</pubDate>
			<guid>https://forums.hyperbola.info/viewtopic.php?pid=7905#p7905</guid>
		</item>
		<item>
			<title><![CDATA[Re: Help running tkinter]]></title>
			<link>https://forums.hyperbola.info/viewtopic.php?pid=7904#p7904</link>
			<description><![CDATA[<p>The game works now with the updated python! Many thanks.</p>]]></description>
			<author><![CDATA[null@example.com (aloniv)]]></author>
			<pubDate>Thu, 18 Apr 2024 01:29:37 +0000</pubDate>
			<guid>https://forums.hyperbola.info/viewtopic.php?pid=7904#p7904</guid>
		</item>
		<item>
			<title><![CDATA[Re: Help running tkinter]]></title>
			<link>https://forums.hyperbola.info/viewtopic.php?pid=7903#p7903</link>
			<description><![CDATA[<p>Sidenote: You need for sure add the PGP-keys before compilation. Like this ...</p><div class="codebox"><pre><code>gpg --keyserver keyserver.ubuntu.com --recv-key 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D
gpg --keyserver keyserver.ubuntu.com --recv-key E3FF2839C048B25C084DEBE9B26995E310250568
gpg --keyserver keyserver.ubuntu.com --recv-key C92BAA713B8D53D3CAE63FC9E6974752F9704456</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (throgh)]]></author>
			<pubDate>Wed, 17 Apr 2024 16:21:42 +0000</pubDate>
			<guid>https://forums.hyperbola.info/viewtopic.php?pid=7903#p7903</guid>
		</item>
		<item>
			<title><![CDATA[Re: Help running tkinter]]></title>
			<link>https://forums.hyperbola.info/viewtopic.php?pid=7902#p7902</link>
			<description><![CDATA[<p>You can use for the moment the draft I have in the sources local and perhaps give feedback about its integration:</p><div class="codebox"><pre><code># Maintainer (Arch): Angel Velasquez &lt;angvp@archlinux.org&gt;
# Maintainer (Arch): Felix Yan &lt;felixonmars@archlinux.org&gt;
# Contributor (Arch): Stéphane Gaudreault &lt;stephane@archlinux.org&gt;
# Contributor (Arch): Allan McRae &lt;allan@archlinux.org&gt;
# Contributor (Arch): Jason Chu &lt;jason@archlinux.org&gt;
# Maintainer: André Silva &lt;emulatorman@hyperbola.info&gt;
# Contributor: Tobias Dausend &lt;throgh@hyperbola.info&gt;

pkgname=python
pkgver=3.8.5
_debver=$pkgver
_debrel=1
pkgrel=3
_pybasever=${pkgver%.*}
pkgdesc=&quot;Next generation of the python high-level scripting language&quot;
arch=(&#039;i686&#039; &#039;x86_64&#039;)
license=(&#039;Python&#039;)
url=&quot;https://www.python.org/&quot;
depends=(&#039;expat&#039; &#039;bzip2&#039; &#039;gdbm&#039; &#039;libressl&#039; &#039;libffi&#039; &#039;libxcrypt&#039; &#039;zlib&#039;)
makedepends=(&#039;tk&#039; &#039;sqlite&#039; &#039;mpdecimal&#039; &#039;quilt&#039;)
optdepends=(&#039;sqlite: for a default database integration&#039;
            &#039;mpdecimal: for decimal&#039;
            &#039;xz: for lzma&#039;
            &#039;tk: for tkinter&#039;)
provides=(&#039;python3&#039;)
replaces=(&#039;python3&#039;)
source=(&quot;https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz&quot;{,.asc}
        &quot;https://repo.hyperbola.info:50000/sources/${pkgname}/python3.8_$_debver-$_debrel.debian.tar.xz&quot;{,.sig})
sha512sums=(&#039;460cee65d7df7150694590575502d7f22e548ebfc99c8f8b363eef8bf30ee72e58d8ffacb1d607824f877f880eb9fd6775a508388029583e1e1df3380f3f9587&#039;
            &#039;SKIP&#039;
            &#039;9540848f66c03c0e6ca289ca5b4aeefc41e04b199a3e073509eb23d8095814a39aa3f835d4e495656ff6fe3a6f942c44755d2d34fcd77f002a2bc13aac239125&#039;
            &#039;SKIP&#039;)
validpgpkeys=(&#039;0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D&#039;  # Ned Deily (Python release signing key) &lt;nad@python.org&gt;
              &#039;E3FF2839C048B25C084DEBE9B26995E310250568&#039;  # Łukasz Langa (GPG langa.pl) &lt;lukasz@langa.pl&gt;
              &#039;C92BAA713B8D53D3CAE63FC9E6974752F9704456&#039;) # André Silva

prepare() {
  cd Python-${pkgver}

  if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
    # Debian patches
    export QUILT_PATCHES=debian/patches
    export QUILT_REFRESH_ARGS=&#039;-p ab --no-timestamps --no-index&#039;
    export QUILT_DIFF_ARGS=&#039;--no-timestamps&#039;

    mv &quot;$srcdir&quot;/debian .

    # Doesn&#039;t apply
    rm -v debian/patches/arm-alignment.diff || true
    rm -v debian/patches/bdist-wininst-notfound.diff || true
    rm -v debian/patches/ctypes-arm.diff || true
    rm -v debian/patches/deb-locations.diff || true
    rm -v debian/patches/deb-setup.diff || true
    rm -v debian/patches/distutils-install-layout.diff || true
    rm -v debian/patches/distutils-link.diff || true
    rm -v debian/patches/distutils-sysconfig.diff || true
    rm -v debian/patches/doc-build-texinfo.diff || true
    rm -v debian/patches/ensurepip-disabled.diff || true
    rm -v debian/patches/ensurepip-wheels.diff || true
    rm -v debian/patches/ext-no-libpython-link.diff || true
    rm -v debian/patches/gdbm-import.diff || true
    rm -v debian/patches/git-updates.diff || true
    rm -v debian/patches/hurd_kfreebsd_thread_native_id.diff || true
    rm -v debian/patches/langpack-gettext.diff || true
    rm -v debian/patches/lib-argparse.diff || true
    rm -v debian/patches/lib2to3-no-pickled-grammar.diff || true
    rm -v debian/patches/local-doc-references.diff || true
    rm -v debian/patches/multiarch-extname.diff || true
    rm -v debian/patches/multiarch.diff || true
    rm -v debian/patches/pydoc-use-pager.diff || true
    rm -v debian/patches/sysconfig-debian-schemes.diff || true
    rm -v debian/patches/sysconfigdata-name.diff || true
    rm -v debian/patches/tkinter-import.diff || true

    quilt push -av
  fi

  # FS#23997
  sed -i -e &quot;s|^#.* /usr/local/bin/python|#!/usr/bin/python|&quot; Lib/cgi.py

  # Ensure that we are using the system copy of various libraries (expat, libffi, and libmpdec),
  # rather than copies shipped in the tarball
  rm -r Modules/expat
  rm -r Modules/_ctypes/{darwin,libffi}*
  rm -r Modules/_decimal/libmpdec
}

build() {
  cd Python-${pkgver}

  # Disable bundled pip &amp; setuptools
  ./configure --prefix=/usr \
              --enable-shared \
              --with-computed-gotos \
              --enable-optimizations \
              --with-lto \
              --enable-ipv6 \
              --with-system-expat \
              --with-dbmliborder=gdbm:ndbm \
              --with-system-ffi \
              --with-system-libmpdec \
              --enable-loadable-sqlite-extensions \
              --without-ensurepip
}

package() {
  cd Python-${pkgver}

  # Hack to avoid building again
  sed -i &#039;s/^all:.*$/all: build_all/&#039; Makefile

  make DESTDIR=&quot;${pkgdir}&quot; EXTRA_CFLAGS=&quot;$CFLAGS&quot; install

  # Why are these not done by default...
  ln -s python3               &quot;${pkgdir}&quot;/usr/bin/python
  ln -s python3-config        &quot;${pkgdir}&quot;/usr/bin/python-config
  ln -s idle3                 &quot;${pkgdir}&quot;/usr/bin/idle
  ln -s pydoc3                &quot;${pkgdir}&quot;/usr/bin/pydoc
  ln -s python${_pybasever}.1 &quot;${pkgdir}&quot;/usr/share/man/man1/python.1

  # some useful &quot;stuff&quot; FS#46146
  install -dm755 &quot;${pkgdir}&quot;/usr/lib/python${_pybasever}/Tools/{i18n,scripts}
  install -m755 Tools/i18n/{msgfmt,pygettext}.py &quot;${pkgdir}&quot;/usr/lib/python${_pybasever}/Tools/i18n/
  install -m755 Tools/scripts/{README,*py} &quot;${pkgdir}&quot;/usr/lib/python${_pybasever}/Tools/scripts/

  # License
  install -Dm644 LICENSE &quot;${pkgdir}/usr/share/licenses/${pkgname}/LICENSE&quot;
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (throgh)]]></author>
			<pubDate>Wed, 17 Apr 2024 16:19:22 +0000</pubDate>
			<guid>https://forums.hyperbola.info/viewtopic.php?pid=7902#p7902</guid>
		</item>
		<item>
			<title><![CDATA[Re: Help running tkinter]]></title>
			<link>https://forums.hyperbola.info/viewtopic.php?pid=7901#p7901</link>
			<description><![CDATA[<p>Thanks for the reply - I thought I was missing some package but couldn&#039;t figure out which one.<br />Anyway, I only needed tk support in python because I was trying to run a kakuro game that required it which can be found on this website (and a PKGBUILD is available in the AUR):<br /><a href="http://pzl.org.uk/">http://pzl.org.uk/</a><br />I found another kakuro game, one which depends on Qt4 libraries, and I managed to compile it successfully:<br /><a href="https://kakuro.mk2k.net/index.html">https://kakuro.mk2k.net/index.html</a></p>]]></description>
			<author><![CDATA[null@example.com (aloniv)]]></author>
			<pubDate>Wed, 17 Apr 2024 15:30:37 +0000</pubDate>
			<guid>https://forums.hyperbola.info/viewtopic.php?pid=7901#p7901</guid>
		</item>
		<item>
			<title><![CDATA[Re: Help running tkinter]]></title>
			<link>https://forums.hyperbola.info/viewtopic.php?pid=7900#p7900</link>
			<description><![CDATA[<p>Hey,</p><p>for the moment the current python-version has no tk-support implemented. We know about this for sure and I have tried to review this some time ago. But until now the focus was more into have the packages running stable and rock-solid. If you like to support me here within to make that possible for version 0.4.5? I would be happy to include this.</p><p>What this means: I would add tk-support with the next builds, but this needs testing for sure.</p>]]></description>
			<author><![CDATA[null@example.com (throgh)]]></author>
			<pubDate>Wed, 17 Apr 2024 14:13:40 +0000</pubDate>
			<guid>https://forums.hyperbola.info/viewtopic.php?pid=7900#p7900</guid>
		</item>
		<item>
			<title><![CDATA[Help running tkinter]]></title>
			<link>https://forums.hyperbola.info/viewtopic.php?pid=7899#p7899</link>
			<description><![CDATA[<p>It seems to be part of python but when I run &quot;python -m tkinter&quot; I get this error:<br /></p><div class="codebox"><pre><code>$ python -m tkinter
Traceback (most recent call last):
  File &quot;/usr/lib/python3.8/runpy.py&quot;, line 185, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File &quot;/usr/lib/python3.8/runpy.py&quot;, line 144, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File &quot;/usr/lib/python3.8/runpy.py&quot;, line 111, in _get_module_details
    __import__(pkg_name)
  File &quot;/usr/lib/python3.8/tkinter/__init__.py&quot;, line 36, in &lt;module&gt;
    import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named &#039;_tkinter&#039;</code></pre></div><p>I have tk installed. Do I need to install anything else?</p>]]></description>
			<author><![CDATA[null@example.com (aloniv)]]></author>
			<pubDate>Wed, 17 Apr 2024 12:58:17 +0000</pubDate>
			<guid>https://forums.hyperbola.info/viewtopic.php?pid=7899#p7899</guid>
		</item>
	</channel>
</rss>
