Matej Cepl 2024-10-04 19:54:35 +00:00 committed by Git OBS Bridge
parent 22e261fa37
commit d5e8ae22ac
2 changed files with 8 additions and 4 deletions

View File

@ -103,7 +103,7 @@ sed -i '/addopts/ s/--cov-report.*--cov-report=xml//' setup.cfg
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%python_expand PYTHONPATH="%{buildroot}%{$python_sitelib} $python %{SOURCE20} %python_expand PYTHONPATH="%{buildroot}%{$python_sitelib}" $python %{SOURCE20}
export LIBROSA_DATA_DIR=$PWD/librosa-pooch-cache export LIBROSA_DATA_DIR=$PWD/librosa-pooch-cache
# image files do not match without exact mpl version # image files do not match without exact mpl version

View File

@ -4,11 +4,15 @@ import platform
import sys import sys
import numpy import numpy
import scipy import scipy
try:
import librosa import librosa
except ModuleNotFoundError:
librosa = None
print(platform.platform()) print(platform.platform())
print("Python", sys.version) print("Python", sys.version)
print("NumPy", numpy.__version__) print("NumPy", numpy.__version__)
print("SciPy", scipy.__version__) print("SciPy", scipy.__version__)
if librosa is not None:
print("librosa", librosa.__version__) print("librosa", librosa.__version__)
librosa.show_versions() librosa.show_versions()