[Bug 868266] Review Request: python-pyglet - A cross-platform windowing and multimedia library for Python

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=868266



--- Comment #45 from Petr Viktorin <pviktori@xxxxxxxxxx> ---
%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
package-review@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/package-review




[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]