more special casing of stdlib modules
authorStefan Behnel <stefan_ml@behnel.de>
Sun, 4 Nov 2012 18:31:44 +0000 (19:31 +0100)
committerStefan Behnel <stefan_ml@behnel.de>
Sun, 4 Nov 2012 18:31:44 +0000 (19:31 +0100)
Tools/cystdlib.py

index 3e23350..d55d349 100644 (file)
@@ -26,13 +26,29 @@ broken = [
     'email/utils.py',
     'multiprocessing/reduction.py',
     'multiprocessing/util.py',
+    'threading.py',      # interrupt handling
 ]
 
-default_directives = dict(auto_cpdef=True)
+default_directives = dict(
+    auto_cpdef=True,
+    set_initial_path='SOURCEFILE')
+
 special_directives = [
-    (['pkgutil.py'], dict(auto_cpdef=False)),
+    (['pkgutil.py',
+      'datetime.py',
+      'optparse.py',
+      'sndhdr.py',
+      'opcode.py',
+      'ntpath.py',
+      'urllib/request.py',
+      'plat-linux/TYPES.py',
+      'tkinter/_fix.py',
+      'lib2to3/refactor.py'
+     ], dict(auto_cpdef=False)),
 ]
 
+#del special_directives[:]
+
 def build_extensions(includes='**/*.py',
                      excludes=excludes+broken,
                      special_directives=special_directives,
@@ -106,6 +122,6 @@ if __name__ == '__main__':
         pool.join()
         for ext, result in results:
             if not result:
-                print("building extension %s failed" % (ext[0],))
+                print("building extension %s failed" % (ext[0].name,))
     else:
         build(extensions)