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.

60 lines
2.9KB

  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:36.718617400 +0300
  3. +++ Python-3.8.0/setup.py 2019-10-22 10:03:37.795019300 +0300
  4. @@ -563,7 +563,7 @@
  5. # Debian/Ubuntu multiarch support.
  6. # https://wiki.ubuntu.com/MultiarchSpec
  7. cc = sysconfig.get_config_var('CC')
  8. - tmpfile = os.path.join(self.build_temp, 'multiarch')
  9. + tmpfile = os.path.join(self.build_temp, 'multiarch').replace('\\','/')
  10. if not os.path.exists(self.build_temp):
  11. os.makedirs(self.build_temp)
  12. ret = os.system(
  13. @@ -588,7 +588,7 @@
  14. opt = ''
  15. if CROSS_COMPILING:
  16. opt = '-t' + sysconfig.get_config_var('HOST_GNU_TYPE')
  17. - tmpfile = os.path.join(self.build_temp, 'multiarch')
  18. + tmpfile = os.path.join(self.build_temp, 'multiarch').replace('\\','/')
  19. if not os.path.exists(self.build_temp):
  20. os.makedirs(self.build_temp)
  21. ret = os.system(
  22. @@ -607,7 +607,7 @@
  23. def add_cross_compiling_paths(self):
  24. cc = sysconfig.get_config_var('CC')
  25. - tmpfile = os.path.join(self.build_temp, 'ccpaths')
  26. + tmpfile = os.path.join(self.build_temp, 'ccpaths').replace('\\','/')
  27. if not os.path.exists(self.build_temp):
  28. os.makedirs(self.build_temp)
  29. ret = os.system('%s -E -v - </dev/null 2>%s 1>/dev/null' % (cc, tmpfile))
  30. @@ -915,7 +915,7 @@
  31. readline_termcap_library = ""
  32. curses_library = ""
  33. # Cannot use os.popen here in py3k.
  34. - tmpfile = os.path.join(self.build_temp, 'readline_termcap_lib')
  35. + tmpfile = os.path.join(self.build_temp, 'readline_termcap_lib').replace('\\','/')
  36. if not os.path.exists(self.build_temp):
  37. os.makedirs(self.build_temp)
  38. # Determine if readline is already linked against curses or tinfo.
  39. @@ -1869,16 +1869,16 @@
  40. cflags = sysconfig.get_config_vars('CFLAGS')[0]
  41. archs = re.findall(r'-arch\s+(\w+)', cflags)
  42. - tmpfile = os.path.join(self.build_temp, 'tk.arch')
  43. + tmpfile = os.path.join(self.build_temp, 'tk.arch').replace('\\','/')
  44. if not os.path.exists(self.build_temp):
  45. os.makedirs(self.build_temp)
  46. # Note: cannot use os.popen or subprocess here, that
  47. # requires extensions that are not available here.
  48. if is_macosx_sdk_path(F):
  49. - os.system("file %s/Tk.framework/Tk | grep 'for architecture' > %s"%(os.path.join(sysroot, F[1:]), tmpfile))
  50. + os.system("file %s/Tk.framework/Tk | grep 'for architecture' > %s"%(os.path.join(sysroot, F[1:]).replace('\\','/'), tmpfile))
  51. else:
  52. - os.system("file %s/Tk.framework/Tk | grep 'for architecture' > %s"%(F, tmpfile))
  53. + os.system("file %s/Tk.framework/Tk | grep 'for architecture' > %s"%(F.replace('\\','/'), tmpfile))
  54. with open(tmpfile) as fp:
  55. detected_archs = []