#1 Bytecompile the plugins explicitly
Merged 11 months ago by churchyard. Opened a year ago by churchyard.
rpms/ churchyard/python-uranium python_bytecompile_extra_0  into  master

file modified
+8 -3

@@ -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 @@ 

  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

This may very well not be needed here, as we don't BR /usr/bin/python but we cannot be sure what tool "accidentally" brings that in.

  

  %description

  Uranium is a Python framework for building 3D printing related applications.

@@ -86,6 +85,9 @@ 

  rm locale/*/uranium.po

  popd

  

+ # Bytecompile the plugins

+ %py_byte_compile %{__python3} %{buildroot}%{_prefix}/lib/uranium

+ 

  %find_lang uranium

  

  

@@ -105,6 +107,9 @@ 

  

  

  %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

  

This may very well not be needed here, as we don't BR /usr/bin/python but we cannot be sure what tool "accidentally" brings that in.

Pull-Request has been merged by churchyard

11 months ago