2013-11-14 07:43:27 +00:00
|
|
|
--- a/numpy/distutils/command/autodist.py
|
|
|
|
+++ b/numpy/distutils/command/autodist.py
|
2020-07-25 17:27:28 +00:00
|
|
|
@@ -50,7 +50,7 @@
|
2010-09-06 09:39:05 +00:00
|
|
|
"""Return True if the C compiler is GCC 4.x."""
|
|
|
|
cmd._check_compiler()
|
2019-07-29 08:45:51 +00:00
|
|
|
body = textwrap.dedent("""
|
|
|
|
- int
|
|
|
|
+ void
|
|
|
|
main()
|
|
|
|
{
|
|
|
|
#if (! defined __GNUC__) || (__GNUC__ < 4)
|
2013-11-14 07:43:27 +00:00
|
|
|
|
|
|
|
--- a/numpy/distutils/command/install.py
|
|
|
|
+++ b/numpy/distutils/command/install.py
|
2020-07-25 17:27:28 +00:00
|
|
|
@@ -67,7 +67,7 @@
|
2019-07-29 08:45:51 +00: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)
|