SILENT KILLERPanel

Current Path: > > opt > cloudlinux > venv > lib > python3.11 > site-packages > numpy > distutils > tests


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/distutils/tests

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
__init__.py File 0 bytes April 17 2025 13:10:58.
test_build_ext.py File 2769 bytes April 17 2025 13:10:58.
test_ccompiler_opt.py File 28778 bytes April 17 2025 13:10:58.
test_ccompiler_opt_conf.py File 6347 bytes April 17 2025 13:10:58.
test_exec_command.py File 7395 bytes April 17 2025 13:10:58.
test_fcompiler.py File 1277 bytes April 17 2025 13:10:58.
test_fcompiler_gnu.py File 2136 bytes April 17 2025 13:10:58.
test_fcompiler_intel.py File 1058 bytes April 17 2025 13:10:58.
test_fcompiler_nagfor.py File 1102 bytes April 17 2025 13:10:58.
test_from_template.py File 1103 bytes April 17 2025 13:10:58.
test_log.py File 868 bytes April 17 2025 13:10:58.
test_mingw32ccompiler.py File 1609 bytes April 17 2025 13:10:58.
test_misc_util.py File 3218 bytes April 17 2025 13:10:58.
test_npy_pkg_config.py File 2557 bytes April 17 2025 13:10:58.
test_shell_utils.py File 2114 bytes April 17 2025 13:10:58.
test_system_info.py File 10999 bytes April 17 2025 13:10:58.

Reading File: //opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/distutils/tests/test_mingw32ccompiler.py

import shutil
import subprocess
import sys
import pytest

from numpy.distutils import mingw32ccompiler


@pytest.mark.skipif(sys.platform != 'win32', reason='win32 only test')
def test_build_import():
    '''Test the mingw32ccompiler.build_import_library, which builds a
    `python.a` from the MSVC `python.lib`
    '''

    # make sure `nm.exe` exists and supports the current python version. This
    # can get mixed up when the PATH has a 64-bit nm but the python is 32-bit
    try:
        out = subprocess.check_output(['nm.exe', '--help'])
    except FileNotFoundError:
        pytest.skip("'nm.exe' not on path, is mingw installed?")
    supported = out[out.find(b'supported targets:'):]
    if sys.maxsize < 2**32:
        if b'pe-i386' not in supported:
            raise ValueError("'nm.exe' found but it does not support 32-bit "
                             "dlls when using 32-bit python. Supported "
                             "formats: '%s'" % supported)
    elif b'pe-x86-64' not in supported:
        raise ValueError("'nm.exe' found but it does not support 64-bit "
                         "dlls when using 64-bit python. Supported "
                         "formats: '%s'" % supported)
    # Hide the import library to force a build
    has_import_lib, fullpath = mingw32ccompiler._check_for_import_lib()
    if has_import_lib: 
        shutil.move(fullpath, fullpath + '.bak')

    try: 
        # Whew, now we can actually test the function
        mingw32ccompiler.build_import_library()

    finally:
        if has_import_lib:
            shutil.move(fullpath + '.bak', fullpath)

SILENT KILLER Tool