2017-05-27 13:14:35 +02:00
|
|
|
#
|
2024-02-03 08:06:15 +01:00
|
|
|
# spec file for package python-numba
|
2017-05-27 13:14:35 +02:00
|
|
|
#
|
2024-02-03 08:06:15 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2017-05-27 13:14:35 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-10-27 04:31:23 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-05-27 13:14:35 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2022-01-10 18:36:04 +01:00
|
|
|
%define plainpython python
|
2023-11-21 07:59:22 +01:00
|
|
|
# upper bound is exclusive: min-numpy_ver <= numpy < max_numpy_ver
|
|
|
|
%define min_numpy_ver 1.22
|
|
|
|
%define max_numpy_ver 1.27
|
2023-01-03 19:24:04 +01:00
|
|
|
|
2024-02-22 09:26:40 +01:00
|
|
|
%{?sle15_python_module_pythons}
|
|
|
|
|
2020-04-06 10:03:09 +02:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
2023-01-03 19:24:04 +01:00
|
|
|
%if "%{flavor}" == ""
|
2020-04-06 10:03:09 +02:00
|
|
|
%define psuffix %{nil}
|
|
|
|
%bcond_with test
|
2024-02-22 09:26:40 +01:00
|
|
|
# Supported Platforms: https://numba.pydata.org/numba-doc/dev/user/installing.html#compatibility
|
|
|
|
ExclusiveArch: x86_64 %ix86 ppc64le %arm aarch64
|
|
|
|
%else
|
|
|
|
%bcond_without test
|
|
|
|
%define psuffix -%{flavor}
|
|
|
|
%if "%{flavor}" != "test-py39"
|
|
|
|
%define skip_python39 1
|
2020-04-06 10:03:09 +02:00
|
|
|
%endif
|
2024-02-22 09:26:40 +01:00
|
|
|
%if "%{flavor}" != "test-py310"
|
2023-01-03 19:24:04 +01:00
|
|
|
%define skip_python310 1
|
|
|
|
%endif
|
2024-02-22 09:26:40 +01:00
|
|
|
%if "%{flavor}" != "test-py311"
|
2023-04-12 07:54:10 +02:00
|
|
|
%define skip_python311 1
|
2023-01-03 19:24:04 +01:00
|
|
|
%endif
|
2024-02-22 09:26:40 +01:00
|
|
|
%if "%{flavor}" != "test-py312"
|
2024-02-03 08:06:15 +01:00
|
|
|
%define skip_python312 1
|
|
|
|
%endif
|
2024-02-22 09:26:40 +01:00
|
|
|
# The obs server-side interpreter cannot use lua or rpm shrink
|
|
|
|
%if "%pythons" == "" || "%pythons" == " " || "%pythons" == " " || "%pythons" == " " || "%pythons" == " " || ( "%pythons" == "python311" && 0%{?skip_python311} )
|
|
|
|
ExclusiveArch: donotbuild
|
|
|
|
%define python_module() %flavor-not-enabled-in-buildset-for-suse-%{?suse_version}
|
|
|
|
%else
|
|
|
|
# Tests fail on ppc64 big endian, not resolvable on s390x, wrong types on 32-bit. See also above compatibility list for building
|
|
|
|
ExcludeArch: s390x ppc64 %ix86 %arm
|
|
|
|
%endif
|
2023-05-26 15:36:43 +02:00
|
|
|
%endif
|
2023-01-03 19:24:04 +01:00
|
|
|
|
|
|
|
Name: python-numba%{?psuffix}
|
2024-02-03 08:06:15 +01:00
|
|
|
Version: 0.59.0
|
2017-05-27 13:14:35 +02:00
|
|
|
Release: 0
|
2018-10-27 04:31:23 +02:00
|
|
|
Summary: NumPy-aware optimizing compiler for Python using LLVM
|
2017-05-27 13:14:35 +02:00
|
|
|
License: BSD-2-Clause
|
Accepting request 880602 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 0.53.0
* Support for Python 3.9
* Function sub-typing
* Initial support for dynamic gufuncs (i.e. from @guvectorize)
* Parallel Accelerator (@njit(parallel=True) now supports
Fortran ordered arrays
* Full release notes at
https://numba.readthedocs.io/en/0.53.0/release-notes.html
- Don't unpin-llvmlite.patch. It really need to be the correct
version.
- Refresh skip-failing-tests.patch
- Add packaging-ignore-setuptools-deprecation.patch
gh#numba/numba#6837
- Add numba-pr6851-llvm-timings.patch gh#numba/numba#6851 in order
to fix 32-bit issues gh#numba/numba#6832
- Update to 0.52.0
https://numba.readthedocs.io/en/stable/release-notes.html
This release focuses on performance improvements, but also adds
some new features and contains numerous bug fixes and stability
improvements.
Highlights of core performance improvements include:
* Intel kindly sponsored research and development into producing
a new reference count pruning pass. This pass operates at the
LLVM level and can prune a number of common reference counting
patterns. This will improve performance for two primary
reasons:
- There will be less pressure on the atomic locks used to do
the reference counting.
- Removal of reference counting operations permits more
inlining and the optimisation passes can in general do more
with what is present.
(Siu Kwan Lam).
* Intel also sponsored work to improve the performance of the
numba.typed.List container, particularly in the case of
__getitem__ and iteration (Stuart Archibald).
* Superword-level parallelism vectorization is now switched on
and the optimisation pipeline has been lightly analysed and
tuned so as to be able to vectorize more and more often
(Stuart Archibald).
Highlights of core feature changes include:
* The inspect_cfg method on the JIT dispatcher object has been
significantly enhanced and now includes highlighted output and
interleaved line markers and Python source (Stuart Archibald).
* The BSD operating system is now unofficially supported (Stuart
Archibald).
* Numerous features/functionality improvements to NumPy support,
including support for:
- np.asfarray (Guilherme Leobas)
- “subtyping” in record arrays (Lucio Fernandez-Arjona)
- np.split and np.array_split (Isaac Virshup)
- operator.contains with ndarray (@mugoh).
- np.asarray_chkfinite (Rishabh Varshney).
- NumPy 1.19 (Stuart Archibald).
- the ndarray allocators, empty, ones and zeros, accepting a
dtype specified as a string literal (Stuart Archibald).
* Booleans are now supported as literal types (Alexey Kozlov).
* On the CUDA target:
* CUDA 9.0 is now the minimum supported version (Graham Markall).
* Support for Unified Memory has been added (Max Katz).
* Kernel launch overhead is reduced (Graham Markall).
* Cudasim support for mapped array, memcopies and memset has
been * added (Mike Williams).
* Access has been wired in to all libdevice functions (Graham
Markall).
* Additional CUDA atomic operations have been added (Michae
Collison).
* Additional math library functions (frexp, ldexp, isfinite)
(Zhihao * Yuan).
* Support for power on complex numbers (Graham Markall).
Deprecations to note:
* There are no new deprecations. However, note that
“compatibility” mode, which was added some 40 releases ago to
help transition from 0.11 to 0.12+, has been removed! Also,
the shim to permit the import of jitclass from Numba’s top
level namespace has now been removed as per the deprecation
schedule.
- NEP 29: Skip python36 build. Python 3.6 is dropped by NumPy 1.20
OBS-URL: https://build.opensuse.org/request/show/880602
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numba?expand=0&rev=47
2021-03-22 23:18:24 +01:00
|
|
|
URL: https://numba.pydata.org/
|
2023-01-03 08:39:21 +01:00
|
|
|
# SourceRepository: https://github.com/numba/numba
|
2017-05-27 13:14:35 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/n/numba/numba-%{version}.tar.gz
|
Accepting request 880602 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 0.53.0
* Support for Python 3.9
* Function sub-typing
* Initial support for dynamic gufuncs (i.e. from @guvectorize)
* Parallel Accelerator (@njit(parallel=True) now supports
Fortran ordered arrays
* Full release notes at
https://numba.readthedocs.io/en/0.53.0/release-notes.html
- Don't unpin-llvmlite.patch. It really need to be the correct
version.
- Refresh skip-failing-tests.patch
- Add packaging-ignore-setuptools-deprecation.patch
gh#numba/numba#6837
- Add numba-pr6851-llvm-timings.patch gh#numba/numba#6851 in order
to fix 32-bit issues gh#numba/numba#6832
- Update to 0.52.0
https://numba.readthedocs.io/en/stable/release-notes.html
This release focuses on performance improvements, but also adds
some new features and contains numerous bug fixes and stability
improvements.
Highlights of core performance improvements include:
* Intel kindly sponsored research and development into producing
a new reference count pruning pass. This pass operates at the
LLVM level and can prune a number of common reference counting
patterns. This will improve performance for two primary
reasons:
- There will be less pressure on the atomic locks used to do
the reference counting.
- Removal of reference counting operations permits more
inlining and the optimisation passes can in general do more
with what is present.
(Siu Kwan Lam).
* Intel also sponsored work to improve the performance of the
numba.typed.List container, particularly in the case of
__getitem__ and iteration (Stuart Archibald).
* Superword-level parallelism vectorization is now switched on
and the optimisation pipeline has been lightly analysed and
tuned so as to be able to vectorize more and more often
(Stuart Archibald).
Highlights of core feature changes include:
* The inspect_cfg method on the JIT dispatcher object has been
significantly enhanced and now includes highlighted output and
interleaved line markers and Python source (Stuart Archibald).
* The BSD operating system is now unofficially supported (Stuart
Archibald).
* Numerous features/functionality improvements to NumPy support,
including support for:
- np.asfarray (Guilherme Leobas)
- “subtyping” in record arrays (Lucio Fernandez-Arjona)
- np.split and np.array_split (Isaac Virshup)
- operator.contains with ndarray (@mugoh).
- np.asarray_chkfinite (Rishabh Varshney).
- NumPy 1.19 (Stuart Archibald).
- the ndarray allocators, empty, ones and zeros, accepting a
dtype specified as a string literal (Stuart Archibald).
* Booleans are now supported as literal types (Alexey Kozlov).
* On the CUDA target:
* CUDA 9.0 is now the minimum supported version (Graham Markall).
* Support for Unified Memory has been added (Max Katz).
* Kernel launch overhead is reduced (Graham Markall).
* Cudasim support for mapped array, memcopies and memset has
been * added (Mike Williams).
* Access has been wired in to all libdevice functions (Graham
Markall).
* Additional CUDA atomic operations have been added (Michae
Collison).
* Additional math library functions (frexp, ldexp, isfinite)
(Zhihao * Yuan).
* Support for power on complex numbers (Graham Markall).
Deprecations to note:
* There are no new deprecations. However, note that
“compatibility” mode, which was added some 40 releases ago to
help transition from 0.11 to 0.12+, has been removed! Also,
the shim to permit the import of jitclass from Numba’s top
level namespace has now been removed as per the deprecation
schedule.
- NEP 29: Skip python36 build. Python 3.6 is dropped by NumPy 1.20
OBS-URL: https://build.opensuse.org/request/show/880602
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numba?expand=0&rev=47
2021-03-22 23:18:24 +01:00
|
|
|
# PATCH-FIX-OPENSUSE skip tests failing due to OBS specifics
|
|
|
|
Patch3: skip-failing-tests.patch
|
2024-02-03 08:06:15 +01:00
|
|
|
BuildRequires: %{python_module devel >= 3.9}
|
2023-08-22 10:11:15 +02:00
|
|
|
BuildRequires: %{python_module numpy-devel >= %{min_numpy_ver} with %python-numpy-devel < %{max_numpy_ver}}
|
2023-01-02 15:57:02 +01:00
|
|
|
BuildRequires: %{python_module pip}
|
2023-01-03 08:39:21 +01:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2023-01-02 15:57:02 +01:00
|
|
|
BuildRequires: %{python_module wheel}
|
2017-10-09 19:43:11 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: python-rpm-macros
|
2022-10-03 15:07:28 +02:00
|
|
|
BuildRequires: (tbb-devel >= 2021)
|
2024-02-03 14:23:10 +01:00
|
|
|
Requires: (python-llvmlite >= 0.42 with python-llvmlite < 0.43)
|
2023-08-22 10:11:15 +02:00
|
|
|
Requires: (python-numpy >= %{min_numpy_ver} with python-numpy < %{max_numpy_ver})
|
2019-12-17 23:30:55 +01:00
|
|
|
Requires(post): update-alternatives
|
2024-02-03 08:06:15 +01:00
|
|
|
Requires(postun): update-alternatives
|
2019-10-24 02:59:28 +02:00
|
|
|
Recommends: python-Jinja2
|
|
|
|
Recommends: python-Pygments
|
|
|
|
Recommends: python-cffi
|
2022-01-15 14:04:10 +01:00
|
|
|
Recommends: python-scipy > 1.0
|
2019-10-24 02:59:28 +02:00
|
|
|
Recommends: python-tbb
|
2020-04-27 21:40:16 +02:00
|
|
|
%if %{with test}
|
|
|
|
BuildRequires: %{python_module Jinja2}
|
|
|
|
BuildRequires: %{python_module PyYAML}
|
|
|
|
BuildRequires: %{python_module Pygments}
|
|
|
|
BuildRequires: %{python_module cffi}
|
|
|
|
BuildRequires: %{python_module ipython}
|
2022-07-12 13:50:45 +02:00
|
|
|
BuildRequires: %{python_module numba = %{version}}
|
|
|
|
BuildRequires: %{python_module numba-devel = %{version}}
|
2020-11-03 14:11:54 +01:00
|
|
|
BuildRequires: %{python_module pip}
|
Accepting request 880602 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 0.53.0
* Support for Python 3.9
* Function sub-typing
* Initial support for dynamic gufuncs (i.e. from @guvectorize)
* Parallel Accelerator (@njit(parallel=True) now supports
Fortran ordered arrays
* Full release notes at
https://numba.readthedocs.io/en/0.53.0/release-notes.html
- Don't unpin-llvmlite.patch. It really need to be the correct
version.
- Refresh skip-failing-tests.patch
- Add packaging-ignore-setuptools-deprecation.patch
gh#numba/numba#6837
- Add numba-pr6851-llvm-timings.patch gh#numba/numba#6851 in order
to fix 32-bit issues gh#numba/numba#6832
- Update to 0.52.0
https://numba.readthedocs.io/en/stable/release-notes.html
This release focuses on performance improvements, but also adds
some new features and contains numerous bug fixes and stability
improvements.
Highlights of core performance improvements include:
* Intel kindly sponsored research and development into producing
a new reference count pruning pass. This pass operates at the
LLVM level and can prune a number of common reference counting
patterns. This will improve performance for two primary
reasons:
- There will be less pressure on the atomic locks used to do
the reference counting.
- Removal of reference counting operations permits more
inlining and the optimisation passes can in general do more
with what is present.
(Siu Kwan Lam).
* Intel also sponsored work to improve the performance of the
numba.typed.List container, particularly in the case of
__getitem__ and iteration (Stuart Archibald).
* Superword-level parallelism vectorization is now switched on
and the optimisation pipeline has been lightly analysed and
tuned so as to be able to vectorize more and more often
(Stuart Archibald).
Highlights of core feature changes include:
* The inspect_cfg method on the JIT dispatcher object has been
significantly enhanced and now includes highlighted output and
interleaved line markers and Python source (Stuart Archibald).
* The BSD operating system is now unofficially supported (Stuart
Archibald).
* Numerous features/functionality improvements to NumPy support,
including support for:
- np.asfarray (Guilherme Leobas)
- “subtyping” in record arrays (Lucio Fernandez-Arjona)
- np.split and np.array_split (Isaac Virshup)
- operator.contains with ndarray (@mugoh).
- np.asarray_chkfinite (Rishabh Varshney).
- NumPy 1.19 (Stuart Archibald).
- the ndarray allocators, empty, ones and zeros, accepting a
dtype specified as a string literal (Stuart Archibald).
* Booleans are now supported as literal types (Alexey Kozlov).
* On the CUDA target:
* CUDA 9.0 is now the minimum supported version (Graham Markall).
* Support for Unified Memory has been added (Max Katz).
* Kernel launch overhead is reduced (Graham Markall).
* Cudasim support for mapped array, memcopies and memset has
been * added (Mike Williams).
* Access has been wired in to all libdevice functions (Graham
Markall).
* Additional CUDA atomic operations have been added (Michae
Collison).
* Additional math library functions (frexp, ldexp, isfinite)
(Zhihao * Yuan).
* Support for power on complex numbers (Graham Markall).
Deprecations to note:
* There are no new deprecations. However, note that
“compatibility” mode, which was added some 40 releases ago to
help transition from 0.11 to 0.12+, has been removed! Also,
the shim to permit the import of jitclass from Numba’s top
level namespace has now been removed as per the deprecation
schedule.
- NEP 29: Skip python36 build. Python 3.6 is dropped by NumPy 1.20
OBS-URL: https://build.opensuse.org/request/show/880602
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numba?expand=0&rev=47
2021-03-22 23:18:24 +01:00
|
|
|
BuildRequires: %{python_module psutil}
|
2020-04-27 21:40:16 +02:00
|
|
|
BuildRequires: %{python_module pytest}
|
2022-01-15 14:04:10 +01:00
|
|
|
BuildRequires: %{python_module scipy >= 1.0}
|
2020-04-27 21:40:16 +02:00
|
|
|
BuildRequires: %{python_module tbb}
|
|
|
|
%endif
|
2017-05-27 13:14:35 +02:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Numba is a NumPy-aware optimizing compiler for Python. It uses the
|
|
|
|
LLVM compiler infrastructure to compile Python syntax to
|
|
|
|
machine code.
|
|
|
|
|
|
|
|
It is aware of NumPy arrays as typed memory regions and so can speed-up
|
|
|
|
code using NumPy arrays. Other, less well-typed code will be translated
|
|
|
|
to Python C-API calls, effectively removing the "interpreter", but not removing
|
|
|
|
the dynamic indirection.
|
|
|
|
|
|
|
|
Numba is also not a tracing JIT. It *compiles* your code before it gets
|
|
|
|
run, either using run-time type information or type information you provide
|
|
|
|
in the decorator.
|
|
|
|
|
|
|
|
Numba is a mechanism for producing machine code from Python syntax and typed
|
|
|
|
data structures such as those that exist in NumPy.
|
|
|
|
|
2019-10-24 02:59:28 +02:00
|
|
|
%package devel
|
2017-05-27 13:14:35 +02:00
|
|
|
Summary: Development files for numba applications
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: python-devel
|
2023-08-14 08:52:43 +02:00
|
|
|
Requires: python-numpy-devel >= %{min_numpy_ver}
|
2022-01-10 18:36:04 +01:00
|
|
|
Requires: %{plainpython}(abi) = %{python_version}
|
2017-05-27 13:14:35 +02:00
|
|
|
|
2019-10-24 02:59:28 +02:00
|
|
|
%description devel
|
2017-05-27 13:14:35 +02:00
|
|
|
This package contains files for developing applications using numba.
|
|
|
|
|
|
|
|
%prep
|
2022-01-15 14:04:10 +01:00
|
|
|
%autosetup -p1 -n numba-%{version}
|
|
|
|
sed -i -e '1{/env python/ d}' numba/misc/appdirs.py
|
2017-05-27 13:14:35 +02:00
|
|
|
|
2022-01-15 14:04:10 +01:00
|
|
|
# random timeouts in OBS
|
2020-04-06 12:03:22 +02:00
|
|
|
rm numba/tests/test_typedlist.py
|
Accepting request 880602 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 0.53.0
* Support for Python 3.9
* Function sub-typing
* Initial support for dynamic gufuncs (i.e. from @guvectorize)
* Parallel Accelerator (@njit(parallel=True) now supports
Fortran ordered arrays
* Full release notes at
https://numba.readthedocs.io/en/0.53.0/release-notes.html
- Don't unpin-llvmlite.patch. It really need to be the correct
version.
- Refresh skip-failing-tests.patch
- Add packaging-ignore-setuptools-deprecation.patch
gh#numba/numba#6837
- Add numba-pr6851-llvm-timings.patch gh#numba/numba#6851 in order
to fix 32-bit issues gh#numba/numba#6832
- Update to 0.52.0
https://numba.readthedocs.io/en/stable/release-notes.html
This release focuses on performance improvements, but also adds
some new features and contains numerous bug fixes and stability
improvements.
Highlights of core performance improvements include:
* Intel kindly sponsored research and development into producing
a new reference count pruning pass. This pass operates at the
LLVM level and can prune a number of common reference counting
patterns. This will improve performance for two primary
reasons:
- There will be less pressure on the atomic locks used to do
the reference counting.
- Removal of reference counting operations permits more
inlining and the optimisation passes can in general do more
with what is present.
(Siu Kwan Lam).
* Intel also sponsored work to improve the performance of the
numba.typed.List container, particularly in the case of
__getitem__ and iteration (Stuart Archibald).
* Superword-level parallelism vectorization is now switched on
and the optimisation pipeline has been lightly analysed and
tuned so as to be able to vectorize more and more often
(Stuart Archibald).
Highlights of core feature changes include:
* The inspect_cfg method on the JIT dispatcher object has been
significantly enhanced and now includes highlighted output and
interleaved line markers and Python source (Stuart Archibald).
* The BSD operating system is now unofficially supported (Stuart
Archibald).
* Numerous features/functionality improvements to NumPy support,
including support for:
- np.asfarray (Guilherme Leobas)
- “subtyping” in record arrays (Lucio Fernandez-Arjona)
- np.split and np.array_split (Isaac Virshup)
- operator.contains with ndarray (@mugoh).
- np.asarray_chkfinite (Rishabh Varshney).
- NumPy 1.19 (Stuart Archibald).
- the ndarray allocators, empty, ones and zeros, accepting a
dtype specified as a string literal (Stuart Archibald).
* Booleans are now supported as literal types (Alexey Kozlov).
* On the CUDA target:
* CUDA 9.0 is now the minimum supported version (Graham Markall).
* Support for Unified Memory has been added (Max Katz).
* Kernel launch overhead is reduced (Graham Markall).
* Cudasim support for mapped array, memcopies and memset has
been * added (Mike Williams).
* Access has been wired in to all libdevice functions (Graham
Markall).
* Additional CUDA atomic operations have been added (Michae
Collison).
* Additional math library functions (frexp, ldexp, isfinite)
(Zhihao * Yuan).
* Support for power on complex numbers (Graham Markall).
Deprecations to note:
* There are no new deprecations. However, note that
“compatibility” mode, which was added some 40 releases ago to
help transition from 0.11 to 0.12+, has been removed! Also,
the shim to permit the import of jitclass from Numba’s top
level namespace has now been removed as per the deprecation
schedule.
- NEP 29: Skip python36 build. Python 3.6 is dropped by NumPy 1.20
OBS-URL: https://build.opensuse.org/request/show/880602
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numba?expand=0&rev=47
2021-03-22 23:18:24 +01:00
|
|
|
# if we reduced the amount of tests too much:
|
2021-11-18 21:40:38 +01:00
|
|
|
# sed -i -e '/check_testsuite_size/ s/5000/3000/' numba/tests/test_runtests.py
|
2020-04-06 11:06:45 +02:00
|
|
|
|
2017-05-27 13:14:35 +02:00
|
|
|
%build
|
2023-01-03 08:39:21 +01:00
|
|
|
%if !%{with test}
|
2019-10-24 02:59:28 +02:00
|
|
|
export CFLAGS="%{optflags} -fPIC"
|
2023-01-02 15:57:02 +01:00
|
|
|
%pyproject_wheel
|
2023-01-03 08:39:21 +01:00
|
|
|
%endif
|
2017-05-27 13:14:35 +02:00
|
|
|
|
|
|
|
%install
|
2023-01-03 08:39:21 +01:00
|
|
|
%if !%{with test}
|
2023-01-02 15:57:02 +01:00
|
|
|
%pyproject_install
|
Accepting request 880602 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 0.53.0
* Support for Python 3.9
* Function sub-typing
* Initial support for dynamic gufuncs (i.e. from @guvectorize)
* Parallel Accelerator (@njit(parallel=True) now supports
Fortran ordered arrays
* Full release notes at
https://numba.readthedocs.io/en/0.53.0/release-notes.html
- Don't unpin-llvmlite.patch. It really need to be the correct
version.
- Refresh skip-failing-tests.patch
- Add packaging-ignore-setuptools-deprecation.patch
gh#numba/numba#6837
- Add numba-pr6851-llvm-timings.patch gh#numba/numba#6851 in order
to fix 32-bit issues gh#numba/numba#6832
- Update to 0.52.0
https://numba.readthedocs.io/en/stable/release-notes.html
This release focuses on performance improvements, but also adds
some new features and contains numerous bug fixes and stability
improvements.
Highlights of core performance improvements include:
* Intel kindly sponsored research and development into producing
a new reference count pruning pass. This pass operates at the
LLVM level and can prune a number of common reference counting
patterns. This will improve performance for two primary
reasons:
- There will be less pressure on the atomic locks used to do
the reference counting.
- Removal of reference counting operations permits more
inlining and the optimisation passes can in general do more
with what is present.
(Siu Kwan Lam).
* Intel also sponsored work to improve the performance of the
numba.typed.List container, particularly in the case of
__getitem__ and iteration (Stuart Archibald).
* Superword-level parallelism vectorization is now switched on
and the optimisation pipeline has been lightly analysed and
tuned so as to be able to vectorize more and more often
(Stuart Archibald).
Highlights of core feature changes include:
* The inspect_cfg method on the JIT dispatcher object has been
significantly enhanced and now includes highlighted output and
interleaved line markers and Python source (Stuart Archibald).
* The BSD operating system is now unofficially supported (Stuart
Archibald).
* Numerous features/functionality improvements to NumPy support,
including support for:
- np.asfarray (Guilherme Leobas)
- “subtyping” in record arrays (Lucio Fernandez-Arjona)
- np.split and np.array_split (Isaac Virshup)
- operator.contains with ndarray (@mugoh).
- np.asarray_chkfinite (Rishabh Varshney).
- NumPy 1.19 (Stuart Archibald).
- the ndarray allocators, empty, ones and zeros, accepting a
dtype specified as a string literal (Stuart Archibald).
* Booleans are now supported as literal types (Alexey Kozlov).
* On the CUDA target:
* CUDA 9.0 is now the minimum supported version (Graham Markall).
* Support for Unified Memory has been added (Max Katz).
* Kernel launch overhead is reduced (Graham Markall).
* Cudasim support for mapped array, memcopies and memset has
been * added (Mike Williams).
* Access has been wired in to all libdevice functions (Graham
Markall).
* Additional CUDA atomic operations have been added (Michae
Collison).
* Additional math library functions (frexp, ldexp, isfinite)
(Zhihao * Yuan).
* Support for power on complex numbers (Graham Markall).
Deprecations to note:
* There are no new deprecations. However, note that
“compatibility” mode, which was added some 40 releases ago to
help transition from 0.11 to 0.12+, has been removed! Also,
the shim to permit the import of jitclass from Numba’s top
level namespace has now been removed as per the deprecation
schedule.
- NEP 29: Skip python36 build. Python 3.6 is dropped by NumPy 1.20
OBS-URL: https://build.opensuse.org/request/show/880602
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numba?expand=0&rev=47
2021-03-22 23:18:24 +01:00
|
|
|
%{python_expand #
|
|
|
|
%fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
find %{buildroot}%{$python_sitearch} -name '*.[ch]' > devel-files0-%{$python_bin_suffix}.files
|
|
|
|
sed 's|^%{buildroot}||' devel-files0-%{$python_bin_suffix}.files > devel-files-%{$python_bin_suffix}.files
|
|
|
|
sed 's|^%{buildroot}|%%exclude |' devel-files0-%{$python_bin_suffix}.files > devel-files-exclude-%{$python_bin_suffix}.files
|
|
|
|
}
|
2017-05-27 13:14:35 +02:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/numba
|
2023-01-03 08:39:21 +01:00
|
|
|
%endif
|
2017-05-27 13:14:35 +02:00
|
|
|
|
2018-05-29 10:29:51 +02:00
|
|
|
%check
|
2020-04-06 10:03:09 +02:00
|
|
|
%if %{with test}
|
2022-01-15 14:04:10 +01:00
|
|
|
# test the installed package, not the source without compiled modules
|
2022-10-10 14:53:04 +02:00
|
|
|
mkdir emptytestdir
|
|
|
|
pushd emptytestdir
|
2022-01-15 14:04:10 +01:00
|
|
|
%{python_expand # numbatests: check specific tests with `osc build -M test --define="numbatests <testnames>"`
|
2023-01-03 08:39:21 +01:00
|
|
|
%{_bindir}/numba-%%{$python_bin_suffix} -s
|
|
|
|
$python -m numba.runtests -v -b --exclude-tags='long_running' -m %{_smp_build_ncpus} -- %{?!numbatests:numba.tests}%{?numbatests}
|
2019-03-20 11:23:52 +01:00
|
|
|
}
|
2022-01-15 14:04:10 +01:00
|
|
|
popd
|
2020-04-06 10:03:09 +02:00
|
|
|
%endif
|
2018-05-29 10:29:51 +02:00
|
|
|
|
2020-04-06 10:03:09 +02:00
|
|
|
%if !%{with test}
|
2017-05-27 13:14:35 +02:00
|
|
|
%post
|
2023-05-26 15:36:43 +02:00
|
|
|
%python_install_alternative numba
|
2017-05-27 13:14:35 +02:00
|
|
|
|
2021-11-18 21:40:38 +01:00
|
|
|
%postun
|
2017-05-27 13:14:35 +02:00
|
|
|
%python_uninstall_alternative numba
|
|
|
|
|
Accepting request 880602 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 0.53.0
* Support for Python 3.9
* Function sub-typing
* Initial support for dynamic gufuncs (i.e. from @guvectorize)
* Parallel Accelerator (@njit(parallel=True) now supports
Fortran ordered arrays
* Full release notes at
https://numba.readthedocs.io/en/0.53.0/release-notes.html
- Don't unpin-llvmlite.patch. It really need to be the correct
version.
- Refresh skip-failing-tests.patch
- Add packaging-ignore-setuptools-deprecation.patch
gh#numba/numba#6837
- Add numba-pr6851-llvm-timings.patch gh#numba/numba#6851 in order
to fix 32-bit issues gh#numba/numba#6832
- Update to 0.52.0
https://numba.readthedocs.io/en/stable/release-notes.html
This release focuses on performance improvements, but also adds
some new features and contains numerous bug fixes and stability
improvements.
Highlights of core performance improvements include:
* Intel kindly sponsored research and development into producing
a new reference count pruning pass. This pass operates at the
LLVM level and can prune a number of common reference counting
patterns. This will improve performance for two primary
reasons:
- There will be less pressure on the atomic locks used to do
the reference counting.
- Removal of reference counting operations permits more
inlining and the optimisation passes can in general do more
with what is present.
(Siu Kwan Lam).
* Intel also sponsored work to improve the performance of the
numba.typed.List container, particularly in the case of
__getitem__ and iteration (Stuart Archibald).
* Superword-level parallelism vectorization is now switched on
and the optimisation pipeline has been lightly analysed and
tuned so as to be able to vectorize more and more often
(Stuart Archibald).
Highlights of core feature changes include:
* The inspect_cfg method on the JIT dispatcher object has been
significantly enhanced and now includes highlighted output and
interleaved line markers and Python source (Stuart Archibald).
* The BSD operating system is now unofficially supported (Stuart
Archibald).
* Numerous features/functionality improvements to NumPy support,
including support for:
- np.asfarray (Guilherme Leobas)
- “subtyping” in record arrays (Lucio Fernandez-Arjona)
- np.split and np.array_split (Isaac Virshup)
- operator.contains with ndarray (@mugoh).
- np.asarray_chkfinite (Rishabh Varshney).
- NumPy 1.19 (Stuart Archibald).
- the ndarray allocators, empty, ones and zeros, accepting a
dtype specified as a string literal (Stuart Archibald).
* Booleans are now supported as literal types (Alexey Kozlov).
* On the CUDA target:
* CUDA 9.0 is now the minimum supported version (Graham Markall).
* Support for Unified Memory has been added (Max Katz).
* Kernel launch overhead is reduced (Graham Markall).
* Cudasim support for mapped array, memcopies and memset has
been * added (Mike Williams).
* Access has been wired in to all libdevice functions (Graham
Markall).
* Additional CUDA atomic operations have been added (Michae
Collison).
* Additional math library functions (frexp, ldexp, isfinite)
(Zhihao * Yuan).
* Support for power on complex numbers (Graham Markall).
Deprecations to note:
* There are no new deprecations. However, note that
“compatibility” mode, which was added some 40 releases ago to
help transition from 0.11 to 0.12+, has been removed! Also,
the shim to permit the import of jitclass from Numba’s top
level namespace has now been removed as per the deprecation
schedule.
- NEP 29: Skip python36 build. Python 3.6 is dropped by NumPy 1.20
OBS-URL: https://build.opensuse.org/request/show/880602
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numba?expand=0&rev=47
2021-03-22 23:18:24 +01:00
|
|
|
%files %{python_files} -f devel-files-exclude-%{python_bin_suffix}.files
|
2018-05-16 11:39:35 +02:00
|
|
|
%license LICENSE
|
2020-04-27 21:40:16 +02:00
|
|
|
%doc CHANGE_LOG README.rst
|
2017-05-27 13:14:35 +02:00
|
|
|
%python_alternative %{_bindir}/numba
|
|
|
|
%{python_sitearch}/numba/
|
2023-01-03 08:39:21 +01:00
|
|
|
%{python_sitearch}/numba-%{version}.dist-info
|
Accepting request 880602 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 0.53.0
* Support for Python 3.9
* Function sub-typing
* Initial support for dynamic gufuncs (i.e. from @guvectorize)
* Parallel Accelerator (@njit(parallel=True) now supports
Fortran ordered arrays
* Full release notes at
https://numba.readthedocs.io/en/0.53.0/release-notes.html
- Don't unpin-llvmlite.patch. It really need to be the correct
version.
- Refresh skip-failing-tests.patch
- Add packaging-ignore-setuptools-deprecation.patch
gh#numba/numba#6837
- Add numba-pr6851-llvm-timings.patch gh#numba/numba#6851 in order
to fix 32-bit issues gh#numba/numba#6832
- Update to 0.52.0
https://numba.readthedocs.io/en/stable/release-notes.html
This release focuses on performance improvements, but also adds
some new features and contains numerous bug fixes and stability
improvements.
Highlights of core performance improvements include:
* Intel kindly sponsored research and development into producing
a new reference count pruning pass. This pass operates at the
LLVM level and can prune a number of common reference counting
patterns. This will improve performance for two primary
reasons:
- There will be less pressure on the atomic locks used to do
the reference counting.
- Removal of reference counting operations permits more
inlining and the optimisation passes can in general do more
with what is present.
(Siu Kwan Lam).
* Intel also sponsored work to improve the performance of the
numba.typed.List container, particularly in the case of
__getitem__ and iteration (Stuart Archibald).
* Superword-level parallelism vectorization is now switched on
and the optimisation pipeline has been lightly analysed and
tuned so as to be able to vectorize more and more often
(Stuart Archibald).
Highlights of core feature changes include:
* The inspect_cfg method on the JIT dispatcher object has been
significantly enhanced and now includes highlighted output and
interleaved line markers and Python source (Stuart Archibald).
* The BSD operating system is now unofficially supported (Stuart
Archibald).
* Numerous features/functionality improvements to NumPy support,
including support for:
- np.asfarray (Guilherme Leobas)
- “subtyping” in record arrays (Lucio Fernandez-Arjona)
- np.split and np.array_split (Isaac Virshup)
- operator.contains with ndarray (@mugoh).
- np.asarray_chkfinite (Rishabh Varshney).
- NumPy 1.19 (Stuart Archibald).
- the ndarray allocators, empty, ones and zeros, accepting a
dtype specified as a string literal (Stuart Archibald).
* Booleans are now supported as literal types (Alexey Kozlov).
* On the CUDA target:
* CUDA 9.0 is now the minimum supported version (Graham Markall).
* Support for Unified Memory has been added (Max Katz).
* Kernel launch overhead is reduced (Graham Markall).
* Cudasim support for mapped array, memcopies and memset has
been * added (Mike Williams).
* Access has been wired in to all libdevice functions (Graham
Markall).
* Additional CUDA atomic operations have been added (Michae
Collison).
* Additional math library functions (frexp, ldexp, isfinite)
(Zhihao * Yuan).
* Support for power on complex numbers (Graham Markall).
Deprecations to note:
* There are no new deprecations. However, note that
“compatibility” mode, which was added some 40 releases ago to
help transition from 0.11 to 0.12+, has been removed! Also,
the shim to permit the import of jitclass from Numba’s top
level namespace has now been removed as per the deprecation
schedule.
- NEP 29: Skip python36 build. Python 3.6 is dropped by NumPy 1.20
OBS-URL: https://build.opensuse.org/request/show/880602
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numba?expand=0&rev=47
2021-03-22 23:18:24 +01:00
|
|
|
|
2022-10-10 14:53:04 +02:00
|
|
|
%files %{python_files devel} -f devel-files-%{python_bin_suffix}.files
|
Accepting request 880602 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 0.53.0
* Support for Python 3.9
* Function sub-typing
* Initial support for dynamic gufuncs (i.e. from @guvectorize)
* Parallel Accelerator (@njit(parallel=True) now supports
Fortran ordered arrays
* Full release notes at
https://numba.readthedocs.io/en/0.53.0/release-notes.html
- Don't unpin-llvmlite.patch. It really need to be the correct
version.
- Refresh skip-failing-tests.patch
- Add packaging-ignore-setuptools-deprecation.patch
gh#numba/numba#6837
- Add numba-pr6851-llvm-timings.patch gh#numba/numba#6851 in order
to fix 32-bit issues gh#numba/numba#6832
- Update to 0.52.0
https://numba.readthedocs.io/en/stable/release-notes.html
This release focuses on performance improvements, but also adds
some new features and contains numerous bug fixes and stability
improvements.
Highlights of core performance improvements include:
* Intel kindly sponsored research and development into producing
a new reference count pruning pass. This pass operates at the
LLVM level and can prune a number of common reference counting
patterns. This will improve performance for two primary
reasons:
- There will be less pressure on the atomic locks used to do
the reference counting.
- Removal of reference counting operations permits more
inlining and the optimisation passes can in general do more
with what is present.
(Siu Kwan Lam).
* Intel also sponsored work to improve the performance of the
numba.typed.List container, particularly in the case of
__getitem__ and iteration (Stuart Archibald).
* Superword-level parallelism vectorization is now switched on
and the optimisation pipeline has been lightly analysed and
tuned so as to be able to vectorize more and more often
(Stuart Archibald).
Highlights of core feature changes include:
* The inspect_cfg method on the JIT dispatcher object has been
significantly enhanced and now includes highlighted output and
interleaved line markers and Python source (Stuart Archibald).
* The BSD operating system is now unofficially supported (Stuart
Archibald).
* Numerous features/functionality improvements to NumPy support,
including support for:
- np.asfarray (Guilherme Leobas)
- “subtyping” in record arrays (Lucio Fernandez-Arjona)
- np.split and np.array_split (Isaac Virshup)
- operator.contains with ndarray (@mugoh).
- np.asarray_chkfinite (Rishabh Varshney).
- NumPy 1.19 (Stuart Archibald).
- the ndarray allocators, empty, ones and zeros, accepting a
dtype specified as a string literal (Stuart Archibald).
* Booleans are now supported as literal types (Alexey Kozlov).
* On the CUDA target:
* CUDA 9.0 is now the minimum supported version (Graham Markall).
* Support for Unified Memory has been added (Max Katz).
* Kernel launch overhead is reduced (Graham Markall).
* Cudasim support for mapped array, memcopies and memset has
been * added (Mike Williams).
* Access has been wired in to all libdevice functions (Graham
Markall).
* Additional CUDA atomic operations have been added (Michae
Collison).
* Additional math library functions (frexp, ldexp, isfinite)
(Zhihao * Yuan).
* Support for power on complex numbers (Graham Markall).
Deprecations to note:
* There are no new deprecations. However, note that
“compatibility” mode, which was added some 40 releases ago to
help transition from 0.11 to 0.12+, has been removed! Also,
the shim to permit the import of jitclass from Numba’s top
level namespace has now been removed as per the deprecation
schedule.
- NEP 29: Skip python36 build. Python 3.6 is dropped by NumPy 1.20
OBS-URL: https://build.opensuse.org/request/show/880602
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numba?expand=0&rev=47
2021-03-22 23:18:24 +01:00
|
|
|
%license LICENSE
|
2020-04-06 10:03:09 +02:00
|
|
|
%endif
|
2017-05-27 13:14:35 +02:00
|
|
|
|
|
|
|
%changelog
|