public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pmw] rawhide: BuildRequire python3-tkinter for import check during the build
@ 2026-06-03  9:40 Karolina Surma
  0 siblings, 0 replies; only message in thread
From: Karolina Surma @ 2026-06-03  9:40 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-pmw
            Branch : rawhide
            Commit : 269069a167cb3d6bca09c21f709bb51a32e7ebf4
            Author : Karolina Surma <ksurma@redhat.com>
            Date   : 2026-06-03T11:37:03+02:00
            Stats  : +1/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-pmw/c/269069a167cb3d6bca09c21f709bb51a32e7ebf4?branch=rawhide

            Log:
            BuildRequire python3-tkinter for import check during the build

Without, with Python 3.15, the import started to fail:

Check import: Pmw.Pmw_2_1_1.bin
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-pmw-2.1.1-build/BUILDROOT/usr/lib/python3.15/site-packages/Pmw/Pmw_2_1_1/lib/PmwLoader.py", line 84, in _initialise
    basemodule = self._getmodule(path + '.Pmw' + _BASEMODULE)
  File "/builddir/build/BUILD/python-pmw-2.1.1-build/BUILDROOT/usr/lib/python3.15/site-packages/Pmw/Pmw_2_1_1/lib/PmwLoader.py", line 68, in _getmodule
    __import__(modpath)
    ~~~~~~~~~~^^^^^^^^^
  File "/builddir/build/BUILD/python-pmw-2.1.1-build/BUILDROOT/usr/lib/python3.15/site-packages/Pmw/Pmw_2_1_1/lib/PmwBase.py", line 22, in <module>
    import tkinter
ModuleNotFoundError: Install the python3-tkinter RPM package to use the 'tkinter' module

---
diff --git a/python-pmw.spec b/python-pmw.spec
index b29cfd3..bc30c13 100644
--- a/python-pmw.spec
+++ b/python-pmw.spec
@@ -10,6 +10,7 @@ URL: https://pmw.sourceforge.net/
 Source: https://downloads.sourceforge.net/pmw/Pmw-%{version}.tar.gz
 BuildRequires: python3-devel
 BuildRequires: python3-setuptools
+BuildRequires: python3-tkinter
 BuildRequires: dos2unix
 BuildArch: noarch
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-03  9:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-03  9:40 [rpms/python-pmw] rawhide: BuildRequire python3-tkinter for import check during the build Karolina Surma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox