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.

65 lines
3.2KB

  1. diff -Naur Python-3.8.0-orig/Lib/distutils/command/build_ext.py Python-3.8.0/Lib/distutils/command/build_ext.py
  2. --- Python-3.8.0-orig/Lib/distutils/command/build_ext.py 2019-10-22 10:01:56.348041100 +0300
  3. +++ Python-3.8.0/Lib/distutils/command/build_ext.py 2019-10-22 10:03:01.072554800 +0300
  4. @@ -221,9 +221,10 @@
  5. if sys.platform[:6] == 'cygwin':
  6. if sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")):
  7. # building third party extensions
  8. + config_dir_name = os.path.basename(sysconfig.get_config_var('LIBPL'))
  9. self.library_dirs.append(os.path.join(sys.prefix, "lib",
  10. "python" + get_python_version(),
  11. - "config"))
  12. + config_dir_name))
  13. else:
  14. # building python standard extensions
  15. self.library_dirs.append('.')
  16. diff -Naur Python-3.8.0-orig/Lib/sysconfig.py Python-3.8.0/Lib/sysconfig.py
  17. --- Python-3.8.0-orig/Lib/sysconfig.py 2019-10-22 10:02:59.528152100 +0300
  18. +++ Python-3.8.0/Lib/sysconfig.py 2019-10-22 10:03:01.462555500 +0300
  19. @@ -43,23 +43,23 @@
  20. 'data': '{base}',
  21. },
  22. 'nt': {
  23. - 'stdlib': '{installed_base}/Lib',
  24. - 'platstdlib': '{base}/Lib',
  25. - 'purelib': '{base}/Lib/site-packages',
  26. - 'platlib': '{base}/Lib/site-packages',
  27. - 'include': '{installed_base}/Include',
  28. - 'platinclude': '{installed_base}/Include',
  29. - 'scripts': '{base}/Scripts',
  30. + 'stdlib': '{installed_base}/lib/python{py_version_short}',
  31. + 'platstdlib': '{base}/lib/python{py_version_short}',
  32. + 'purelib': '{base}/lib/python{py_version_short}',
  33. + 'platlib': '{base}/lib/python{py_version_short}',
  34. + 'include': '{installed_base}/include/python{py_version_short}',
  35. + 'platinclude': '{installed_base}/include/python{py_version_short}',
  36. + 'scripts': '{base}/bin',
  37. 'data': '{base}',
  38. },
  39. # NOTE: When modifying "purelib" scheme, update site._get_path() too.
  40. 'nt_user': {
  41. - 'stdlib': '{userbase}/Python{py_version_nodot}',
  42. - 'platstdlib': '{userbase}/Python{py_version_nodot}',
  43. - 'purelib': '{userbase}/Python{py_version_nodot}/site-packages',
  44. - 'platlib': '{userbase}/Python{py_version_nodot}/site-packages',
  45. - 'include': '{userbase}/Python{py_version_nodot}/Include',
  46. - 'scripts': '{userbase}/Python{py_version_nodot}/Scripts',
  47. + 'stdlib': '{userbase}/lib/python{py_version_short}',
  48. + 'platstdlib': '{userbase}/lib/python{py_version_short}',
  49. + 'purelib': '{userbase}/lib/python{py_version_short}/site-packages',
  50. + 'platlib': '{userbase}/lib/python{py_version_short}/site-packages',
  51. + 'include': '{userbase}/include/python{py_version_short}',
  52. + 'scripts': '{userbase}/bin',
  53. 'data': '{userbase}',
  54. },
  55. 'posix_user': {
  56. @@ -461,7 +461,7 @@
  57. vars['INCLUDEPY'] = get_path('include')
  58. vars['EXT_SUFFIX'] = '.pyd'
  59. vars['EXE'] = '.exe'
  60. - vars['VERSION'] = _PY_VERSION_SHORT_NO_DOT
  61. + vars['VERSION'] = _PY_VERSION_SHORT
  62. vars['BINDIR'] = os.path.dirname(_safe_realpath(sys.executable))
  63. #