pygame / config_darwin.py

Diff from to

config_darwin.py

 
     def configure(self, incdirs, libdirs):
         incname = self.checkhead
-        libnames = self.checklib, string.lower(self.name)
+        libnames = self.checklib, self.name.lower()
         for dir in incdirs:
             path = os.path.join(dir, incname)
             if os.path.isfile(path):
                     self.lib_dir = dir
                     break
         if self.lib_dir and self.inc_dir:
-            print self.name + '        '[len(self.name):] + ': found'
+            print (self.name + '        '[len(self.name):] + ': found')
             self.found = 1
         else:
-            print self.name + '        '[len(self.name):] + ': not found'
+            print (self.name + '        '[len(self.name):] + ': not found')
 
 class FrameworkDependency(Dependency):
     def configure(self, incdirs, libdirs):
             n += 'Library/Frameworks/'
             fmwk = n + self.libs + '.framework/Versions/Current/'
             if os.path.isfile(fmwk + self.libs):
-                print 'Framework ' + self.libs + ' found'
+                print ('Framework ' + self.libs + ' found')
                 self.found = 1
                 self.inc_dir = fmwk + 'Headers'
                 self.cflags = (
                 self.origlib = self.libs
                 self.libs = ''
                 return
-        print 'Framework ' + self.libs + ' not found'
+        print ('Framework ' + self.libs + ' not found')
 
 
 class DependencyPython:
             else:
                 self.inc_dir = os.path.split(fullpath)[0]
         if self.found:
-            print self.name + '        '[len(self.name):] + ': found', self.ver
+            print (self.name + '        '[len(self.name):] + ': found', self.ver)
         else:
-            print self.name + '        '[len(self.name):] + ': not found'
+            print (self.name + '        '[len(self.name):] + ': not found')
 
 DEPS = [
     FrameworkDependency('SDL', 'SDL.h', 'libSDL', 'SDL'),
     Dependency('JPEG', 'jpeglib.h', 'libjpeg', ['jpeg']),
     Dependency('SCRAP', '','',[]),
     Dependency('PORTMIDI', 'portmidi.h', 'libportmidi', ['portmidi']),
-    Dependency('PORTTIME', 'porttime.h', 'libporttime', ['porttime']),
+    FrameworkDependency('PORTTIME', 'CoreMidi.h', 'CoreMidi', 'CoreMidi'),
 ]
 
 
 def main():
     global DEPS
 
-    print 'Hunting dependencies...'
+    print ('Hunting dependencies...')
     incdirs = ['/usr/local/include','/opt/local/include']
     libdirs = ['/usr/local/lib','/opt/local/lib']
     newconfig = []
 
 
 if __name__ == '__main__':
-    print """This is the configuration subscript for OSX Darwin.
-             Please run "config.py" for full configuration."""
+    print ("""This is the configuration subscript for OSX Darwin.
+             Please run "config.py" for full configuration.""")
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.