Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-numba for openSUSE:Factory checked in at 2022-10-04 20:37:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-numba (Old) and /work/SRC/openSUSE:Factory/.python-numba.new.2275 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-numba" Tue Oct 4 20:37:58 2022 rev:34 rq:1007810 version:0.56.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-numba/python-numba.changes 2022-07-13 13:45:21.442029193 +0200 +++ /work/SRC/openSUSE:Factory/.python-numba.new.2275/python-numba.changes 2022-10-04 20:38:02.336943006 +0200 @@ -1,0 +2,15 @@ +Mon Oct 3 12:02:05 UTC 2022 - Daniel Garcia <[email protected]> + +- Update to 0.56.2 + This release continues to add new features, bug fixes and stability + improvements to Numba. Please note that this will be the last release that + has support for Python 3.7 as the next release series (Numba 0.57) will + support Python 3.11! Also note that, this will be the last release to support + linux-32 packages produced by the Numba team. + +- Remove fix-max-name-size.patch, it's included in the new version. +- Add update-tbb-backend-calls-2021.6.patch to make it compatible with the + latest tbb-devel version. +- Add fix-cli-test.patch to disable one test that fails with OBS. + +------------------------------------------------------------------- Old: ---- fix-max-name-size.patch numba-0.55.2.tar.gz New: ---- fix-cli-test.patch numba-0.56.2.tar.gz update-tbb-backend-calls-2021.6.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-numba.spec ++++++ --- /var/tmp/diff_new_pack.y2vweh/_old 2022-10-04 20:38:02.976943915 +0200 +++ /var/tmp/diff_new_pack.y2vweh/_new 2022-10-04 20:38:02.980943921 +0200 @@ -31,24 +31,25 @@ %bcond_with test %endif Name: python-numba%{psuffix} -Version: 0.55.2 +Version: 0.56.2 Release: 0 Summary: NumPy-aware optimizing compiler for Python using LLVM License: BSD-2-Clause URL: https://numba.pydata.org/ Source: https://files.pythonhosted.org/packages/source/n/numba/numba-%{version}.tar.gz -# PATCH-FIX-UPSTREAM fix-max-name-size.patch -- fix for gh#numba/numba#3876 -- from gh#numba/numba#4373 -Patch0: fix-max-name-size.patch # PATCH-FIX-OPENSUSE skip tests failing due to OBS specifics +Patch2: fix-cli-test.patch Patch3: skip-failing-tests.patch +# PATCH-FIX-OPENSUSE update-tbb-backend-calls-2021.6.patch, based on gh#numba/numba#7608 +Patch4: update-tbb-backend-calls-2021.6.patch BuildRequires: %{python_module devel >= 3.7} BuildRequires: %{python_module numpy-devel >= %{min_numpy_ver} with %python-numpy-devel < %{max_numpy_ver}} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: python-rpm-macros -BuildRequires: (tbb-devel >= 2021 with tbb-devel < 2021.6) -Requires: (python-llvmlite >= 0.38 with python-llvmlite < 0.39) +BuildRequires: (tbb-devel >= 2021) +Requires: (python-llvmlite >= 0.39 with python-llvmlite < 0.40) Requires: (python-numpy >= %{min_numpy_ver} with python-numpy < %{max_numpy_ver}) Requires(post): update-alternatives Requires(postun):update-alternatives ++++++ fix-cli-test.patch ++++++ Index: numba-0.56.2/numba/tests/test_cli.py =================================================================== --- numba-0.56.2.orig/numba/tests/test_cli.py +++ numba-0.56.2/numba/tests/test_cli.py @@ -264,6 +264,7 @@ class TestGDBCLIInfoBrokenGdbs(TestCase) self.assertIn("No such file or directory", stdout) self.assertIn(path, stdout) + @unittest.skip("Fails on type check in OBS") def test_nonsense_gdb_binary(self): # Tests that a nonsense binary specified as gdb it picked up ok env = os.environ.copy() ++++++ numba-0.55.2.tar.gz -> numba-0.56.2.tar.gz ++++++ ++++ 34916 lines of diff (skipped) ++++++ update-tbb-backend-calls-2021.6.patch ++++++ Index: numba-0.56.2/numba/np/ufunc/tbbpool.cpp =================================================================== --- numba-0.56.2.orig/numba/np/ufunc/tbbpool.cpp +++ numba-0.56.2/numba/np/ufunc/tbbpool.cpp @@ -12,6 +12,7 @@ Implement parallel vectorize workqueue o #undef _XOPEN_SOURCE #endif +#include <tbb/version.h> #include <tbb/tbb.h> #include <string.h> #include <stdio.h> @@ -27,10 +28,28 @@ Implement parallel vectorize workqueue o * from here: * https://github.com/intel/tbb/blob/2019_U5/include/tbb/tbb_stddef.h#L29 */ -#if (TBB_INTERFACE_VERSION >= 12060) || (TBB_INTERFACE_VERSION < 12010) -#error "TBB version is incompatible, 2021.1 through to 2021.5 required, i.e. 12010 <= TBB_INTERFACE_VERSION < 12060" +#if TBB_INTERFACE_VERSION < 12010 +#error "TBB version is too old, 2021 update 1, i.e. TBB_INTERFACE_VERSION >= 12010 required" #endif +static tbb::task_scheduler_handle tbb_tsh_attach() +{ +#if TBB_INTERFACE_VERSION >= 12060 + return tbb::attach(); +#else + return tbb::task_scheduler_handle::get(); +#endif +} + +static void tbb_tsh_release(tbb::task_scheduler_handle& tsh) +{ +#if TBB_INTERFACE_VERSION >= 12060 + tsh.release(); +#else + tbb::task_scheduler_handle::release(tsh); +#endif +} + #define _DEBUG 0 #define _TRACE_SPLIT 0 @@ -235,7 +254,7 @@ static void prepare_fork(void) { if (!tbb::finalize(tsh, std::nothrow)) { - tbb::task_scheduler_handle::release(tsh); + tbb_tsh_release(tsh); puts("Unable to join threads to shut down before fork(). " "This can break multithreading in child processes.\n"); } @@ -260,7 +279,7 @@ static void reset_after_fork(void) if(need_reinit_after_fork) { - tsh = tbb::task_scheduler_handle::get(); + tbb_tsh_attach(); set_main_thread(); tsh_was_initialized = true; need_reinit_after_fork = false; @@ -298,7 +317,7 @@ static void launch_threads(int count) if(count < 1) count = tbb::task_arena::automatic; - tsh = tbb::task_scheduler_handle::get(); + tsh = tbb_tsh_attach(); tsh_was_initialized = true; tg = new tbb::task_group;
