summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2012-11-04 19:31:44 +0100
committerStefan Behnel <stefan_ml@behnel.de>2012-11-04 19:31:44 +0100
commit459e63890e3de3ed1f6fb492c057eed3a201047a (patch)
tree309b62245abe6dca277ee0bfac18572e2bf5f7ac /Tools
parentf187dd7f86dcef10a8971781aa4a0411d55b4c92 (diff)
downloadcython-459e63890e3de3ed1f6fb492c057eed3a201047a.tar.gz
more special casing of stdlib modules
Diffstat (limited to 'Tools')
-rw-r--r--Tools/cystdlib.py22
1 files changed, 19 insertions, 3 deletions
diff --git a/Tools/cystdlib.py b/Tools/cystdlib.py
index 3e233502c..d55d3491e 100644
--- a/Tools/cystdlib.py
+++ b/Tools/cystdlib.py
@@ -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)