File "build_clib.cpython-36.opt-2.pyc"

Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/python36/lib64/python3.6/distutils/command/__pycache__/build_clib.cpython-36.opt-2.pyc
File size: 4.31 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit

3

2aV@sPddlZddlmZddlTddlmZddlmZddZGdd	d	eZ	dS)
N)Command)*)customize_compiler)logcCsddlm}|dS)Nr)show_compilers)distutils.ccompilerr)rr//opt/alt/python36/lib64/python3.6/build_clib.pyrsrc@sleZdZdZd"d#d$d%d&gZddgZdddefgZddZddZ	ddZ
ddZddZddZ
d d!ZdS)'
build_clibz/build C/C++ libraries used by Python extensionsbuild-clib=b%directory to build C/C++ libraries tobuild-temp=t,directory to put temporary build by-productsdebugg"compile with debugging informationforcef2forcibly build everything (ignore file timestamps)	compiler=cspecify the compiler typez
help-compilerNzlist available compilerscCs:d|_d|_d|_d|_d|_d|_d|_d|_d|_dS)Nr)	r

build_temp	librariesinclude_dirsdefineundefrrcompiler)selfrrr	initialize_options4szbuild_clib.initialize_optionscCsh|jdddd	d
d|jj|_|jr0|j|j|jdkrH|jjpDg|_t|jtrd|jjtj	|_dS)NZbuildrr
rrr)rr
)rr)rr)rr)rr)
Zset_undefined_optionsZdistributionrcheck_library_listr
isinstancestrsplitospathsep)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	rx|jD]}|jj|qW|j
|jdS)Nr)new_compiler)rdry_runr)rrr)rr*rrrZset_include_dirsrZdefine_macrorZundefine_macrobuild_libraries)r r)namevalueZmacrorrr	run^s 



zbuild_clib.runcCst|tstdx|D]|}t|tr<t|dkr<td|\}}t|tsVtdd|ksrtjdkrtj|krtd|dt|tstdqWdS)	Nz+'libraries' option must be a list of tuplesz*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))	r#listDistutilsSetupErrortuplelenr$r&sepdict)r rlibr,
build_inforrr	r"vs"




zbuild_clib.check_library_listcCs0|js
dSg}x|jD]\}}|j|qW|S)N)rappend)r Z	lib_nameslib_namer8rrr	get_library_namesszbuild_clib.get_library_namescCs`|j|jg}xJ|jD]@\}}|jd}|dksBt|ttfrNtd||j|qW|S)Nsourceszfin 'libraries' option (library '%s'), 'sources' must be present and must be a list of source filenames)r"rgetr#r1r3r2extend)r 	filenamesr:r8r<rrr	get_source_filess
zbuild_clib.get_source_filescCsx|D]\}}|jd}|dks0t|ttfr<td|t|}tjd||jd}|jd}|jj||j	|||j
d}|jj|||j|j
dqWdS)Nr<zfin 'libraries' option (library '%s'), 'sources' must be present and must be a list of source filenameszbuilding '%s' librarymacrosr)
output_dirrArr)rBr)
r=r#r1r3r2rinforcompilerrZcreate_static_libr
)r rr:r8r<rArZobjectsrrr	r+s$




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