54e700b
@@ -21,5 +21,5 @@
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:]]' || :\
}\
\
- [[ "%1" == *python3* ]] || py2_byte_compile "%1" "%2" && py3_byte_compile "%1" "%2" \
+ [[ "%1" != *python3* ]] && py2_byte_compile "%1" "%2" || py3_byte_compile "%1" "%2" \
%{nil}
@@ -14,7 +14,7 @@
# WARNING When rebasing to a new Python version,
# remember to update the python3-docs package as well
Version: %{pybasever}.5
- Release: 1%{?dist}
+ Release: 2%{?dist}
License: Python
@@ -1462,6 +1462,10 @@
# ======================================================
%changelog
+ * Tue Jul 10 2018 Tomas Orsava <torsava@redhat.com> - 3.6.5-2
+ - Fix %%py_byte_compile macro: when invoked with a Python 2 binary it also
+ mistakenly ran py3_byte_compile
+
* Thu Mar 29 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.6.5-1
- Update to 3.6.5
When invoked with a Python 2 binary it also mistakenly ran py3_byte_compile.
Backport of: https://src.fedoraproject.org/rpms/python-rpm-macros/pull-request/8
Pull-Request has been merged by churchyard
When invoked with a Python 2 binary it also mistakenly ran py3_byte_compile.