Пример #1
0
def try_with_lib(extralibs, **kwds):
    # at least on Gentoo Linux, readline.h doesn't compile if stdio.h is not
    # included before
    eci = ExternalCompilationInfo(
        includes = ["stdio.h", "readline/readline.h", "readline/history.h"],
        libraries = extralibs + ['readline'],
        )
    if platform.check_eci(eci):
        return eci
    else:
        return None
Пример #2
0
def test_check_eci():
    eci = ExternalCompilationInfo()
    assert rffi_platform.check_eci(eci)
    eci = ExternalCompilationInfo(libraries=['some_name_that_doesnt_exist_'])
    assert not rffi_platform.check_eci(eci)
Пример #3
0
def test_check_eci():
    eci = ExternalCompilationInfo()
    assert rffi_platform.check_eci(eci)
    eci = ExternalCompilationInfo(libraries=["some_name_that_doesnt_exist_"])
    assert not rffi_platform.check_eci(eci)