• Min RK's avatar
    check for build_ext object in import check · daa79349
    Min RK authored
    When setuptools imports from Cython (Python 3.5),
    setuptools.command.build_ext is defined,
    but setuptools.command.build_ext has no attribute .build_ext, yet,
    causing the `_build_ext.build_ext` to fail with an AttributeError.
    
    By attempting to import the object, rather than its containing module, the check is more thorough.
    daa79349
build_ext.py 722 Bytes