$96 GRAYBYTE WORDPRESS FILE MANAGER $59

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/python37/lib64/python3.7/site-packages/numpy/distutils/command/

HOME
Current File : /opt/alt/python37/lib64/python3.7/site-packages/numpy/distutils/command//autodist.py
"""This module implements additional tests ala autoconf which can be useful.

"""
from __future__ import division, absolute_import, print_function


# We put them here since they could be easily reused outside numpy.distutils

def check_inline(cmd):
    """Return the inline identifier (may be empty)."""
    cmd._check_compiler()
    body = """
#ifndef __cplusplus
static %(inline)s int static_func (void)
{
    return 0;
}
%(inline)s int nostatic_func (void)
{
    return 0;
}
#endif"""

    for kw in ['inline', '__inline__', '__inline']:
        st = cmd.try_compile(body % {'inline': kw}, None, None)
        if st:
            return kw

    return ''

def check_restrict(cmd):
    """Return the restrict identifier (may be empty)."""
    cmd._check_compiler()
    body = """
static int static_func (char * %(restrict)s a)
{
    return 0;
}
"""

    for kw in ['restrict', '__restrict__', '__restrict']:
        st = cmd.try_compile(body % {'restrict': kw}, None, None)
        if st:
            return kw

    return ''

def check_compiler_gcc4(cmd):
    """Return True if the C compiler is GCC 4.x."""
    cmd._check_compiler()
    body = """
int
main()
{
#if (! defined __GNUC__) || (__GNUC__ < 4)
#error gcc >= 4 required
#endif
    return 0;
}
"""
    return cmd.try_compile(body, None, None)


def check_gcc_function_attribute(cmd, attribute, name):
    """Return True if the given function attribute is supported."""
    cmd._check_compiler()
    body = """
#pragma GCC diagnostic error "-Wattributes"
#pragma clang diagnostic error "-Wattributes"

int %s %s(void*);

int
main()
{
    return 0;
}
""" % (attribute, name)
    return cmd.try_compile(body, None, None) != 0

def check_gcc_variable_attribute(cmd, attribute):
    """Return True if the given variable attribute is supported."""
    cmd._check_compiler()
    body = """
#pragma GCC diagnostic error "-Wattributes"
#pragma clang diagnostic error "-Wattributes"

int %s foo;

int
main()
{
    return 0;
}
""" % (attribute, )
    return cmd.try_compile(body, None, None) != 0

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
31 Aug 2024 3.40 AM
root / root
0755
__pycache__
--
31 Aug 2024 3.40 AM
root / root
0755
__init__.py
0 KB
25 Apr 2023 2.30 AM
root / root
0644
autodist.py
2 KB
25 Apr 2023 2.30 AM
root / root
0644
bdist_rpm.py
0.757 KB
25 Apr 2023 2.30 AM
root / root
0644
build.py
1.58 KB
25 Apr 2023 2.30 AM
root / root
0644
build_clib.py
11.931 KB
25 Apr 2023 2.30 AM
root / root
0644
build_ext.py
21.966 KB
25 Apr 2023 2.30 AM
root / root
0644
build_py.py
1.182 KB
25 Apr 2023 2.30 AM
root / root
0644
build_scripts.py
1.69 KB
25 Apr 2023 2.30 AM
root / root
0644
build_src.py
30.221 KB
25 Apr 2023 2.30 AM
root / root
0644
config.py
17.578 KB
25 Apr 2023 2.30 AM
root / root
0644
config_compiler.py
4.276 KB
25 Apr 2023 2.30 AM
root / root
0644
develop.py
0.626 KB
25 Apr 2023 2.30 AM
root / root
0644
egg_info.py
0.964 KB
25 Apr 2023 2.30 AM
root / root
0644
install.py
3.054 KB
25 Apr 2023 2.30 AM
root / root
0644
install_clib.py
1.284 KB
25 Apr 2023 2.30 AM
root / root
0644
install_data.py
0.893 KB
25 Apr 2023 2.30 AM
root / root
0644
install_headers.py
0.962 KB
25 Apr 2023 2.30 AM
root / root
0644
sdist.py
0.78 KB
25 Apr 2023 2.30 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF