Accepting request 1117743 from home:bmwiedemann:branches:devel:languages:python:numeric

Fix random build failures
when python3.9-config from the python39-devel package would be found first

OBS-URL: https://build.opensuse.org/request/show/1117743
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-pandas?expand=0&rev=100
This commit is contained in:
Matej Cepl 2023-10-14 10:56:18 +00:00 committed by Git OBS Bridge
parent 99d77ec49e
commit be276136fd
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Oct 14 03:55:05 UTC 2023 - Bernhard Wiedemann <bwiedemann@suse.com>
- Fix random build failures
-------------------------------------------------------------------
Sat Oct 7 20:22:18 UTC 2023 - Ben Greiner <code@bnavigator.de>

View File

@ -419,7 +419,7 @@ You can install them directly through `pip3 install --user`, if needed.
%setup -q -n pandas-%{version}
%if !%{with test}
# any installed python3 will do (SLE15 python module pythons does note guarantee /usr/bin/python3)
firstpython3=$(find %{_bindir} -name 'python3*' -print -quit)
firstpython3=$(find %{_bindir} -regex '.*/python3[.0-9]*' -print -quit)
${firstpython3} generate_version.py -o _version_meson.py
sed -i "s|'python', 'generate_version.py',|'${firstpython3}', 'generate_version.py',|" meson.build
# don't require the PyPI data only tzdata package, we use the timezone RPM package