On Tuesday, 16 June 2020 07.09.17 WEST Lumir Balhar wrote:
Hello.
The change has been accepted and implemented in:
https://bodhi.fedoraproject.org/updates/FEDORA-2020-922b21ffde
This means that the affected packages will FTBFS with the following error:
%_python_bytecompile_extra is discontinued, use %py_byte_compile instead.
See:
https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompila
tion_phase_3 error: Bad exit status from /var/tmp/rpm-tmp.T6T9xw (%install)
How to fix it?
Check a previous build of a package and answer the question: "Do you really
need to ship byte-compiled Python modules outside the standard location?"
If the answer is no, simply remove the "_python_bytecompile_extra" from a
specfile. If the answer is yes, use %py_byte_compile macro to compile them
manually. Docs:
https://docs.fedoraproject.org/en-US/packaging-guidelines/Python_Appendix/#
manual-bytecompilation Feel free to ask for any assistance.
Lumír
Just in case this happens to others.
I noticed, with Lumír's help, that previously it was only necessary
BuildRequires: python3
while now it is necessary to do
BuildRequires: python3-devel
Regards,
--
José Abílio