From 641b257ba2b690ccba5157b0b14532fc760f59ec00ad5f02877ec28312479404 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Tue, 29 May 2018 08:29:51 +0000 Subject: [PATCH] Accepting request 610271 from devel:languages:python - Fix dependencies to match reality - Add more items to make python2 build OBS-URL: https://build.opensuse.org/request/show/610271 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-numba?expand=0&rev=9 --- python-numba.changes | 6 ++++++ python-numba.spec | 26 +++++++++++++++++++++----- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/python-numba.changes b/python-numba.changes index 967a406..e4292ea 100644 --- a/python-numba.changes +++ b/python-numba.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri May 18 08:06:59 UTC 2018 - tchvatal@suse.com + +- Fix dependencies to match reality +- Add more items to make python2 build + ------------------------------------------------------------------- Sat May 12 16:21:24 UTC 2018 - arun@gmx.de diff --git a/python-numba.spec b/python-numba.spec index 86bdc6f..8c2dff6 100644 --- a/python-numba.spec +++ b/python-numba.spec @@ -17,7 +17,6 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without tests Name: python-numba Version: 0.38.0 Release: 0 @@ -27,16 +26,25 @@ Group: Development/Languages/Python URL: http://numba.github.com Source: https://files.pythonhosted.org/packages/source/n/numba/numba-%{version}.tar.gz BuildRequires: %{python_module devel} -BuildRequires: %{python_module llvmlite >= 0.22} -BuildRequires: %{python_module numpy-devel >= 1.9} +BuildRequires: %{python_module llvmlite >= 0.23} +BuildRequires: %{python_module numpy-devel >= 1.10} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module scipy >= 0.16} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: python-rpm-macros -Requires: python-llvmlite >= 0.22 -Requires: python-numpy >= 1.9 +BuildRequires: python2-funcsigs +BuildRequires: python2-singledispatch +Requires: python-llvmlite >= 0.23 +Requires: python-numpy >= 1.10 +Requires: python-scipy >= 0.16 Requires(post): update-alternatives Requires(preun): update-alternatives +%ifpython2 +Requires: python2-funcsigs +Requires: python2-singledispatch +%endif %python_subpackages %description @@ -80,6 +88,14 @@ sed -i '1{\@^#!%{_bindir}/env python@d}' numba/appdirs.py %python_clone -a %{buildroot}%{_bindir}/numba %python_clone -a %{buildroot}%{_bindir}/pycc +%check +# Sadly needs 3 hours to finish in OBS run localy when updating! +#%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch} +#pushd $PYTHONPATH +#$python -Wd -m pytest numba/tests -v -rs +#popd +#} + %post %{python_install_alternative numba pycc}