2021-01-08 13:31:29 +01:00
|
|
|
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):
|
|
|
|
|
2010-09-06 11:39:05 +02:00
|
|
|
cmd._check_compiler()
|
2019-07-29 10:45:51 +02:00
|
|
|
body = textwrap.dedent("""
|
|
|
|
- int
|
|
|
|
+ void
|
|
|
|
main()
|
|
|
|
{
|
2021-01-08 13:31:29 +01:00
|
|
|
#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):
|
2019-07-29 10:45:51 +02: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)
|