https://bugzilla.redhat.com/show_bug.cgi?id=868266
--- Comment #45 from Petr Viktorin <[email protected]> --- %py_byte_compile compiles the sources to bytecode. It's a macro from python3-devel, so it won't be on EL7, but it's given in Fedora package guidelines (https://fedoraproject.org/wiki/Packaging:Python#Macros) You can use code like this: %if 0%{?with_python3} %py_byte_compile %{__python2} %{buildroot}%{python_sitelib}/%{srcname} %else # py_byte_compile is only defined in python3-devel %{__python2} -m compileall %{buildroot}%{python_sitelib}/%{srcname} %endif -- You are receiving this mail because: You are always notified about changes to this product and component _______________________________________________ package-review mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/package-review
