Hi Pythonistas.
I have just realized, that the %py_byte_compile macro, when invoked like this:
%py_byte_compile %{python3} %{buildroot}%{_datadir}/nemo*
Will happily compile files like
/usr/share/nemo-compare/__pycache__/nemo-compare-preferences.cpython-313.pyc /usr/share/nemo-pastebin/__pycache__/nemo-pastebin-configurator.cpython-313.pyc /usr/share/nemo-terminal/__pycache__/nemo-terminal-prefs.cpython-313.pyc
But such files are not (easily) importable modules.
Should it only compile .py files with importable names?
python-devel@lists.fedoraproject.org