PHP 8.2.30
Preview: __init__.py Size: 2.03 KB
//opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/distutils/__init__.py

"""
An enhanced distutils, providing support for Fortran compilers, for BLAS,
LAPACK and other common libraries for numerical computing, and more.

Public submodules are::

    misc_util
    system_info
    cpu_info
    log
    exec_command

For details, please see the *Packaging* and *NumPy Distutils User Guide*
sections of the NumPy Reference Guide.

For configuring the preference for and location of libraries like BLAS and
LAPACK, and for setting include paths and similar build options, please see
``site.cfg.example`` in the root of the NumPy repository or sdist.

"""

import warnings

# Must import local ccompiler ASAP in order to get
# customized CCompiler.spawn effective.
from . import ccompiler
from . import unixccompiler

from .npy_pkg_config import *

warnings.warn("\n\n"
    "  `numpy.distutils` is deprecated since NumPy 1.23.0, as a result\n"
    "  of the deprecation of `distutils` itself. It will be removed for\n"
    "  Python >= 3.12. For older Python versions it will remain present.\n"
    "  It is recommended to use `setuptools < 60.0` for those Python versions.\n"
    "  For more details, see:\n"
    "    https://numpy.org/devdocs/reference/distutils_status_migration.html \n\n",
    DeprecationWarning, stacklevel=2
)
del warnings

# If numpy is installed, add distutils.test()
try:
    from . import __config__
    # Normally numpy is installed if the above import works, but an interrupted
    # in-place build could also have left a __config__.py.  In that case the
    # next import may still fail, so keep it inside the try block.
    from numpy._pytesttester import PytestTester
    test = PytestTester(__name__)
    del PytestTester
except ImportError:
    pass


def customized_fcompiler(plat=None, compiler=None):
    from numpy.distutils.fcompiler import new_fcompiler
    c = new_fcompiler(plat=plat, compiler=compiler)
    c.customize()
    return c

def customized_ccompiler(plat=None, compiler=None, verbose=1):
    c = ccompiler.new_compiler(plat=plat, compiler=compiler, verbose=verbose)
    c.customize('')
    return c

Directory Contents

Dirs: 6 × Files: 28

Name Size Perms Modified Actions
checks DIR
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
command DIR
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
fcompiler DIR
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
mingw DIR
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
tests DIR
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
962 B lrw-r--r-- 2026-01-20 13:01:48
Edit Download
27.95 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
97.98 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
9.31 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
7.98 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
22.11 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
10.04 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
3.48 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
7.73 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
834 B lrw-r--r-- 2026-01-20 13:01:48
Edit Download
4.13 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
3.54 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
1.98 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
2.81 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
21.55 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
87.26 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
2.14 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
2.58 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
12.67 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
634 B lrw-r--r-- 2026-01-20 13:01:48
Edit Download
713 B lrw-r--r-- 2026-01-20 13:01:48
Edit Download
634 B lrw-r--r-- 2026-01-20 13:01:48
Edit Download
110.53 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
5.30 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
2.55 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
5.02 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
2.03 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
119 B lrw-r--r-- 2026-01-20 13:01:48
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).