Bugzilla – Bug 1213698
We have .cpython-311.pyc in non-311 packages
Last modified: 2023-09-08 13:03:10 UTC
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?
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
https://github.com/rpm-software-management/rpmlint/issues/1094
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
I've created a new check in rpmlint for this: https://github.com/rpm-software-management/rpmlint/pull/1095
This is an autogenerated message for OBS integration: This bug (1213698) was mentioned in https://build.opensuse.org/request/show/1102380 Factory / python-blinker
The new check is now in rpmlint upstream. Now if different *.pyc versions are detected the warning 'python-pyc-multiple-versions' will be shown.