From b1820dc3e4408bd207805f11ee1cb1f71f63f82a7a3fb6f70128c6c468e30620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 10 Jul 2020 07:15:29 +0000 Subject: [PATCH] - Change macros.python3 to use full versioned 3.8 instead of just 3 for python interpreter OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python38?expand=0&rev=2 --- macros.python3 | 6 +++--- python3.changes | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/macros.python3 b/macros.python3 index 2bd193b..7214a72 100644 --- a/macros.python3 +++ b/macros.python3 @@ -13,16 +13,16 @@ # hard to say if anyone ever used these? #py3_soflags cpython-35m-x86_64-linux-gnu #py3_abiflags m -%cpython3_soabi %(python3 -c "import sysconfig; print(sysconfig.get_config_var('SOABI'))") +%cpython3_soabi %(python3.8 -c "import sysconfig; print(sysconfig.get_config_var('SOABI'))") %py3_soflags %cpython3_soabi # compilation macros that might be in use somewhere %py3_compile(O) \ find %1 -name '*.pyc' -exec rm -f {} ";"\ -python3 -c "import sys, os, compileall; br='%{buildroot}'; compileall.compile_dir(sys.argv[1], ddir=br and (sys.argv[1][len(os.path.abspath(br)):]+'/') or None)" %1\ +python3.8 -c "import sys, os, compileall; br='%{buildroot}'; compileall.compile_dir(sys.argv[1], ddir=br and (sys.argv[1][len(os.path.abspath(br)):]+'/') or None)" %1\ %{-O:\ find %1 -name '*.pyo' -exec rm -f {} ";"\ -python3 -O -c "import sys, os, compileall; br='%{buildroot}'; compileall.compile_dir(sys.argv[1], ddir=br and (sys.argv[1][len(os.path.abspath(br)):]+'/') or None)" %1\ +python3.8 -O -c "import sys, os, compileall; br='%{buildroot}'; compileall.compile_dir(sys.argv[1], ddir=br and (sys.argv[1][len(os.path.abspath(br)):]+'/') or None)" %1\ } diff --git a/python3.changes b/python3.changes index e2e8f5f..675456d 100644 --- a/python3.changes +++ b/python3.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jul 10 07:14:33 UTC 2020 - Tomáš Chvátal + +- Change macros.python3 to use full versioned 3.8 instead of just 3 + for python interpreter + ------------------------------------------------------------------- Wed Jul 1 11:50:19 UTC 2020 - Tomáš Chvátal