1"""
2An enhanced distutils, providing support for Fortran compilers, for BLAS,
3LAPACK and other common libraries for numerical computing, and more.
4
5Public submodules are::
6
7    misc_util
8    system_info
9    cpu_info
10    log
11    exec_command
12
13For details, please see the *Packaging* and *NumPy Distutils User Guide*
14sections of the NumPy Reference Guide.
15
16For configuring the preference for and location of libraries like BLAS and
17LAPACK, and for setting include paths and similar build options, please see
18``site.cfg.example`` in the root of the NumPy repository or sdist.
19
20"""
21
22# Must import local ccompiler ASAP in order to get
23# customized CCompiler.spawn effective.
24from . import ccompiler
25from . import unixccompiler
26
27from .npy_pkg_config import *
28
29# If numpy is installed, add distutils.test()
30try:
31    from . import __config__
32    # Normally numpy is installed if the above import works, but an interrupted
33    # in-place build could also have left a __config__.py.  In that case the
34    # next import may still fail, so keep it inside the try block.
35    from numpy._pytesttester import PytestTester
36    test = PytestTester(__name__)
37    del PytestTester
38except ImportError:
39    pass
40
41
42def customized_fcompiler(plat=None, compiler=None):
43    from numpy.distutils.fcompiler import new_fcompiler
44    c = new_fcompiler(plat=plat, compiler=compiler)
45    c.customize()
46    return c
47
48def customized_ccompiler(plat=None, compiler=None, verbose=1):
49    c = ccompiler.new_compiler(plat=plat, compiler=compiler, verbose=verbose)
50    c.customize('')
51    return c
52