2013-11-14 08:43:27 +01:00
|
|
|
--- a/numpy/distutils/command/autodist.py
|
|
|
|
+++ b/numpy/distutils/command/autodist.py
|
2017-10-07 17:47:16 +02:00
|
|
|
@@ -49,7 +49,7 @@
|
2010-09-06 11:39:05 +02:00
|
|
|
"""Return True if the C compiler is GCC 4.x."""
|
|
|
|
cmd._check_compiler()
|
|
|
|
body = """
|
|
|
|
-int
|
|
|
|
+void
|
|
|
|
main()
|
|
|
|
{
|
2014-09-10 17:02:05 +02:00
|
|
|
#if (! defined __GNUC__) || (__GNUC__ < 4)
|
2013-11-14 08:43:27 +01:00
|
|
|
|
|
|
|
--- a/numpy/distutils/command/install.py
|
|
|
|
+++ b/numpy/distutils/command/install.py
|
2014-09-10 17:02:05 +02:00
|
|
|
@@ -69,7 +69,7 @@
|
2013-11-14 08:43:27 +01:00
|
|
|
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)
|