diff --git a/python-librosa.changes b/python-librosa.changes index a0262a2..2b06dc1 100644 --- a/python-librosa.changes +++ b/python-librosa.changes @@ -3,6 +3,8 @@ Wed Oct 2 20:59:35 UTC 2024 - Matej Cepl - Add csr_matrix-attr-H.patch making the package compatible with the most recent version of SciPy (gh#librosa/librosa#1849). +- Add sysinfo.py to provide upstream with the required debugging + information. ------------------------------------------------------------------- Fri Sep 20 22:12:01 UTC 2024 - Matej Cepl diff --git a/python-librosa.spec b/python-librosa.spec index 362df9b..66a8ea0 100644 --- a/python-librosa.spec +++ b/python-librosa.spec @@ -30,6 +30,8 @@ Source1: librosa-create-pooch-cache.py Source2: librosa-pooch-cache.tar.gz # Static test data Source3: https://github.com/librosa/librosa-test-data/archive/%{static_test_data_commit}.tar.gz#/librosa-static-test-data-%{version}.tar.gz +# Provide information required by upstream +Source20: sysinfo.py # PATCH-FIX-UPSTREAM csr_matrix-attr-H.patch gh#librosa/librosa#1849 mcepl@suse.com # csr_matrix.H in scipy has been removed Patch0: csr_matrix-attr-H.patch @@ -101,6 +103,8 @@ sed -i '/addopts/ s/--cov-report.*--cov-report=xml//' setup.cfg %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +%python_expand PYTHONPATH="%{buildroot}%{$python_sitelib} $python %{SOURCE20} + export LIBROSA_DATA_DIR=$PWD/librosa-pooch-cache # image files do not match without exact mpl version donttest="test_display" diff --git a/sysinfo.py b/sysinfo.py new file mode 100644 index 0000000..d1b4740 --- /dev/null +++ b/sysinfo.py @@ -0,0 +1,14 @@ +#!/usr/bin/python3 + +import platform +import sys +import numpy +import scipy +import librosa + +print(platform.platform()) +print("Python", sys.version) +print("NumPy", numpy.__version__) +print("SciPy", scipy.__version__) +print("librosa", librosa.__version__) +librosa.show_versions()