HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: sport3497 (1034)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/setuptools/command/__pycache__/build_clib.cpython-310.pyc
o

��h��@sXddlmZddlmZddlmmZddlm	Z	ddl
mZGdd�dej�ZdS)	�)�Distribution)�newer_pairwise_group�N)�log)�DistutilsSetupErrorc@s$eZdZUdZeed<ddd�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.
    �distribution�returnNc	Cs�|D]�\}}|�d�}|dust|ttf�std|�d���tt|��}t�d|�|�dt��}t|t�s>td|�d���g}|�dt��}t|ttf�sVtd|�d���|D]*}|g}	|	�	|�|�|t��}
t|
ttf�sxtd|�d���|	�	|
�|�
|	�qX|jj||j
d�}t||�ggfkr�|�d	�}|�d
�}
|�d�}|jj||j
||
||jd�|jj|||j|jd
�qdS)N�sourcesz in 'libraries' option (library 'zD'), 'sources' must be present and must be a list of source filenameszbuilding '%s' library�obj_depsz:'), 'obj_deps' must be a dictionary of type 'source: list'�)�
output_dir�macros�include_dirs�cflags)r
rr�extra_postargs�debug)r
r)�get�
isinstance�list�tupler�sortedr�info�dict�extend�append�compiler�object_filenames�
build_tempr�compiler�create_static_libr)�self�	libraries�lib_name�
build_infor
r�dependencies�global_deps�source�src_deps�
extra_deps�expected_objectsrrr�r+�H/usr/local/lib/python3.10/dist-packages/setuptools/command/build_clib.py�build_librariessb

�

�
�

�
�


���zbuild_clib.build_libraries)r	N)�__name__�
__module__�__qualname__�__doc__r�__annotations__r-r+r+r+r,r	s
r)�distr�modifiedr�distutils.command.build_clib�commandr�orig�	distutilsr�distutils.errorsrr+r+r+r,�<module>s