Commit f7bbd353 authored by Stefan Behnel's avatar Stefan Behnel

fix exclusion comparison in cythonize()

--HG--
extra : rebase_source : d7e8fd6a1d192a73dfac8c38a502dda52be14899
parent 7abc36ca
...@@ -44,9 +44,11 @@ def extended_iglob(pattern): ...@@ -44,9 +44,11 @@ def extended_iglob(pattern):
if '**/' in pattern: if '**/' in pattern:
seen = set() seen = set()
first, rest = pattern.split('**/', 1) first, rest = pattern.split('**/', 1)
if first == '': if first:
first = '.' first = glob(first+'/')
for root in glob(first + "/"): else:
first = ['']
for root in first:
for path in extended_iglob(join_path(root, rest)): for path in extended_iglob(join_path(root, rest)):
if path not in seen: if path not in seen:
seen.add(path) seen.add(path)
......
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