python-numpy/numpy-buildfix.patch
Matej Cepl d36528b0ab Accepting request 861568 from home:mcalabkova:branches:devel:languages:python:Factory
- Update to 1.19.5
  * Fix memory leak of buffer-info cache due to relaxed strides
  * Set deprecated fields to null in PyArray_InitArrFuncs
  * fix np.timedelta64('nat').__format__ throwing an exception
  * more bugfixes
- Rebase numpy-buildfix.patch

OBS-URL: https://build.opensuse.org/request/show/861568
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=80
2021-01-08 12:31:29 +00:00

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)