#40 Fix %%py_byte_compile macro
Closed a year ago by torsava. Opened a year ago by torsava.
rpms/ torsava/python3 f28  into  master

file modified
+1 -1

@@ -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}

file modified
+5 -1

@@ -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

  

  

@@ -1470,6 +1470,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.

Mistakenly opened against master instead of f28, closing.

Pull-Request has been closed by torsava

a year ago