* Prepare 2.4.x for further development * Fix some leaks found via LeakSanitizer (#30756) * Synchronize 2.4.x submodules with main * missing extended precision imports * Fix weak hash function in np.isin(). (#30840) * fix infinite recursion in np.ma.flatten_structured_array... * Fix buffer overrun in CPU baseline validation (#30877) * Fix busdaycalendar's handling of a bool array weekmask.... * Fix reference leaks and NULL pointer dereferences (#30908) * fix two minor issues noticed when touching the C API setup * Test .kind not .char in np.testing.assert_equal (#30879) * fix type issues in uses if PyDataType macros * Don't use vulture 2.15, it has false positives * update openblas (#30961) event value, either use a two-tuple of (unit, num) or a 4-tuple of (unit, num, den, 1) * _add_newdoc_ufunc is now deprecated. ufunc.__doc__ = newdoc should * bool(np.array([])) and other empty arrays will now raise an error. * 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 * 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 * The “nbit” type parameter of np.number and its subtypes now defaults to typing.Any. This way, type-checkers will infer annotations such OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=194
27 lines
1.0 KiB
Diff
27 lines
1.0 KiB
Diff
Index: numpy-1.19.5/numpy/distutils/command/autodist.py
|
|
===================================================================
|
|
--- numpy-1.19.5.orig/numpy/distutils/command/autodist.py
|
|
+++ numpy-1.19.5/numpy/distutils/command/autodist.py
|
|
@@ -51,7 +51,7 @@ def check_compiler_gcc(cmd):
|
|
|
|
cmd._check_compiler()
|
|
body = textwrap.dedent("""
|
|
- int
|
|
+ void
|
|
main()
|
|
{
|
|
#if (! defined __GNUC__)
|
|
Index: numpy-1.19.5/numpy/distutils/command/install.py
|
|
===================================================================
|
|
--- numpy-1.19.5.orig/numpy/distutils/command/install.py
|
|
+++ numpy-1.19.5/numpy/distutils/command/install.py
|
|
@@ -67,7 +67,7 @@ class install(old_install):
|
|
need_rewrite = False
|
|
for l in f:
|
|
l = l.rstrip()
|
|
- if ' ' in l:
|
|
+ if ' ' in l and '%dir ' not in l:
|
|
need_rewrite = True
|
|
l = '"%s"' % (l)
|
|
lines.append(l)
|