Commit e6017f3c authored by Robert Bradshaw's avatar Robert Bradshaw

Merge pull request #490 from Xarthisius/inc_dirs_gen

Ensure that extension's include_dirs is a list
parents 137c064f 69fe83ac
...@@ -236,6 +236,10 @@ class build_ext(_build_ext.build_ext): ...@@ -236,6 +236,10 @@ class build_ext(_build_ext.build_ext):
includes.append(i) includes.append(i)
except AttributeError: except AttributeError:
pass pass
# In case extension.include_dirs is a generator, evaluate it and keep
# result
extension.include_dirs = list(extension.include_dirs)
for i in extension.include_dirs: for i in extension.include_dirs:
if not i in includes: if not i in includes:
includes.append(i) includes.append(i)
......
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