diff options
-rw-r--r-- | koji.spec | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -4,6 +4,11 @@ %global _unpackaged_files_terminate_build 0 %define __python %{__python3} +%define py_byte_compile() \ +python_binary="%1" \ +bytecode_compilation_path="%2" \ +[ -d $bytecode_compilation_path ] && find $bytecode_compilation_path -type f -a -name "*.py" -exec $python_binary -O -m py_compile {} \\\; \ +[ -d $bytecode_compilation_path ] && find $bytecode_compilation_path -type f -a -name "*.py" -exec $python_binary -m py_compile {} \\\; # If the definition isn't available for python3_pkgversion, define it %{?!python3_pkgversion:%global python3_pkgversion 3} |