forked from pool/python-Cython
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=82
This commit is contained in:
committed by
Git OBS Bridge
parent
5ad2b90285
commit
49ee5a5bf0
@@ -86,14 +86,18 @@ done
|
|||||||
%fdupes %{buildroot}%{_docdir}
|
%fdupes %{buildroot}%{_docdir}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%{python_install_alternative cython} \
|
%python_install_alternative cython cythonize cygdb
|
||||||
--slave %{_bindir}/cythonize cythonize %{_bindir}/cythonize-%{python_bin_suffix} \
|
|
||||||
--slave %{_bindir}/cygdb cygdb %{_bindir}/cygdb-%{python_bin_suffix}
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%python_uninstall_alternative cython
|
%python_uninstall_alternative cython
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1140
|
||||||
|
sed -i.SLES11.SP4.bak -e 's/const char/char/' ./tests/run/cpdef_extern_func.pyx
|
||||||
|
#mv ./tests/run/cpdef_extern_func.pxd ./tests/run/cpdef_extern_func.pxd.TNT.txt
|
||||||
|
#mv ./tests/run/cpdef_extern_func.pyx ./tests/run/cpdef_extern_func.pyx.TNT.txt
|
||||||
|
#sleep 60
|
||||||
|
%endif
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
%python_exec runtests.py -vv
|
%python_exec runtests.py -vv
|
||||||
|
Reference in New Issue
Block a user