Fix the PYTHONPATH setting
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-librosa?expand=0&rev=51
This commit is contained in:
parent
22e261fa37
commit
d5e8ae22ac
@ -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
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user