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):
_dep_tree = DependencyTree(ctx, quiet=quiet)
return _dep_tree
# This may be useful for advanced users?
def create_extension_list(patterns, exclude=[], ctx=None, aliases=None, quiet=False, exclude_failures=False):
if not isinstance(patterns, (list, tuple)):
......@@ -594,6 +595,7 @@ def create_extension_list(patterns, exclude=[], ctx=None, aliases=None, quiet=Fa
exclude = [exclude]
for pattern in exclude:
to_exclude.update(map(os.path.abspath, extended_iglob(pattern)))
module_list = []
for pattern in patterns:
if isinstance(pattern, str):
......@@ -616,6 +618,7 @@ def create_extension_list(patterns, exclude=[], ctx=None, aliases=None, quiet=Fa
exn_type = template.__class__
else:
raise TypeError(pattern)
for file in extended_iglob(filepattern):
if os.path.abspath(file) in to_exclude:
continue
......@@ -661,6 +664,7 @@ def create_extension_list(patterns, exclude=[], ctx=None, aliases=None, quiet=Fa
seen.add(name)
return module_list
# This is the user-exposed entry point.
def cythonize(module_list, exclude=[], nthreads=0, aliases=None, quiet=False, force=False,
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