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.

22 lines
825B

  1. diff -Naur Python-3.8.0-orig/setup.py Python-3.8.0/setup.py
  2. --- Python-3.8.0-orig/setup.py 2019-10-22 10:03:24.597396100 +0300
  3. +++ Python-3.8.0/setup.py 2019-10-22 10:03:35.002614400 +0300
  4. @@ -38,6 +38,17 @@
  5. return sys.platform
  6. +# On MSYS, os.system needs to be wrapped with sh.exe
  7. +# as otherwise all the io redirection will fail.
  8. +# Arguably, this could happen inside the real os.system
  9. +# rather than this monkey patch.
  10. +if sys.platform == "win32" and "MSYSTEM" in os.environ:
  11. + os_system = os.system
  12. + def msys_system(command):
  13. + command_in_sh = 'sh.exe -c "%s"' % command.replace("\\", "\\\\")
  14. + return os_system(command_in_sh)
  15. + os.system = msys_system
  16. +
  17. CROSS_COMPILING = ("_PYTHON_HOST_PLATFORM" in os.environ)
  18. HOST_PLATFORM = get_platform()
  19. MS_WINDOWS = (HOST_PLATFORM == 'win32')