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.

77 lines
2.8KB

  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:01:44.336020000 +0300
  3. +++ Python-3.8.0/setup.py 2019-10-22 10:01:45.428021900 +0300
  4. @@ -800,13 +800,21 @@
  5. if (self.config_h_vars.get('FLOCK_NEEDS_LIBBSD', False)):
  6. # May be necessary on AIX for flock function
  7. libs = ['bsd']
  8. - self.add(Extension('fcntl', ['fcntlmodule.c'],
  9. - libraries=libs))
  10. + if not MS_WINDOWS:
  11. + self.add(Extension('fcntl', ['fcntlmodule.c'],
  12. + libraries=libs))
  13. + else:
  14. + self.missing.append('fcntl')
  15. # pwd(3)
  16. - self.add(Extension('pwd', ['pwdmodule.c']))
  17. + if not MS_WINDOWS:
  18. + self.add(Extension('pwd', ['pwdmodule.c']))
  19. + else:
  20. + self.missing.append('pwd')
  21. # grp(3)
  22. - if not VXWORKS:
  23. + if not VXWORKS and not MS_WINDOWS:
  24. self.add(Extension('grp', ['grpmodule.c']))
  25. + else:
  26. + self.missing.append('grp')
  27. # spwd, shadow passwords
  28. if (self.config_h_vars.get('HAVE_GETSPNAM', False) or
  29. self.config_h_vars.get('HAVE_GETSPENT', False)):
  30. @@ -831,7 +839,10 @@
  31. # Lance Ellinghaus's syslog module
  32. # syslog daemon interface
  33. - self.add(Extension('syslog', ['syslogmodule.c']))
  34. + if not MS_WINDOWS:
  35. + self.add(Extension('syslog', ['syslogmodule.c']))
  36. + else:
  37. + self.missing.append('syslog')
  38. # Python interface to subinterpreter C-API.
  39. self.add(Extension('_xxsubinterpreters', ['_xxsubinterpretersmodule.c']))
  40. @@ -857,7 +868,10 @@
  41. self.add(Extension('_csv', ['_csv.c']))
  42. # POSIX subprocess module helper.
  43. - self.add(Extension('_posixsubprocess', ['_posixsubprocess.c']))
  44. + if not MS_WINDOWS:
  45. + self.add(Extension('_posixsubprocess', ['_posixsubprocess.c']))
  46. + else:
  47. + self.missing.append('_posixsubprocess')
  48. def detect_test_extensions(self):
  49. # Python C API test module
  50. @@ -1039,13 +1053,16 @@
  51. # the encryption.
  52. return
  53. - if self.compiler.find_library_file(self.lib_dirs, 'crypt'):
  54. - libs = ['crypt']
  55. - else:
  56. - libs = []
  57. + if not MS_WINDOWS:
  58. + if self.compiler.find_library_file(self.lib_dirs, 'crypt'):
  59. + libs = ['crypt']
  60. + else:
  61. + libs = []
  62. - self.add(Extension('_crypt', ['_cryptmodule.c'],
  63. - libraries=libs))
  64. + self.add(Extension('_crypt', ['_cryptmodule.c'],
  65. + libraries=libs))
  66. + else:
  67. + self.missing.append('_crypt')
  68. def detect_socket(self):
  69. # socket(2)