| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.9/site-packages/setuptools/command/__pycache__/ |
Upload File : |
a
��e� � @ sp d dl m mZ d dlmZ d dlmZ zd dlm Z W n e
yX ddlm Z Y n0 G dd� dej�ZdS )� N)�DistutilsSetupError)�log)�newer_pairwise_group� c @ s e Zd ZdZdd� 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 C sv |D �]j\}}|� d�}|d u s.t|ttf�s:td| ��tt|��}t�d|� |� dt� �}t|t�svtd| ��g }|� dt� �}t|ttf�s�td| ��|D ]P}|g} | � |� |� |t� �}
t|
ttf�s�td| ��| � |
� |�
| � q�| jj|| j
d�}t||�g g fk�rX|� d�}|� d �}
|� d
�}| jj|| j
||
|| jd� | jj||| j| jd� qd S )
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 r Zextra_postargs�debug)r
r )�get�
isinstance�list�tupler �sortedr �info�dict�extend�appendZcompilerZobject_filenamesZ
build_tempr �compiler Zcreate_static_libr )�selfZ librariesZlib_nameZ
build_infor r ZdependenciesZglobal_deps�sourceZsrc_depsZ
extra_depsZexpected_objectsr r r
� r �A/usr/lib/python3.9/site-packages/setuptools/command/build_clib.py�build_libraries sp
��
����
��
�
��zbuild_clib.build_librariesN)�__name__�
__module__�__qualname__�__doc__r r r r r r s r )Zdistutils.command.build_clibZcommandr ZorigZdistutils.errorsr � distutilsr Zdistutils._modifiedr �ImportErrorZ_distutils._modifiedr r r r �<module> s