Commit 68a4db26 authored by Robert Bradshaw's avatar Robert Bradshaw

Defensively copy include dirs list.

parent cfa48aec
...@@ -611,10 +611,10 @@ class DependencyTree(object): ...@@ -611,10 +611,10 @@ class DependencyTree(object):
# Add include_dirs to ensure that the C compiler will find the # Add include_dirs to ensure that the C compiler will find the
# "cdef extern from ..." files # "cdef extern from ..." files
if incdirs: if incdirs:
include_dirs = kwds.get('include_dirs', []) include_dirs = list(kwds.get('include_dirs', []))
for inc in incdirs: for inc in incdirs:
if inc not in include_dirs: if inc not in include_dirs:
include_dirs = include_dirs + [inc] include_dirs.append(inc)
kwds['include_dirs'] = include_dirs kwds['include_dirs'] = include_dirs
return info return info
......
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