404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.144.45.189: ~ $
3


 \V�@sTdZddlZddlmZddlTddlmZddlmZdd�Z	Gd	d
�d
e�Z
dS)z�distutils.command.build_clib

Implements the Distutils 'build_clib' command, to build a C/C++ library
that is included in the module distribution and needed by an extension
module.�N)�Command)�*)�customize_compiler)�logcCsddlm}|�dS)Nr)�show_compilers)�distutils.ccompilerr)r�r�4/usr/lib64/python3.6/distutils/command/build_clib.pyrsrc@sleZdZdZd"d#d$d%d&gZddgZdddefgZdd�Zdd�Z	dd�Z
dd�Zdd�Zdd�Z
d d!�ZdS)'�
build_clibz/build C/C++ libraries used by Python extensions�build-clib=�b�%directory to build C/C++ libraries to�build-temp=�t�,directory to put temporary build by-products�debug�g�"compile with debugging information�force�f�2forcibly build everything (ignore file timestamps)�	compiler=�c�specify the compiler typez
help-compilerNzlist available compilerscCs:d|_d|_d|_d|_d|_d|_d|_d|_d|_dS)Nr)	r
�
build_temp�	libraries�include_dirs�define�undefrr�compiler)�selfrrr	�initialize_options4szbuild_clib.initialize_optionscCsh|jdddd	d
d�|jj|_|jr0|j|j�|jdkrH|jjpDg|_t|jt�rd|jjtj	�|_dS)NZbuildrr
rrr)rr
)rr)rr)rr)rr)
Zset_undefined_optionsZdistributionr�check_library_listr�
isinstance�str�split�os�pathsep)r rrr	�finalize_optionsDs

zbuild_clib.finalize_optionscCs�|js
dSddlm}||j|j|jd�|_t|j�|jdk	rN|jj|j�|j	dk	rzx |j	D]\}}|jj
||�q`W|jdk	r�x|jD]}|jj|�q�W|j
|j�dS)Nr)�new_compiler)r�dry_runr)rrr)rr*rrrZset_include_dirsrZdefine_macrorZundefine_macro�build_libraries)r r)�name�valueZmacrorrr	�run^s 



zbuild_clib.runcCs�t|t�std��x�|D]|}t|t�r<t|�dkr<td��|\}}t|t�sVtd��d|ksrtjdkr�tj|kr�td|d��t|t�std��qWd	S)
a`Ensure that the list of libraries is valid.

        `library` is presumably provided as a command option 'libraries'.
        This method checks that it is a list of 2-tuples, where the tuples
        are (library_name, build_info_dict).

        Raise DistutilsSetupError if the structure is invalid anywhere;
        just returns otherwise.
        z+'libraries' option must be a list of tuples�z*each element of 'libraries' must a 2-tuplezNfirst element of each tuple in 'libraries' must be a string (the library name)�/z;bad library name '%s': may not contain directory separatorsrzMsecond element of each tuple in 'libraries' must be a dictionary (build info)N)	r#�list�DistutilsSetupError�tuple�lenr$r&�sep�dict)r r�libr,�
build_inforrr	r"vs"




zbuild_clib.check_library_listcCs0|js
dSg}x|jD]\}}|j|�qW|S)N)r�append)r Z	lib_names�lib_namer8rrr	�get_library_names�szbuild_clib.get_library_namescCs`|j|j�g}xJ|jD]@\}}|jd�}|dksBt|ttf�rNtd|��|j|�qW|S)N�sourceszfin 'libraries' option (library '%s'), 'sources' must be present and must be a list of source filenames)r"r�getr#r1r3r2�extend)r �	filenamesr:r8r<rrr	�get_source_files�s
zbuild_clib.get_source_filescCs�x�|D]�\}}|jd�}|dks0t|ttf�r<td|��t|�}tjd|�|jd�}|jd�}|jj||j	|||j
d�}|jj|||j|j
d�qWdS)Nr<zfin 'libraries' option (library '%s'), 'sources' must be present and must be a list of source filenameszbuilding '%s' library�macrosr)�
output_dirrArr)rBr)
r=r#r1r3r2r�infor�compilerrZcreate_static_libr
)r rr:r8r<rArZobjectsrrr	r+�s$




zbuild_clib.build_libraries)rrr
)rrr)rrr)rrr)rrr)�__name__�
__module__�__qualname__ZdescriptionZuser_optionsZboolean_optionsrZhelp_optionsr!r(r.r"r;r@r+rrrr	r
s*
$r
)�__doc__r&Zdistutils.corerZdistutils.errorsZdistutils.sysconfigrZ	distutilsrrr
rrrr	�<module>s

Filemanager

Name Type Size Permission Actions
__init__.cpython-36.opt-1.pyc File 535 B 0644
__init__.cpython-36.opt-2.pyc File 426 B 0644
__init__.cpython-36.pyc File 535 B 0644
bdist.cpython-36.opt-1.pyc File 3.69 KB 0644
bdist.cpython-36.opt-2.pyc File 3.5 KB 0644
bdist.cpython-36.pyc File 3.69 KB 0644
bdist_dumb.cpython-36.opt-1.pyc File 3.66 KB 0644
bdist_dumb.cpython-36.opt-2.pyc File 3.46 KB 0644
bdist_dumb.cpython-36.pyc File 3.66 KB 0644
bdist_msi.cpython-36.opt-1.pyc File 19.22 KB 0644
bdist_msi.cpython-36.opt-2.pyc File 17.71 KB 0644
bdist_msi.cpython-36.pyc File 19.3 KB 0644
bdist_rpm.cpython-36.opt-1.pyc File 12.7 KB 0644
bdist_rpm.cpython-36.opt-2.pyc File 12.39 KB 0644
bdist_rpm.cpython-36.pyc File 12.76 KB 0644
bdist_wininst.cpython-36.opt-1.pyc File 8.11 KB 0644
bdist_wininst.cpython-36.opt-2.pyc File 7.97 KB 0644
bdist_wininst.cpython-36.pyc File 8.17 KB 0644
build.cpython-36.opt-1.pyc File 3.97 KB 0644
build.cpython-36.opt-2.pyc File 3.89 KB 0644
build.cpython-36.pyc File 3.97 KB 0644
build_clib.cpython-36.opt-1.pyc File 4.85 KB 0644
build_clib.cpython-36.opt-2.pyc File 4.31 KB 0644
build_clib.cpython-36.pyc File 4.85 KB 0644
build_ext.cpython-36.opt-1.pyc File 16.17 KB 0644
build_ext.cpython-36.opt-2.pyc File 14.26 KB 0644
build_ext.cpython-36.pyc File 16.17 KB 0644
build_py.cpython-36.opt-1.pyc File 10.21 KB 0644
build_py.cpython-36.opt-2.pyc File 9.03 KB 0644
build_py.cpython-36.pyc File 10.27 KB 0644
build_scripts.cpython-36.opt-1.pyc File 4.23 KB 0644
build_scripts.cpython-36.opt-2.pyc File 3.85 KB 0644
build_scripts.cpython-36.pyc File 4.23 KB 0644
check.cpython-36.opt-1.pyc File 5.1 KB 0644
check.cpython-36.opt-2.pyc File 4.55 KB 0644
check.cpython-36.pyc File 5.1 KB 0644
clean.cpython-36.opt-1.pyc File 2.13 KB 0644
clean.cpython-36.opt-2.pyc File 2.05 KB 0644
clean.cpython-36.pyc File 2.13 KB 0644
config.cpython-36.opt-1.pyc File 10.07 KB 0644
config.cpython-36.opt-2.pyc File 6.83 KB 0644
config.cpython-36.pyc File 10.07 KB 0644
install.cpython-36.opt-1.pyc File 13.9 KB 0644
install.cpython-36.opt-2.pyc File 12.87 KB 0644
install.cpython-36.pyc File 13.9 KB 0644
install_data.cpython-36.opt-1.pyc File 2.27 KB 0644
install_data.cpython-36.opt-2.pyc File 2.13 KB 0644
install_data.cpython-36.pyc File 2.27 KB 0644
install_egg_info.cpython-36.opt-1.pyc File 2.92 KB 0644
install_egg_info.cpython-36.opt-2.pyc File 2.25 KB 0644
install_egg_info.cpython-36.pyc File 2.92 KB 0644
install_headers.cpython-36.opt-1.pyc File 1.68 KB 0644
install_headers.cpython-36.opt-2.pyc File 1.52 KB 0644
install_headers.cpython-36.pyc File 1.68 KB 0644
install_lib.cpython-36.opt-1.pyc File 5.05 KB 0644
install_lib.cpython-36.opt-2.pyc File 4.5 KB 0644
install_lib.cpython-36.pyc File 5.05 KB 0644
install_scripts.cpython-36.opt-1.pyc File 2.14 KB 0644
install_scripts.cpython-36.opt-2.pyc File 2.01 KB 0644
install_scripts.cpython-36.pyc File 2.14 KB 0644
register.cpython-36.opt-1.pyc File 8.21 KB 0644
register.cpython-36.opt-2.pyc File 6.98 KB 0644
register.cpython-36.pyc File 8.21 KB 0644
sdist.cpython-36.opt-1.pyc File 12.8 KB 0644
sdist.cpython-36.opt-2.pyc File 9.69 KB 0644
sdist.cpython-36.pyc File 12.8 KB 0644
upload.cpython-36.opt-1.pyc File 5.17 KB 0644
upload.cpython-36.opt-2.pyc File 5.05 KB 0644
upload.cpython-36.pyc File 5.17 KB 0644