From 9eb8f01a001abaca1b018d5b0c2ece7c6c77c615 Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Jun 20 2020 10:00:46 +0000 Subject: Bytecompile Python modules explicitly The modules were not compiled at all. See https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_3 --- diff --git a/freecad.spec b/freecad.spec index f6d88d2..b30d4de 100644 --- a/freecad.spec +++ b/freecad.spec @@ -1,7 +1,3 @@ -# This package depends on automagic byte compilation -# https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_2 -%global _python_bytecompile_extra 1 - # Setup python target for shiboken so the right cmake file is imported. %global py_suffix %(%{__python3} -c "import sysconfig; print(sysconfig.get_config_var('SOABI'))") @@ -21,7 +17,7 @@ Name: freecad Epoch: 1 Version: 0.18.4 -Release: 9%{?dist} +Release: 10%{?dist} Summary: A general purpose 3D CAD modeler License: GPLv2+ @@ -212,6 +208,8 @@ rm -f %{buildroot}%{_docdir}/%{name}/Start_Page.html # Belongs in %%license not %%doc rm -f %{buildroot}%{_docdir}/freecad/ThirdPartyLibraries.html +# Bytecompile Python modules +%py_byte_compile %{__python3} %{buildroot}%{_libdir}/%{name} %check desktop-file-validate \ @@ -253,6 +251,9 @@ desktop-file-validate \ %changelog +* Sat Jun 20 2020 Miro Hrončok - 1:0.18.4-10 +- Bytecompile Python modules + * Wed Jun 03 2020 Scott Talbert - 1:0.18.4-9 - Fix build with unbundled pycxx