python-numpy/numpy-buildfix.patch

27 lines
1.1 KiB
Diff
Raw Normal View History

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)