Bytecompile the plugins explicitly

This commit is contained in:
Miro Hrončok 2018-06-07 13:15:42 +02:00
commit 89052d21c5

View file

@ -1,6 +1,6 @@
Name: python-uranium
Version: 3.3.0
Release: 2%{?dist}
Release: 3%{?dist}
Summary: A Python framework for building desktop applications
License: LGPLv3+
URL: https://github.com/Ultimaker/Uranium
@ -25,8 +25,7 @@ BuildRequires: python3-pytest
BuildArch: noarch
# There are Python plugins in /usr/lib/uranium
# We need to byte-compile it with Python 3
%global __python %{__python3}
%global _python_bytecompile_extra 0
%description
Uranium is a Python framework for building 3D printing related applications.
@ -86,6 +85,9 @@ rm locale/uranium.pot
rm locale/*/uranium.po
popd
# Bytecompile the plugins
%py_byte_compile %{__python3} %{buildroot}%{_prefix}/lib/uranium
%find_lang uranium
@ -105,6 +107,9 @@ popd
%changelog
* Thu Jun 07 2018 Miro Hrončok <mhroncok@redhat.com> - 3.3.0-3
- Bytecompile the plugins explicitly
* Mon May 28 2018 Miro Hrončok <mhroncok@redhat.com> - 3.3.0-2
- Fix PluginRegistry test