Only use py_byte_compile on f29+

Fixes virt-preview copr builds
This commit is contained in:
Cole Robinson 2018-11-15 08:39:59 -05:00
parent 84f43e5ff6
commit 7e5715af86
1 changed files with 2 additions and 0 deletions

View File

@ -393,7 +393,9 @@ install BaseTools/Scripts/GccBase.lds \
%{buildroot}%{_datadir}/%{name}/Scripts
cp -R BaseTools/Source/Python %{buildroot}%{_datadir}/%{name}/Python
%if 0%{?fedora} >= 29
%py_byte_compile %{__python2} %{buildroot}%{_datadir}/%{name}/Python
%endif
for i in build BPDG Ecc GenDepex GenFds GenPatchPcdTable PatchPcdValue TargetTool Trim UPT; do
echo '#!/bin/sh
export PYTHONPATH=%{_datadir}/%{name}/Python