# Path: tt/distutils.py
# def get_extra_fflags():
#     fflags = []
#     fcompiler = customized_fcompiler()
#     if fcompiler.compiler_type in ('g95', 'gnu', 'gnu95'):
#         if fcompiler.get_version() >= '11':
#             fflags.append('-fallow-argument-mismatch')
#     return fflags


from numpy.distutils.misc_util import Configuration
from os.path import join
from tt.distutils import get_extra_fflags
    'tt_ksl.f90',
    'tt_diag_ksl.f90'
]


def configuration(parent_package='', top_path=None):
    expokit_src = [join(EXPM_DIR, x) for x in EXPOKIT_SRC]

    ttksl_src = [join(TTFORT_DIR, x) for x in TTKSL_SRC]
    ttksl_src.append('tt_ksl.pyf')

    fflags = get_extra_fflags()

    config = Configuration('ksl', parent_package, top_path)
    config.add_library(
        'expokit',
        sources=expokit_src,
        extra_f77_compile_args=fflags,
        extra_f90_compile_args=fflags,
    )
    config.add_extension(
        'dyn_tt',
        sources=ttksl_src,
        depends=[
            'print_lib',
            'expokit',
            'mytt',
        ],
        libraries=[
            'print_lib',

# Path: tt/distutils.py
# def get_extra_fflags():
#     fflags = []
#     fcompiler = customized_fcompiler()
#     if fcompiler.compiler_type in ('g95', 'gnu', 'gnu95'):
#         if fcompiler.get_version() >= '11':
#             fflags.append('-fallow-argument-mismatch')
#     return fflags


# Path: tt/ksl/setup.py
from numpy.distutils.misc_util import Configuration
from os.path import join
from tt.distutils import get_extra_fflags

    'tt_ksl.f90',
    'tt_diag_ksl.f90'
]


def configuration(parent_package='', top_path=None):
    expokit_src = [join(EXPM_DIR, x) for x in EXPOKIT_SRC]

    ttksl_src = [join(TTFORT_DIR, x) for x in TTKSL_SRC]
    ttksl_src.append('tt_ksl.pyf')

    fflags = get_extra_fflags()

    config = Configuration('ksl', parent_package, top_path)
    config.add_library(
        'expokit',
        sources=expokit_src,
        extra_f77_compile_args=fflags,
        extra_f90_compile_args=fflags,
    )
    config.add_extension(
        'dyn_tt',
        sources=ttksl_src,
        depends=[
            'print_lib',
            'expokit',
            'mytt',
        ],
        libraries=[
            'print_lib',

            'expokit',