- Update to 2.2.2 * New functions matvec and vecmat * Many improved annotations * Improved support for the new StringDType * Improved support for free threaded Python * Fixes for f2py ## Deprecations * _add_newdoc_ufunc is now deprecated. ufunc.__doc__ = newdoc should be used instead. ## Expired deprecations * bool(np.array([])) and other empty arrays will now raise an error. Use arr.size > 0 instead to check whether an array has no elements. ## Compatibility notes * numpy.cov now properly transposes single-row (2d array) design matrices when rowvar=False. Previously, single-row design matrices would return a scalar in this scenario, which is not correct, so this is a behavior change and an array of the appropriate shape will now be returned. ## New Features * New functions for matrix-vector and vector-matrix products * np.complexfloating[T, T] can now also be written as np.complexfloating[T] * UFuncs now support __dict__ attribute and allow overriding __doc__ (either directly or via ufunc.__dict__["__doc__"]). __dict__ can be used to also override other properties, such as __module__ or __qualname__. * The “nbit” type parameter of np.number and its subtypes now defaults to typing.Any. This way, type-checkers will infer annotations such as x: np.floating as x: np.floating[Any], even in strict mode. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=182
29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
From: toddrme2178@gmail.com
|
|
Date: 2014-09-09 04:45:00 +0000
|
|
Subject: Remove windows-specific function
|
|
Upstream: openSUSE Fix
|
|
References:
|
|
http://lists.opensuse.org/opensuse-packaging/2014-09/msg00004.html
|
|
http://lists.opensuse.org/opensuse-packaging/2014-09/msg00005.html
|
|
|
|
__declspec(thread) is a windows-specific function that is causing
|
|
spurious compiler warnings. These warnings can be safely ignored,
|
|
but are being falsely flagged as serious problems that cause the
|
|
build to fail. Since this is windows-specific, it can be
|
|
safely removed.
|
|
|
|
|
|
Index: numpy-1.24.0/numpy/core/setup_common.py
|
|
===================================================================
|
|
--- numpy-1.24.0.orig/numpy/core/setup_common.py
|
|
+++ numpy-1.24.0/numpy/core/setup_common.py
|
|
@@ -141,7 +141,7 @@ OPTIONAL_FILE_FUNCS = ["ftello", "fseeko
|
|
OPTIONAL_MISC_FUNCS = ["backtrace", "madvise"]
|
|
|
|
# variable attributes tested via "int %s a" % attribute
|
|
-OPTIONAL_VARIABLE_ATTRIBUTES = ["__thread", "__declspec(thread)"]
|
|
+OPTIONAL_VARIABLE_ATTRIBUTES = ["__thread"]
|
|
|
|
# Subset of OPTIONAL_*_FUNCS which may already have HAVE_* defined by Python.h
|
|
OPTIONAL_FUNCS_MAYBE = [
|