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
This commit is contained in:
parent
a096cdd2c7
commit
641b257ba2
@ -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
|
||||
|
||||
|
@ -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}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user