forked from pool/python-numexpr
Compare commits
8 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 2eae3a314f | |||
| cf786769bb | |||
| aabe5c2606 | |||
| 2ac85db8fb | |||
| 553b7cd5ec | |||
| 5009c94269 | |||
| 70936695f9 | |||
| f0bcbbbf19 |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c89e930752639df040539160326d8f99a84159bbea41943ab8e960591edaaef0
|
||||
size 103563
|
||||
3
numexpr-2.14.1.tar.gz
Normal file
3
numexpr-2.14.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4be00b1086c7b7a5c32e31558122b7b80243fe098579b170967da83f3152b48b
|
||||
size 119400
|
||||
@@ -1,28 +0,0 @@
|
||||
From b35f5fcbd8447cb36268d0d344c8ef65b1912187 Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Berg <sebastianb@nvidia.com>
|
||||
Date: Wed, 8 May 2024 15:31:04 +0200
|
||||
Subject: [PATCH] MAINT: Allow building with NumPy 1.x locally
|
||||
|
||||
I have build locally without build isolation and it seems to work
|
||||
fine.
|
||||
---
|
||||
numexpr/interpreter.cpp | 6 ++++++
|
||||
1 file changed, 6 insertions(+)
|
||||
|
||||
Index: numexpr-2.10.0/numexpr/interpreter.cpp
|
||||
===================================================================
|
||||
--- numexpr-2.10.0.orig/numexpr/interpreter.cpp
|
||||
+++ numexpr-2.10.0/numexpr/interpreter.cpp
|
||||
@@ -47,6 +47,12 @@
|
||||
#define AVAILABLE(Haystack, Haystack_Len, J, Needle_Len) \
|
||||
((Haystack_Len) >= (J) + (Needle_Len))
|
||||
|
||||
+// To allow building with NumPy<2 locally define the new NumPy macros:
|
||||
+#if NPY_ABI_VERSION < 0x02000000
|
||||
+ #define PyDataType_ELSIZE(descr) ((descr)->elsize)
|
||||
+ #define PyDataType_SET_ELSIZE(descr, size) (descr)->elsize = size
|
||||
+#endif
|
||||
+
|
||||
#include "str-two-way.hpp"
|
||||
|
||||
#ifdef DEBUG
|
||||
@@ -1,3 +1,71 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 17 21:48:08 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 2.14.1:
|
||||
* Rolled back static typing support to ensure compatibiity with
|
||||
NumPy 1.26.
|
||||
* Added CI tests for NumPy 1.26
|
||||
* Numerical stability for overflow has been improved for tan /
|
||||
tanh to handle possible overflows for complex numbers.
|
||||
* Static typing support has been added, making NumExpr
|
||||
compatible with static type checkers like mypy and pyright.
|
||||
Thanks to Joren Hammudoglu (@jorenham) for the work.
|
||||
* Patch to maximum/minimum functions in order to match NumPy
|
||||
NaN handling
|
||||
* Patch to convert '+'->'|' and '*'->'&' for booleans
|
||||
* New functionality has been added:
|
||||
* Bitwise operators (and, or, not, xor): &, |, ~, ^
|
||||
* New binary arithmetic operator for floor division: //
|
||||
* New functions: signbit, hypot, copysign, nextafter, maximum,
|
||||
minimum, log2, trunc, round and sign.
|
||||
* Also enables integer outputs for integer inputs for abs,
|
||||
copy, ones_like, sign and round.
|
||||
* New wheels for Python 3.14 and 3.14t are provided.
|
||||
* Added complex counterparts for isnan/isfinite/isinf
|
||||
functions. Thanks to Luke Shaw.
|
||||
* Updated documentation for the new functions and instructions
|
||||
for adding new functions to the virtual machine. Thanks to
|
||||
Luke Shaw.
|
||||
* Fixed MKL support; it was broken in 2.12.0.
|
||||
* Added isnan/isfinite/isinf functions.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 27 04:10:48 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Update to 2.11.0:
|
||||
* Initial support for free-threaded Python 3.13t has been added.
|
||||
* Fix imaginary evaluation in the form of 1.1e1j.
|
||||
* The test suite has been modernized to use pytest instead of unittest.
|
||||
* Python 3.10 is now the minimum supported version.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 4 10:38:19 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Update to 2.10.2
|
||||
* Better support for CPUs that do not have a power of 2 number of
|
||||
cores. See #479 and #490. Thanks to @avalentino.
|
||||
* Allow numexpr to run with the multithreading package in Python.
|
||||
See PR #496. Thanks to @emmaai
|
||||
* Wheels for Python 3.13 are now provided.
|
||||
- Drop fix-test-max-threads-unset.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 12 11:14:53 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- Add upstream patch fix-test-max-threads-unset.patch
|
||||
- Remove upstreamed patch numexpr-pr485-allow-numpy1.patch
|
||||
- Update to 2.10.1:
|
||||
- The default number of 'safe' threads has been upgraded to 16
|
||||
(instead of previous 8). That means that if your CPU has > 16
|
||||
cores, the default is to use 16. You can always override this with
|
||||
the "NUMEXPR_MAX_THREADS" environment variable.
|
||||
- NumPy 1.23 is now the minimum supported.
|
||||
- Preliminary support for Python 3.13. Thanks to Karolina Surma.
|
||||
- Fix tests on nthreads detection (closes: #479). Thanks to
|
||||
@avalentino.
|
||||
- The build process has been modernized and now uses the
|
||||
pyproject.toml file for more of the configuration options.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat May 11 19:48:33 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-numexpr
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,25 +18,21 @@
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-numexpr
|
||||
Version: 2.10.0
|
||||
Version: 2.14.1
|
||||
Release: 0
|
||||
Summary: Numerical expression evaluator for NumPy
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/pydata/numexpr/
|
||||
Source: https://files.pythonhosted.org/packages/source/n/numexpr/numexpr-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM numexpr-pr485-allow-numpy1.patch gh#pydata/numexpr#485, see also comments in gh#pydata/numexpr#478
|
||||
Patch0: numexpr-pr485-allow-numpy1.patch
|
||||
BuildRequires: %{python_module devel >= 3.7}
|
||||
# Until numpy 2 is in Factory, keep allowing to build with numpy 1.x. See Patch0
|
||||
BuildRequires: %{python_module numpy-devel >= 1.19.3}
|
||||
BuildRequires: %{python_module devel >= 3.10}
|
||||
BuildRequires: %{python_module numpy-devel >= 2.0}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-numpy >= 1.19.3
|
||||
Requires: python-numpy >= 2.0
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -58,11 +54,17 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
# Remove devel files
|
||||
%{python_expand #
|
||||
find %{buildroot}%{$python_sitearch} -name *.hpp -type f -delete
|
||||
find %{buildroot}%{$python_sitearch} -name *.cpp -type f -delete
|
||||
}
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
|
||||
%check
|
||||
mkdir tester
|
||||
pushd tester
|
||||
|
||||
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
|
||||
$python -B -c "import sys;import numexpr;sys.exit(0 if numexpr.test().wasSuccessful() else 1)"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user