- Allow build with setuptools_scm>=7

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-matplotlib?expand=0&rev=66
This commit is contained in:
2022-11-11 11:20:37 +00:00
committed by Git OBS Bridge
parent 36eba9cdbc
commit 201c1187a5
2 changed files with 8 additions and 0 deletions

View File

@@ -248,6 +248,9 @@ find examples lib/matplotlib lib/mpl_toolkits/mplot3d -type f -name "*.py" -exec
cp %{SOURCE1} mplsetup.cfg
# The setup procedure wants certifi to download packages over https. Not applicable here.
sed -i '/"certifi>=.*"/ d' setup.py
# To make it work with setuptools_scm >= 7
# https://discourse.matplotlib.org/t/matplotlib-announce-amm-matplotlib-3-5-3/23046
sed -i 's/setuptools_scm>=4,<7/setuptools_scm>=4/' setup.py
%build
%if !%{with test}