Cross-Platform build scripts for audio plugins
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
2.3KB

  1. diff -Naur Python-3.8.0-orig/Lib/distutils/spawn.py Python-3.8.0/Lib/distutils/spawn.py
  2. --- Python-3.8.0-orig/Lib/distutils/spawn.py 2019-10-14 16:34:47.000000000 +0300
  3. +++ Python-3.8.0/Lib/distutils/spawn.py 2019-10-22 10:00:23.260677500 +0300
  4. @@ -12,6 +12,7 @@
  5. from distutils.errors import DistutilsPlatformError, DistutilsExecError
  6. from distutils.debug import DEBUG
  7. from distutils import log
  8. +from subprocess import list2cmdline
  9. def spawn(cmd, search_path=1, verbose=0, dry_run=0):
  10. """Run another program, specified as a command list 'cmd', in a new process.
  11. @@ -43,17 +44,13 @@
  12. def _nt_quote_args(args):
  13. """Quote command-line arguments for DOS/Windows conventions.
  14. - Just wraps every argument which contains blanks in double quotes, and
  15. - returns a new argument list.
  16. + Defer to subprocess module's list2cmdline as the logic is
  17. + complex. The previous implementation here failed to handle
  18. + -DG_LOG_DOMAIN="GEGL-"__FILE__ which was encountered in MSYS2
  19. + while building the gobject-introspection part of GEGL 0.3.4.
  20. """
  21. - # XXX this doesn't seem very robust to me -- but if the Windows guys
  22. - # say it'll work, I guess I'll have to accept it. (What if an arg
  23. - # contains quotes? What other magic characters, other than spaces,
  24. - # have to be escaped? Is there an escaping mechanism other than
  25. - # quoting?)
  26. for i, arg in enumerate(args):
  27. - if ' ' in arg:
  28. - args[i] = '"%s"' % arg
  29. + args[i] = list2cmdline([args[i]])
  30. return args
  31. def _spawn_nt(cmd, search_path=1, verbose=0, dry_run=0):
  32. diff -Naur Python-3.8.0-orig/setup.py Python-3.8.0/setup.py
  33. --- Python-3.8.0-orig/setup.py 2019-10-14 16:34:47.000000000 +0300
  34. +++ Python-3.8.0/setup.py 2019-10-22 10:00:23.666278200 +0300
  35. @@ -1421,11 +1421,7 @@
  36. '_sqlite/statement.c',
  37. '_sqlite/util.c', ]
  38. - sqlite_defines = []
  39. - if not MS_WINDOWS:
  40. - sqlite_defines.append(('MODULE_NAME', '"sqlite3"'))
  41. - else:
  42. - sqlite_defines.append(('MODULE_NAME', '\\"sqlite3\\"'))
  43. + sqlite_defines = [('MODULE_NAME', '"sqlite3"')]
  44. # Enable support for loadable extensions in the sqlite3 module
  45. # if --enable-loadable-sqlite-extensions configure option is used.