SILENT KILLERPanel

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


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

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
checks Directory - -
command Directory - -
fcompiler Directory - -
mingw Directory - -
tests Directory - -
__config__.py File 5143 bytes April 17 2025 13:10:58.
__init__.py File 2074 bytes April 17 2025 13:10:58.
__init__.pyi File 119 bytes April 17 2025 13:10:58.
_shell_utils.py File 2613 bytes April 17 2025 13:10:58.
armccompiler.py File 962 bytes April 17 2025 13:10:58.
ccompiler.py File 28618 bytes April 17 2025 13:10:58.
ccompiler_opt.py File 100335 bytes April 17 2025 13:10:58.
conv_template.py File 9536 bytes April 17 2025 13:10:58.
core.py File 8173 bytes April 17 2025 13:10:58.
cpuinfo.py File 22639 bytes April 17 2025 13:10:58.
exec_command.py File 10283 bytes April 17 2025 13:10:58.
extension.py File 3568 bytes April 17 2025 13:10:58.
from_template.py File 7913 bytes April 17 2025 13:10:58.
fujitsuccompiler.py File 834 bytes April 17 2025 13:10:58.
intelccompiler.py File 4234 bytes April 17 2025 13:10:58.
lib2def.py File 3630 bytes April 17 2025 13:10:58.
line_endings.py File 2032 bytes April 17 2025 13:10:58.
log.py File 2879 bytes April 17 2025 13:10:58.
mingw32ccompiler.py File 22067 bytes April 17 2025 13:10:58.
misc_util.py File 89359 bytes April 17 2025 13:10:58.
msvc9compiler.py File 2192 bytes April 17 2025 13:10:58.
msvccompiler.py File 2647 bytes April 17 2025 13:10:58.
npy_pkg_config.py File 12972 bytes April 17 2025 13:10:58.
numpy_distribution.py File 634 bytes April 17 2025 13:10:58.
pathccompiler.py File 713 bytes April 17 2025 13:10:58.
setup.py File 634 bytes April 17 2025 13:10:58.
system_info.py File 113184 bytes April 17 2025 13:10:58.
unixccompiler.py File 5426 bytes April 17 2025 13:10:58.

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

import os
from distutils.msvccompiler import MSVCCompiler as _MSVCCompiler

from .system_info import platform_bits


def _merge(old, new):
    """Concatenate two environment paths avoiding repeats.

    Here `old` is the environment string before the base class initialize
    function is called and `new` is the string after the call. The new string
    will be a fixed string if it is not obtained from the current environment,
    or the same as the old string if obtained from the same environment. The aim
    here is not to append the new string if it is already contained in the old
    string so as to limit the growth of the environment string.

    Parameters
    ----------
    old : string
        Previous environment string.
    new : string
        New environment string.

    Returns
    -------
    ret : string
        Updated environment string.

    """
    if new in old:
        return old
    if not old:
        return new

    # Neither new nor old is empty. Give old priority.
    return ';'.join([old, new])


class MSVCCompiler(_MSVCCompiler):
    def __init__(self, verbose=0, dry_run=0, force=0):
        _MSVCCompiler.__init__(self, verbose, dry_run, force)

    def initialize(self):
        # The 'lib' and 'include' variables may be overwritten
        # by MSVCCompiler.initialize, so save them for later merge.
        environ_lib = os.getenv('lib', '')
        environ_include = os.getenv('include', '')
        _MSVCCompiler.initialize(self)

        # Merge current and previous values of 'lib' and 'include'
        os.environ['lib'] = _merge(environ_lib, os.environ['lib'])
        os.environ['include'] = _merge(environ_include, os.environ['include'])

        # msvc9 building for 32 bits requires SSE2 to work around a
        # compiler bug.
        if platform_bits == 32:
            self.compile_options += ['/arch:SSE2']
            self.compile_options_debug += ['/arch:SSE2']


def lib_opts_if_msvc(build_cmd):
    """ Add flags if we are using MSVC compiler

    We can't see `build_cmd` in our scope, because we have not initialized
    the distutils build command, so use this deferred calculation to run
    when we are building the library.
    """
    if build_cmd.compiler.compiler_type != 'msvc':
        return []
    # Explicitly disable whole-program optimization.
    flags = ['/GL-']
    # Disable voltbl section for vc142 to allow link using mingw-w64; see:
    # https://github.com/matthew-brett/dll_investigation/issues/1#issuecomment-1100468171
    if build_cmd.compiler_opt.cc_test_flags(['-d2VolatileMetadata-']):
        flags.append('-d2VolatileMetadata-')
    return flags

SILENT KILLER Tool