From 1b76165afb8e46985f42fbd8eda0a883bb3e790e Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 29 Oct 2012 23:47:08 +0100 Subject: [PATCH] fix exclusion comparison in cythonize() --- Cython/Build/Dependencies.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Cython/Build/Dependencies.py b/Cython/Build/Dependencies.py index e4871db..26e1e6b 100644 --- a/Cython/Build/Dependencies.py +++ b/Cython/Build/Dependencies.py @@ -44,9 +44,11 @@ def extended_iglob(pattern): if '**/' in pattern: seen = set() first, rest = pattern.split('**/', 1) - if first == '': - first = '.' - for root in glob(first + "/"): + if first: + first = glob(first+'/') + else: + first = [''] + for root in first: for path in extended_iglob(join_path(root, rest)): if path not in seen: seen.add(path) -- 2.7.4