Commit 459e6389 authored by Stefan Behnel's avatar Stefan Behnel

more special casing of stdlib modules

parent f187dd7f
...@@ -26,13 +26,29 @@ broken = [ ...@@ -26,13 +26,29 @@ broken = [
'email/utils.py', 'email/utils.py',
'multiprocessing/reduction.py', 'multiprocessing/reduction.py',
'multiprocessing/util.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 = [ 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', def build_extensions(includes='**/*.py',
excludes=excludes+broken, excludes=excludes+broken,
special_directives=special_directives, special_directives=special_directives,
...@@ -106,6 +122,6 @@ if __name__ == '__main__': ...@@ -106,6 +122,6 @@ if __name__ == '__main__':
pool.join() pool.join()
for ext, result in results: for ext, result in results:
if not result: if not result:
print("building extension %s failed" % (ext[0],)) print("building extension %s failed" % (ext[0].name,))
else: else:
build(extensions) build(extensions)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment