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}
%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
# image files do not match without exact mpl version

View File

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