diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-25 09:10:08 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-25 09:10:08 +0000 |
commit | 6a4c1417564e7b4ad78c88773b4c8ecc54ce2bde (patch) | |
tree | d6d04aeb22ae24a4703238cc5ba697422642f94f | |
parent | f7e98910758a117e56edf376b77e70e45141308d (diff) |
automatic import of kojiopeneuler20.03
-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} |