HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.10/site-packages/setuptools/command/__pycache__/build_clib.cpython-310.pyc
o

��i?�@sLddlmmZddlmZddlmZddlm	Z	Gdd�dej�ZdS)�N)�DistutilsSetupError)�log)�newer_pairwise_groupc@seZdZdZdd�ZdS)�
build_clibav
    Override the default build_clib behaviour to do the following:

    1. Implement a rudimentary timestamp-based dependency system
       so 'compile()' doesn't run every time.
    2. Add more keys to the 'build_info' dictionary:
        * obj_deps - specify dependencies for each object compiled.
                     this should be a dictionary mapping a key
                     with the source filename to a list of
                     dependencies. Use an empty string for global
                     dependencies.
        * cflags   - specify a list of additional flags to pass to
                     the compiler.
    c	Csn|D]�\}}|�d�}|dust|ttf�std|��t|�}t�d|�|�dt��}t|t�s8td|��g}|�dt��}t|ttf�sNtd|��|D](}|g}	|	�|�|�|t��}
t|
ttf�sntd|��|	�|
�|�	|	�qP|j
j||jd�}t
||�ggfkr�|�d�}|�d	�}
|�d
�}|j
j||j||
||jd�|j
j|||j|jd�qdS)
N�sourceszfin 'libraries' option (library '%s'), 'sources' must be present and must be a list of source filenameszbuilding '%s' library�obj_depsz\in 'libraries' option (library '%s'), 'obj_deps' must be a dictionary of type 'source: list'�)�
output_dir�macros�include_dirs�cflags)r	r
rZextra_postargs�debug)r	r
)�get�
isinstance�list�tuplerr�info�dict�extend�append�compilerZobject_filenamesZ
build_tempr�compiler
Zcreate_static_libr)�selfZ	librariesZlib_nameZ
build_inforr�dependenciesZglobal_deps�sourceZsrc_depsZ
extra_depsZexpected_objectsr
rr�r�H/usr/local/lib/python3.10/site-packages/setuptools/command/build_clib.py�build_librariess|
��
����
��
��


���zbuild_clib.build_librariesN)�__name__�
__module__�__qualname__�__doc__rrrrrrsr)
Zdistutils.command.build_clib�commandr�origZdistutils.errorsr�	distutilsrZsetuptools.dep_utilrrrrr�<module>s