Remove unused configure flags and update %py_byte_compile macro

This commit is contained in:
Charalampos Stratakis 2016-09-12 14:45:49 +02:00
parent b2fa0070fc
commit 5941d2af7f
2 changed files with 8 additions and 6 deletions

View File

@ -6,7 +6,5 @@
%py_byte_compile()\
python_binary="%1"\
bytecode_compilation_path="%2"\
find $bytecode_compilation_path -type f -a -name "*.py" -print0 | xargs -0 $python_binary -c 'import py_compile, sys; [py_compile.compile(f, dfile=f.partition("$RPM_BUILD_ROOT")[2]) for f in sys.argv[1:]]' || :\
\
find $bytecode_compilation_path -type f -a -name "*.py" -print0 | xargs -0 $python_binary -O -c 'import py_compile, sys; [py_compile.compile(f, dfile=f.partition("$RPM_BUILD_ROOT")[2]) for f in sys.argv[1:]]' || :\
find $bytecode_compilation_path -type f -a -name "*.py" -print0 | xargs -0 $python_binary -O -c 'import py_compile, sys; [py_compile.compile(f, dfile=f.partition("$RPM_BUILD_ROOT")[2]], optimize=opt) for opt in range(2) for f in sys.argv[1:]]' || :\
%{nil}

View File

@ -112,7 +112,7 @@
Summary: Version 3 of the Python programming language aka Python 3000
Name: python3
Version: %{pybasever}.2
Release: 2%{?dist}
Release: 3%{?dist}
License: Python
Group: Development/Languages
@ -735,9 +735,9 @@ BuildPython debug \
python-debug \
python%{pybasever}-debug \
%ifarch %{ix86} x86_64 ppc %{power64}
"--with-pydebug --with-tsc --with-count-allocs --with-call-profile --without-ensurepip" \
"--with-pydebug --with-tsc --without-ensurepip" \
%else
"--with-pydebug --with-count-allocs --with-call-profile --without-ensurepip" \
"--with-pydebug --without-ensurepip" \
%endif
false \
-O0
@ -1547,6 +1547,10 @@ rm -fr %{buildroot}
# ======================================================
%changelog
* Mon Sep 12 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.5.2-3
- Update %py_byte_compile macro
- Remove unused configure flags (rhbz#1374357)
* Fri Sep 09 2016 Tomas Orsava <torsava@redhat.com> - 3.5.2-2
- Updated .pyc 'bytecompilation with the newly installed interpreter' to also
recompile optimized .pyc files