Commits

Ronald Oussoren committed 135e5c2

Fix installation problem with setuptools 3.6

Fixes #86, reported by Konstantinos Efstathiou.

Comments (0)

Files changed (44)

pyobjc-core/NEWS.txt

 
 An overview of the relevant changes in new, and older, releases.
 
+Version 3.0.1
+-------------
+
+* Issue #86: Fix installation issue with setuptools 3.6
+
 Version 3.0
 -----------
 

pyobjc-core/Tools/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-core/setup.py

 
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-Accounts/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-AddressBook/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-AppleScriptKit/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-AppleScriptObjC/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-Automator/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-CFNetwork/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-CalendarStore/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-Cocoa/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-Collaboration/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-CoreData/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-CoreLocation/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-CoreText/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-CoreWLAN/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-DictionaryServices/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-DiskArbitration/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-EventKit/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-ExceptionHandling/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-FSEvents/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-InputMethodKit/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-InstallerPlugins/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-InstantMessage/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-InterfaceBuilderKit/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-LatentSemanticMapping/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-LaunchServices/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-Message/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-OpenDirectory/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-PreferencePanes/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-PubSub/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-QTKit/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-Quartz/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-ScreenSaver/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-ScriptingBridge/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-SearchKit/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-ServerNotification/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-ServiceManagement/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-Social/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-StoreKit/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-SyncServices/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-SystemConfiguration/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-WebKit/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1
 

pyobjc-framework-XgridFoundation/pyobjc_setup.py

 class pyobjc_install_lib (install_lib.install_lib):
     def get_exclusions(self):
         result = install_lib.install_lib.get_exclusions(self)
-        for fn in install_lib._install_lib.get_outputs(self):
+        if hasattr(install_lib, '_install_lib'):
+            outputs = install_lib._install_lib.get_outputs(self)
+        else:
+            outputs = install_lib.orig.install_lib.get_outputs(self)
+
+        for fn in outputs:
             if 'PyObjCTest' in fn:
                 result[fn] = 1