python-numpy/numpy-1.9.0-remove-__declspec.patch
Steve Kowalik c73e3af979 - Update to 2.0.0, changes include:
* Adds support for array parameter declaration in fortran...
  * Added ``bitwise_count`` UFuncs
  * Add binding for random pyx files
  * Use AVX512-FP16 SVML content for float16 umath functions
  * allow int sequences as shape arguments in numpy.memmap
  * Add .mT attribute for arrays
  * Create complex scalars from real and imaginary parts
  * add copy parameter for api.reshape function
  * make use of locals() in a comprehension fully compatible...
  * Add array API standard v2022.12 support to numpy.array_api
  * Change string to bool conversions to be consistent with...
  * Allow np.info on non-hashable objects with a dtype
  * let zeros, empty, and empty_like accept dtype classes
  * Bump C-ABI to 2 but accept older NumPy if compiled against...
  * Use high accuracy SVML for double precision umath functions
  * expose PyUFunc_GiveFloatingpointErrors in the dtype API
  * PyObject_IsTrue and PyObject_Not error handling in setflags
  * array2string does not add signs for positive integers.
  * Vectorize np.partition and np.argpartition using AVX-512
  * Create helper for conversion to arrays
  * Add size check for threaded array assignment
  * Finalize ``fastCopyAndTranpose`` and other old C-funcs/members...
  * assert_array_less should report max violations instead of...
  * Introduce tracer for enabled CPU targets on each optimized...
  * Extend np.add ufunc to work with unicode and byte dtypes
  * Add find/rfind ufuncs for unicode and byte dtypes
  * Make ``intp`` ``ssize_t`` and introduce characters nN
  * Add isdigit/isspace/isdecimal/isnumeric ufuncs for string...
  * DType API slot for descriptor finalization before array...

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=161
2024-06-28 06:49:16 +00:00

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 = [