2017-05-27 13:14:35 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-numba
|
|
|
|
#
|
2018-01-13 21:48:11 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
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
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
Name: python-numba
|
Accepting request 644953 from home:TheBlackCat:branches:devel:languages:python:numeric
- Update to Version 0.40.1
* PR #3338: Accidentally left Anton off contributor list for 0.40.0
* PR #3374: Disable OpenMP in wheel building
* PR #3376: Update 0.40.1 changelog and docs on OpenMP backend
- Update to Version 0.40.0
+ This release adds a number of major features:
* A new GPU backend: kernels for AMD GPUs can now be compiled using the ROCm
driver on Linux.
* The thread pool implementation used by Numba for automatic multithreading
is configurable to use TBB, OpenMP, or the old "workqueue" implementation.
(TBB is likely to become the preferred default in a future release.)
* New documentation on thread and fork-safety with Numba, along with overall
improvements in thread-safety.
* Experimental support for executing a block of code inside a nopython mode
function in object mode.
* Parallel loops now allow arrays as reduction variables
* CUDA improvements: FMA, faster float64 atomics on supporting hardware,
records in const memory, and improved datatime dtype support
* More NumPy functions: vander, tri, triu, tril, fill_diagonal
+ General Enhancements:
* PR #3017: Add facility to support with-contexts
* PR #3033: Add support for multidimensional CFFI arrays
* PR #3122: Add inliner to object mode pipeline
* PR #3127: Support for reductions on arrays.
* PR #3145: Support for np.fill_diagonal
* PR #3151: Keep a queue of references to last N deserialized functions. Fixes #3026
* PR #3154: Support use of list() if typeable.
* PR #3166: Objmode with-block
* PR #3179: Updates for llvmlite 0.25
* PR #3181: Support function extension in alias analysis
* PR #3189: Support literal constants in typing of object methods
* PR #3190: Support passing closures as literal values in typing
* PR #3199: Support inferring stencil index as constant in simple unary expressions
* PR #3202: Threading layer backend refactor/rewrite/reinvention!
* PR #3209: Support for np.tri, np.tril and np.triu
* PR #3211: Handle unpacking in building tuple (BUILD_TUPLE_UNPACK opcode)
* PR #3212: Support for np.vander
* PR #3227: Add NumPy 1.15 support
* PR #3272: Add MemInfo_data to runtime._nrt_python.c_helpers
* PR #3273: Refactor. Removing thread-local-storage based context nesting.
* PR #3278: compiler threadsafety lockdown
* PR #3291: Add CPU count and CFS restrictions info to numba -s.
+ CUDA Enhancements:
* PR #3152: Use cuda driver api to get best blocksize for best occupancy
* PR #3165: Add FMA intrinsic support
* PR #3172: Use float64 add Atomics, Where Available
* PR #3186: Support Records in CUDA Const Memory
* PR #3191: CUDA: fix log size
* PR #3198: Fix GPU datetime timedelta types usage
* PR #3221: Support datetime/timedelta scalar argument to a CUDA kernel.
* PR #3259: Add DeviceNDArray.view method to reinterpret data as a different type.
* PR #3310: Fix IPC handling of sliced cuda array.
+ ROCm Enhancements:
* PR #3023: Support for AMDGCN/ROCm.
* PR #3108: Add ROC info to `numba -s` output.
* PR #3176: Move ROC vectorize init to npyufunc
* PR #3177: Add auto_synchronize support to ROC stream
* PR #3178: Update ROC target documentation.
* PR #3294: Add compiler lock to ROC compilation path.
* PR #3280: Add wavebits property to the HSA Agent.
* PR #3281: Fix ds_permute types and add tests
+ Continuous Integration / Testing:
* PR #3091: Remove old recipes, switch to test config based on env var.
* PR #3094: Add higher ULP tolerance for products in complex space.
* PR #3096: Set exit on error in incremental scripts
* PR #3109: Add skip to test needing jinja2 if no jinja2.
* PR #3125: Skip cudasim only tests
* PR #3126: add slack, drop flowdock
* PR #3147: Improve error message for arg type unsupported during typing.
* PR #3128: Fix recipe/build for jetson tx2/ARM
* PR #3167: In build script activate env before installing.
* PR #3180: Add skip to broken test.
* PR #3216: Fix libcuda.so loading in some container setup
* PR #3224: Switch to new Gitter notification webhook URL and encrypt it
* PR #3235: Add 32bit Travis CI jobs
* PR #3257: This adds scipy/ipython back into windows conda test phase.
+ Fixes:
* PR #3038: Fix random integer generation to match results from NumPy.
* PR #3045: Fix #3027 - Numba reassigns sys.stdout
* PR #3059: Handler for known LoweringErrors.
* PR #3060: Adjust attribute error for NumPy functions.
* PR #3067: Abort simulator threads on exception in thread block.
* PR #3079: Implement +/-(types.boolean) Fix #2624
* PR #3080: Compute np.var and np.std correctly for complex types.
* PR #3088: Fix #3066 (array.dtype.type in prange)
* PR #3089: Fix invalid ParallelAccelerator hoisting issue.
* PR #3136: Fix #3135 (lowering error)
* PR #3137: Fix for issue3103 (race condition detection)
* PR #3142: Fix Issue #3139 (parfors reuse of reduction variable across prange blocks)
* PR #3148: Remove dead array equal @infer code
* PR #3153: Fix canonicalize_array_math typing for calls with kw args
* PR #3156: Fixes issue with missing pygments in testing and adds guards.
* PR #3168: Py37 bytes output fix.
* PR #3171: Fix #3146. Fix CFUNCTYPE void* return-type handling
* PR #3193: Fix setitem/getitem resolvers
* PR #3222: Fix #3214. Mishandling of POP_BLOCK in while True loop.
* PR #3230: Fixes liveness analysis issue in looplifting
* PR #3233: Fix return type difference for 32bit ctypes.c_void_p
* PR #3234: Fix types and layout for `np.where`.
* PR #3237: Fix DeprecationWarning about imp module
* PR #3241: Fix #3225. Normalize 0nd array to scalar in typing of indexing code.
* PR #3256: Fix #3251: Move imports of ABCs to collections.abc for Python >= 3.3
* PR #3292: Fix issue3279.
* PR #3302: Fix error due to mismatching dtype
+ Documentation Updates:
* PR #3104: Workaround for #3098 (test_optional_unpack Heisenbug)
* PR #3132: Adds an ~5 minute guide to Numba.
* PR #3194: Fix docs RE: np.random generator fork/thread safety
* PR #3242: Page with Numba talks and tutorial links
* PR #3258: Allow users to choose the type of issue they are reporting.
* PR #3260: Fixed broken link
* PR #3266: Fix cuda pointer ownership problem with user/externally allocated pointer
* PR #3269: Tweak typography with CSS
* PR #3270: Update FAQ for functions passed as arguments
* PR #3274: Update installation instructions
* PR #3275: Note pyobject and voidptr are types in docs
* PR #3288: Do not need to call parallel optimizations "experimental" anymore
* PR #3318: Tweak spacing to avoid search box wrapping onto second line
- Remove upstream-included numba-0.39.0-fix-3135.patch
OBS-URL: https://build.opensuse.org/request/show/644953
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numba?expand=0&rev=5
2018-10-26 22:02:59 +02:00
|
|
|
Version: 0.40.1
|
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
|
|
|
|
Group: Development/Languages/Python
|
2018-05-16 11:39:35 +02:00
|
|
|
URL: http://numba.github.com
|
2017-05-27 13:14:35 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/n/numba/numba-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module devel}
|
2018-07-21 10:25:28 +02:00
|
|
|
BuildRequires: %{python_module llvmlite >= 0.24}
|
2018-05-29 10:29:51 +02:00
|
|
|
BuildRequires: %{python_module numpy-devel >= 1.10}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module scipy >= 0.16}
|
2017-10-09 19:43:11 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: python-rpm-macros
|
2018-05-29 10:29:51 +02:00
|
|
|
BuildRequires: python2-funcsigs
|
|
|
|
BuildRequires: python2-singledispatch
|
2018-07-21 10:25:28 +02:00
|
|
|
Requires: python-llvmlite >= 0.24
|
2018-05-29 10:29:51 +02:00
|
|
|
Requires: python-numpy >= 1.10
|
|
|
|
Requires: python-scipy >= 0.16
|
2017-05-27 13:14:35 +02:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(preun): update-alternatives
|
2018-05-29 10:29:51 +02:00
|
|
|
%ifpython2
|
|
|
|
Requires: python2-funcsigs
|
|
|
|
Requires: python2-singledispatch
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for numba applications
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: python-devel
|
|
|
|
Requires: python-numpy-devel >= 1.7
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains files for developing applications using numba.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n numba-%{version}
|
2018-05-16 11:39:35 +02:00
|
|
|
sed -i '1{\@^#!%{_bindir}/env python@d}' numba/appdirs.py
|
2017-05-27 13:14:35 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/numba
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/pycc
|
|
|
|
|
2018-05-29 10:29:51 +02:00
|
|
|
%check
|
2018-07-28 12:45:33 +02:00
|
|
|
# # 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
|
|
|
|
# }
|
2018-05-29 10:29:51 +02:00
|
|
|
|
2017-05-27 13:14:35 +02:00
|
|
|
%post
|
|
|
|
%{python_install_alternative numba pycc}
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%python_uninstall_alternative numba
|
|
|
|
|
|
|
|
%files %{python_files}
|
2018-05-16 11:39:35 +02:00
|
|
|
%license LICENSE
|
|
|
|
%doc AUTHORS CHANGE_LOG README.rst
|
2017-05-27 13:14:35 +02:00
|
|
|
%python_alternative %{_bindir}/numba
|
|
|
|
%python_alternative %{_bindir}/pycc
|
|
|
|
%{python_sitearch}/numba/
|
|
|
|
%{python_sitearch}/numba-%{version}-py*.egg-info
|
|
|
|
%exclude %{python_sitearch}/numba/*.c
|
|
|
|
%exclude %{python_sitearch}/numba/*.h
|
|
|
|
%exclude %{python_sitearch}/numba/*/*.c
|
|
|
|
%exclude %{python_sitearch}/numba/*/*.h
|
|
|
|
|
|
|
|
%files %{python_files devel}
|
|
|
|
%{python_sitearch}/numba/*.c
|
|
|
|
%{python_sitearch}/numba/*.h
|
|
|
|
%{python_sitearch}/numba/*/*.c
|
|
|
|
%{python_sitearch}/numba/*/*.h
|
|
|
|
|
|
|
|
%changelog
|