From f88064e2bcadfc09fd72804be041a43ade03fca6 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Sun, 25 Jun 2023 09:10:08 +0000 Subject: automatic import of koji --- koji.spec | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'koji.spec') diff --git a/koji.spec b/koji.spec index ff836a6..d68b8ea 100644 --- a/koji.spec +++ b/koji.spec @@ -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} -- cgit v1.2.3