Overview

Request 1096100 superseded

- Use sle15_python_module_pythons
- Some spec cleanup
- Added meson-test-remove-python2.patch

Loading...

Dominique Leuenberger's avatar

no need to guard it for undefined: we want to be all flavors have it defined (empty flavor intentionally defines it to %nil)


Dominique Leuenberger's avatar

this makes no sense: on TW, python_modules expands to all python flavors. meson is part of ring0 (distro bootstrap) and consuming more than the main distro version is not wanted at all


Dominique Leuenberger's avatar

i.e this works as your prjconf contains

%pythons %{?!skip_python2:python2} %{?!skip_python3:python3}

this can't be duplicated into TW


Dominique Leuenberger's avatar

without %python_subpackages in use, these python-* macros won't be translated and will be in the RPM literally as python-*



Dominique Leuenberger's avatar

that sounds noble, but imho is even more confusing.

better use %endif %dnl with setuptools


Andreas Schneider's avatar
author source maintainer

I got everything working on Tumbleweed, Leap 15.5 still fails. Help is much appreciated.


Dominique Leuenberger's avatar

as for the 15.5 test suite:

shebang of /usr/bin/meson on 15.5 is:

#!/usr/bin/python3
from mesonbuild.mesonmain import main
import sys

as such it tries to load the python modules for meson out of the default python version directories (3.6), not from the 3.11 flavor


Andreas Schneider's avatar

I'm trying to get this building for 15.5 as my dependency chain for python-mailman requires python-meson-python. However I don't get the tests working. Could someone help?

Request History
Andreas Schneider's avatar

gladiac created request

- Use sle15_python_module_pythons
- Some spec cleanup
- Added meson-test-remove-python2.patch


GNOME Review Bot's avatar

gnome-review-bot accepted review

Check script succeeded


GNOME Review Bot's avatar

gnome-review-bot approved review

Check script succeeded


Dominique Leuenberger's avatar

dimstar declined request

See comments - there should be sufficient to work on

most notably:
* the python-* requires are used literally,referencing python2
* python_moudles translates to all python flavors on TW (workaround, redefine pythons to python3)


openSUSE Build Service is sponsored by