From 204242750e2277b5b2226e9d337f647ea02065bc Mon Sep 17 00:00:00 2001 From: Packit Service Date: Feb 24 2021 15:21:53 +0000 Subject: Apply patch compile-with-Platform-Python-binary-where-relevant.patch patch_name: compile-with-Platform-Python-binary-where-relevant.patch present_in_specfile: true location_in_specfile: 51 --- diff --git a/scripts/brp-python-bytecompile b/scripts/brp-python-bytecompile index c06bdfa..4a9b49e 100644 --- a/scripts/brp-python-bytecompile +++ b/scripts/brp-python-bytecompile @@ -61,6 +61,9 @@ shopt -s nullglob for python_libdir in `find "$RPM_BUILD_ROOT" -type d|grep -E "/usr/lib(64)?/python[0-9]\.[0-9]$"`; do python_binary=/usr/bin/$(basename $python_libdir) + if [ "$python_binary" = "/usr/bin/python3.6" ]; then + python_binary=/usr/libexec/platform-python + fi real_libdir=${python_libdir/$RPM_BUILD_ROOT/} echo "Bytecompiling .py files below $python_libdir using $python_binary"