Commit 8115a1fb authored by Stefan Behnel's avatar Stefan Behnel

whitespace

--HG--
extra : transplant_source : %09s%F6xN%DA%40%C4%2Cs%19%8C%C0%CD%25rc%ADv%D7
parent a7340e86
...@@ -582,6 +582,7 @@ def create_dependency_tree(ctx=None, quiet=False): ...@@ -582,6 +582,7 @@ def create_dependency_tree(ctx=None, quiet=False):
_dep_tree = DependencyTree(ctx, quiet=quiet) _dep_tree = DependencyTree(ctx, quiet=quiet)
return _dep_tree return _dep_tree
# This may be useful for advanced users? # This may be useful for advanced users?
def create_extension_list(patterns, exclude=[], ctx=None, aliases=None, quiet=False, exclude_failures=False): def create_extension_list(patterns, exclude=[], ctx=None, aliases=None, quiet=False, exclude_failures=False):
if not isinstance(patterns, (list, tuple)): if not isinstance(patterns, (list, tuple)):
...@@ -594,6 +595,7 @@ def create_extension_list(patterns, exclude=[], ctx=None, aliases=None, quiet=Fa ...@@ -594,6 +595,7 @@ def create_extension_list(patterns, exclude=[], ctx=None, aliases=None, quiet=Fa
exclude = [exclude] exclude = [exclude]
for pattern in exclude: for pattern in exclude:
to_exclude.update(map(os.path.abspath, extended_iglob(pattern))) to_exclude.update(map(os.path.abspath, extended_iglob(pattern)))
module_list = [] module_list = []
for pattern in patterns: for pattern in patterns:
if isinstance(pattern, str): if isinstance(pattern, str):
...@@ -616,6 +618,7 @@ def create_extension_list(patterns, exclude=[], ctx=None, aliases=None, quiet=Fa ...@@ -616,6 +618,7 @@ def create_extension_list(patterns, exclude=[], ctx=None, aliases=None, quiet=Fa
exn_type = template.__class__ exn_type = template.__class__
else: else:
raise TypeError(pattern) raise TypeError(pattern)
for file in extended_iglob(filepattern): for file in extended_iglob(filepattern):
if os.path.abspath(file) in to_exclude: if os.path.abspath(file) in to_exclude:
continue continue
...@@ -661,6 +664,7 @@ def create_extension_list(patterns, exclude=[], ctx=None, aliases=None, quiet=Fa ...@@ -661,6 +664,7 @@ def create_extension_list(patterns, exclude=[], ctx=None, aliases=None, quiet=Fa
seen.add(name) seen.add(name)
return module_list return module_list
# This is the user-exposed entry point. # This is the user-exposed entry point.
def cythonize(module_list, exclude=[], nthreads=0, aliases=None, quiet=False, force=False, def cythonize(module_list, exclude=[], nthreads=0, aliases=None, quiet=False, force=False,
exclude_failures=False, **options): exclude_failures=False, **options):
......
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