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): cmd._check_compiler() body = textwrap.dedent(""" - int + void main() { #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): 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)