python-numpy/numpy-buildfix.patch
OBS User autobuild 6e2acbbf14 Accepting request 47219 from devel:languages:python
Copy from devel:languages:python/python-numpy based on submit request 47219 from user coolo

OBS-URL: https://build.opensuse.org/request/show/47219
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-numpy?expand=0&rev=9
2010-09-06 09:39:05 +00:00

27 lines
1.1 KiB
Diff

Index: numpy/distutils/command/install.py
===================================================================
--- numpy/distutils/command/install.py.orig 2010-08-04 12:53:20.000000000 +0200
+++ numpy/distutils/command/install.py 2010-09-06 10:29:18.119261319 +0200
@@ -64,7 +64,7 @@ class install(old_install):
need_rewrite = False
for l in f.readlines():
l = l.rstrip()
- if ' ' in l:
+ if ' ' in l and '%dir ' not in l:
need_rewrite = True
l = '"%s"' % (l)
lines.append(l)
Index: numpy/distutils/command/autodist.py
===================================================================
--- numpy/distutils/command/autodist.py.orig 2010-08-04 12:53:20.000000000 +0200
+++ numpy/distutils/command/autodist.py 2010-09-06 10:29:31.835385151 +0200
@@ -28,7 +28,7 @@ def check_compiler_gcc4(cmd):
"""Return True if the C compiler is GCC 4.x."""
cmd._check_compiler()
body = """
-int
+void
main()
{
#ifndef __GNUC__ && (__GNUC__ >= 4)