On Fri, 15 Jun 2018, Jason L Tibbitts III wrote:
As part of a recent guideline change
) which ties in with an
accepted F29 change
this section of the guidelines was overhauled for F29+:
The quick summary is that Fedora will be changing to not automatically
byte-compile python files which are installed outside of the usual
python library locations. Currently implemented is the
%_python_bytecompile_extra macro which allows packages to disable this
byte-compilation of "extra" python files. The default is still to
compile these files, so technically nothing changes.
In order to prepare for the default to change in a future release, the
packaging guidelines have changed to require packages which install .py
files outside of the regular python library locations to do the
* Set %_python_bytecompile_extra to 0 to disable the automatic
compilation of the extra python files.
* Manually byte-compile those files which do actually need to be
compiled. This is done with the %py_byte_compile macro, which as a
bonus requires that you specify which python version will be used for
In a couple of my packages, the python files you are detecting are
documentation or sample code. Do we care in that case? In fact, maybe
it's best those aren't byte-compiled?