Remove unused configure flags and update %py_byte_compile macro
This commit is contained in:
parent
b2fa0070fc
commit
5941d2af7f
@ -6,7 +6,5 @@
|
|||||||
%py_byte_compile()\
|
%py_byte_compile()\
|
||||||
python_binary="%1"\
|
python_binary="%1"\
|
||||||
bytecode_compilation_path="%2"\
|
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]], optimize=opt) for opt in range(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:]]' || :\
|
|
||||||
%{nil}
|
%{nil}
|
||||||
|
10
python3.spec
10
python3.spec
@ -112,7 +112,7 @@
|
|||||||
Summary: Version 3 of the Python programming language aka Python 3000
|
Summary: Version 3 of the Python programming language aka Python 3000
|
||||||
Name: python3
|
Name: python3
|
||||||
Version: %{pybasever}.2
|
Version: %{pybasever}.2
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: Python
|
License: Python
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
|
|
||||||
@ -735,9 +735,9 @@ BuildPython debug \
|
|||||||
python-debug \
|
python-debug \
|
||||||
python%{pybasever}-debug \
|
python%{pybasever}-debug \
|
||||||
%ifarch %{ix86} x86_64 ppc %{power64}
|
%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
|
%else
|
||||||
"--with-pydebug --with-count-allocs --with-call-profile --without-ensurepip" \
|
"--with-pydebug --without-ensurepip" \
|
||||||
%endif
|
%endif
|
||||||
false \
|
false \
|
||||||
-O0
|
-O0
|
||||||
@ -1547,6 +1547,10 @@ rm -fr %{buildroot}
|
|||||||
# ======================================================
|
# ======================================================
|
||||||
|
|
||||||
%changelog
|
%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
|
* Fri Sep 09 2016 Tomas Orsava <torsava@redhat.com> - 3.5.2-2
|
||||||
- Updated .pyc 'bytecompilation with the newly installed interpreter' to also
|
- Updated .pyc 'bytecompilation with the newly installed interpreter' to also
|
||||||
recompile optimized .pyc files
|
recompile optimized .pyc files
|
||||||
|
Loading…
Reference in New Issue
Block a user