summaryrefslogtreecommitdiff
path: root/media-libs/portmidi/files/portmidi-217-r3-python.patch
blob: d4024710fa390b556cad66b993589384e5d31bf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
diff --git a/pm_python/setup.py b/pm_python/setup.py
index 14ab1c7..5b1e7c0 100644
--- a/pm_python/setup.py
+++ b/pm_python/setup.py
@@ -15,12 +15,10 @@ except ImportError:
 
 
 DESCRIPTION = open('README_PYTHON.txt').read()
-CHANGES = open('CHANGES.txt').read()
-TODO = open('TODO.txt').read()
 
 EXTRAS = {}
 
-long_description = DESCRIPTION + CHANGES + TODO
+long_description = DESCRIPTION
 #import sys
 #if "checkdocs" in sys.argv:
 #    print long_description
@@ -142,7 +140,7 @@ PACKAGEDATA.update(EXTRAS)
 
 
 if sys.platform == 'win32':
-    print "Found Win32 platform"
+    print("Found Win32 platform")
     EXTENSION = dict(
         ext_modules=[ 
             Extension("pyportmidi._pyportmidi", [os.path.join("pyportmidi", "_pyportmidi.pyx")],
@@ -154,7 +152,7 @@ if sys.platform == 'win32':
         ]
     )
 elif sys.platform == 'darwin':
-    print "Found darwin (OS X) platform"
+    print("Found darwin (OS X) platform")
     library_dirs = ["/usr/local/lib"]
     include_dirs = ["/usr/local/include"]
     EXTENSION = dict(
@@ -169,11 +167,12 @@ elif sys.platform == 'darwin':
         ]
     )
 else:
-    print "Assuming Linux platform"
+    print("Assuming Linux platform")
     EXTENSION = dict(
         ext_modules=[ 
             Extension("pyportmidi._pyportmidi", [os.path.join("pyportmidi", "_pyportmidi.pyx")],
-                      library_dirs=["./linux"],
+                      library_dirs=["../../portmidi*build"],
+                      include_dirs=["../pm_common", "../porttime"],
                       libraries = ["portmidi", "asound", "pthread"]
                       )
         ]