Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 532708 | Differences between
and this patch

Collapse All | Expand All

(-)a/Lib/distutils/command/build_ext.py (-1 / +2 lines)
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

Return to bug 532708