Lines 366-372
class build_ext(Command):
Link Here
|
366 |
"'ext_modules' option must be a list of Extension instances") |
366 |
"'ext_modules' option must be a list of Extension instances") |
367 |
|
367 |
|
368 |
for i, ext in enumerate(extensions): |
368 |
for i, ext in enumerate(extensions): |
369 |
if isinstance(ext, Extension): |
369 |
# Is it an Extension instance or duck-type thereof? |
|
|
370 |
if hasattr(ext, 'define_macros'): |
370 |
continue # OK! (assume type-checking done |
371 |
continue # OK! (assume type-checking done |
371 |
# by Extension constructor) |
372 |
# by Extension constructor) |
372 |
|
373 |
|