Bytecompile the plugins explicitly
This commit is contained in:
parent
b0d71399a2
commit
89052d21c5
1 changed files with 8 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue