SILENT KILLERPanel

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


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//fcompiler

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
__init__.py File 40625 bytes April 17 2025 13:10:58.
absoft.py File 5516 bytes April 17 2025 13:10:58.
arm.py File 2090 bytes April 17 2025 13:10:58.
compaq.py File 3903 bytes April 17 2025 13:10:58.
environment.py File 3080 bytes April 17 2025 13:10:58.
fujitsu.py File 1333 bytes April 17 2025 13:10:58.
g95.py File 1330 bytes April 17 2025 13:10:58.
gnu.py File 20502 bytes April 17 2025 13:10:58.
hpux.py File 1353 bytes April 17 2025 13:10:58.
ibm.py File 3534 bytes April 17 2025 13:10:58.
intel.py File 6570 bytes April 17 2025 13:10:58.
lahey.py File 1327 bytes April 17 2025 13:10:58.
mips.py File 1714 bytes April 17 2025 13:10:58.
nag.py File 2777 bytes April 17 2025 13:10:58.
none.py File 758 bytes April 17 2025 13:10:58.
nv.py File 1560 bytes April 17 2025 13:10:58.
pathf95.py File 1061 bytes April 17 2025 13:10:58.
pg.py File 3568 bytes April 17 2025 13:10:58.
sun.py File 1577 bytes April 17 2025 13:10:58.
vast.py File 1667 bytes April 17 2025 13:10:58.

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

import os
from distutils.dist import Distribution

__metaclass__ = type

class EnvironmentConfig:
    def __init__(self, distutils_section='ALL', **kw):
        self._distutils_section = distutils_section
        self._conf_keys = kw
        self._conf = None
        self._hook_handler = None

    def dump_variable(self, name):
        conf_desc = self._conf_keys[name]
        hook, envvar, confvar, convert, append = conf_desc
        if not convert:
            convert = lambda x : x
        print('%s.%s:' % (self._distutils_section, name))
        v = self._hook_handler(name, hook)
        print('  hook   : %s' % (convert(v),))
        if envvar:
            v = os.environ.get(envvar, None)
            print('  environ: %s' % (convert(v),))
        if confvar and self._conf:
            v = self._conf.get(confvar, (None, None))[1]
            print('  config : %s' % (convert(v),))

    def dump_variables(self):
        for name in self._conf_keys:
            self.dump_variable(name)

    def __getattr__(self, name):
        try:
            conf_desc = self._conf_keys[name]
        except KeyError:
            raise AttributeError(
                f"'EnvironmentConfig' object has no attribute '{name}'"
            ) from None

        return self._get_var(name, conf_desc)

    def get(self, name, default=None):
        try:
            conf_desc = self._conf_keys[name]
        except KeyError:
            return default
        var = self._get_var(name, conf_desc)
        if var is None:
            var = default
        return var

    def _get_var(self, name, conf_desc):
        hook, envvar, confvar, convert, append = conf_desc
        if convert is None:
            convert = lambda x: x
        var = self._hook_handler(name, hook)
        if envvar is not None:
            envvar_contents = os.environ.get(envvar)
            if envvar_contents is not None:
                envvar_contents = convert(envvar_contents)
                if var and append:
                    if os.environ.get('NPY_DISTUTILS_APPEND_FLAGS', '1') == '1':
                        var.extend(envvar_contents)
                    else:
                        # NPY_DISTUTILS_APPEND_FLAGS was explicitly set to 0
                        # to keep old (overwrite flags rather than append to
                        # them) behavior
                        var = envvar_contents
                else:
                    var = envvar_contents
        if confvar is not None and self._conf:
            if confvar in self._conf:
                source, confvar_contents = self._conf[confvar]
                var = convert(confvar_contents)
        return var


    def clone(self, hook_handler):
        ec = self.__class__(distutils_section=self._distutils_section,
                            **self._conf_keys)
        ec._hook_handler = hook_handler
        return ec

    def use_distribution(self, dist):
        if isinstance(dist, Distribution):
            self._conf = dist.get_option_dict(self._distutils_section)
        else:
            self._conf = dist

SILENT KILLER Tool