logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

portmidi-217-r4-python.patch (1540B)


  1. diff -Naur portmidi-a/pm_python/setup.py portmidi-b/pm_python/setup.py
  2. --- portmidi-a/pm_python/setup.py 2010-09-26 15:32:44.000000000 -0400
  3. +++ portmidi-b/pm_python/setup.py 2020-03-19 12:34:34.398365103 -0400
  4. @@ -15,12 +15,10 @@
  5. DESCRIPTION = open('README_PYTHON.txt').read()
  6. -CHANGES = open('CHANGES.txt').read()
  7. -TODO = open('TODO.txt').read()
  8. EXTRAS = {}
  9. -long_description = DESCRIPTION + CHANGES + TODO
  10. +long_description = DESCRIPTION
  11. #import sys
  12. #if "checkdocs" in sys.argv:
  13. # print long_description
  14. @@ -142,7 +140,7 @@
  15. if sys.platform == 'win32':
  16. - print "Found Win32 platform"
  17. + print("Found Win32 platform")
  18. EXTENSION = dict(
  19. ext_modules=[
  20. Extension("pyportmidi._pyportmidi", [os.path.join("pyportmidi", "_pyportmidi.pyx")],
  21. @@ -154,7 +152,7 @@
  22. ]
  23. )
  24. elif sys.platform == 'darwin':
  25. - print "Found darwin (OS X) platform"
  26. + print("Found darwin (OS X) platform")
  27. library_dirs = ["/usr/local/lib"]
  28. include_dirs = ["/usr/local/include"]
  29. EXTENSION = dict(
  30. @@ -169,11 +167,11 @@
  31. ]
  32. )
  33. else:
  34. - print "Assuming Linux platform"
  35. + print("Assuming Linux platform")
  36. EXTENSION = dict(
  37. ext_modules=[
  38. Extension("pyportmidi._pyportmidi", [os.path.join("pyportmidi", "_pyportmidi.pyx")],
  39. - library_dirs=["./linux"],
  40. + include_dirs=["../pm_common", "../porttime"],
  41. libraries = ["portmidi", "asound", "pthread"]
  42. )
  43. ]