From f849c28820d4d47fac3ca14ff4a60a7c2b280ddaccf2bb592330a789cd219f2e Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 25 Apr 2023 16:01:02 +0000 Subject: [PATCH] Accepting request 1082565 from home:dirkmueller:acdc:as_python3_module - add sle15_python_module_pythons (jsc#PED-68) OBS-URL: https://build.opensuse.org/request/show/1082565 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-installer?expand=0&rev=16 --- python-installer.changes | 10 ++++++++++ python-installer.spec | 11 ++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/python-installer.changes b/python-installer.changes index 5862a6b..eea1c0b 100644 --- a/python-installer.changes +++ b/python-installer.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Mon Apr 24 16:05:22 UTC 2023 - Daniel Garcia + +- Use python311 to build if sle15_python_module_pythons is defined. + +------------------------------------------------------------------- +Fri Apr 21 12:26:59 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + ------------------------------------------------------------------- Tue Mar 28 03:51:53 UTC 2023 - Steve Kowalik diff --git a/python-installer.spec b/python-installer.spec index ddc01d0..0cbaf1d 100644 --- a/python-installer.spec +++ b/python-installer.spec @@ -24,6 +24,7 @@ %define pkg_suffix %{nil} %bcond_with test %endif +%{?sle15_python_module_pythons} Name: python-installer%{pkg_suffix} Version: 0.7.0 Release: 0 @@ -50,7 +51,15 @@ A library for installing Python wheels. %if !%{with test} %build -python3 -m flit_core.wheel + +# Use defined python if sle15_python_module_pythons, in other case use +# the default python3 module to build + %if %{defined sle15_python_module_pythons} + python3.11 -m flit_core.wheel + %else + python3 -m flit_core.wheel + %endif + %endif %if !%{with test}