[Bug 1213698] New: We have .cpython-311.pyc in non-311 packages
https://bugzilla.suse.com/show_bug.cgi?id=1213698 Bug ID: 1213698 Summary: We have .cpython-311.pyc in non-311 packages Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Python Assignee: python-maintainers@suse.com Reporter: mcepl@suse.com QA Contact: qa-bugs@suse.de CC: bwiedemann@suse.com Target Milestone: --- Found By: --- Blocker: --- I have been reminded about this: -/usr/lib/python3.9/site-packages/blinker/__pycache__/base.cpython-311.pyc 6e33550a94efe8668e6b60422f1a674c9844fd6c44e92c0afcc5d98e71cf51cb 0 +/usr/lib/python3.9/site-packages/blinker/__pycache__/base.cpython-311.pyc 0b7e8cb203ad88028706b7204f007bb66a860cf3cfd6ebde4964a4caf6c248ef 0 why are 311.pyc files in the 3.9 path? We run make html without specifying Python used. It runs the Sphinx builder with /usr/bin/python3 which is now Python 3.11 and it loads (and generates *.pyc) when collecting information on the installed libraries. Suggested solution is https://stackoverflow.com/q/34025113/164233 and I have tried it in https://build.opensuse.org/request/show/1100942 However, it seems like too complicated problem (patching every package). Any other ideas? -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1213698 https://bugzilla.suse.com/show_bug.cgi?id=1213698#c1 Steve Kowalik <steven.kowalik@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |steven.kowalik@suse.com --- Comment #1 from Steve Kowalik <steven.kowalik@suse.com> --- An rpmlint check. Then we can catch them as they appear. If anyone has shell access to a mirror (or we do), a grep should find the victims quickly enough -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1213698 https://bugzilla.suse.com/show_bug.cgi?id=1213698#c2 --- Comment #2 from Matej Cepl <mcepl@suse.com> --- https://github.com/rpm-software-management/rpmlint/issues/1094 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1213698 Daniel Garcia <daniel.garcia@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel.garcia@suse.com Assignee|python-maintainers@suse.com |daniel.garcia@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1213698 https://bugzilla.suse.com/show_bug.cgi?id=1213698#c3 --- Comment #3 from Daniel Garcia <daniel.garcia@suse.com> --- Another option could be to call the sphinx module using "python -m" instead of calling "make html". In this case I think this could also solve the problem, without a patch: $python -m sphinx -M html . _build Take a look to the following request: https://build.opensuse.org/request/show/1101522 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1213698 https://bugzilla.suse.com/show_bug.cgi?id=1213698#c4 --- Comment #4 from Daniel Garcia <daniel.garcia@suse.com> --- I've created a new check in rpmlint for this: https://github.com/rpm-software-management/rpmlint/pull/1095 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1213698 https://bugzilla.suse.com/show_bug.cgi?id=1213698#c6 Daniel Garcia <daniel.garcia@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #6 from Daniel Garcia <daniel.garcia@suse.com> --- The new check is now in rpmlint upstream. Now if different *.pyc versions are detected the warning 'python-pyc-multiple-versions' will be shown. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com