File "build_clib.cpython-37.opt-1.pyc"

Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/python37/lib64/python3.7/distutils/command/__pycache__/build_clib.cpython-37.opt-1.pyc
File size: 4.77 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit

B

 fV@sTdZddlZddlmZddlTddlmZddlmZddZ	Gd	d
d
eZ
dS)zdistutils.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)rrA/opt/alt/python37/lib64/python3.7/distutils/command/build_clib.pyrsrc@sleZdZdZdddddgZddgZd	d
defgZdd
ZddZ	ddZ
ddZddZddZ
ddZd
S)
build_clibz/build C/C++ libraries used by Python extensions)zbuild-clib=bz%directory to build C/C++ libraries to)zbuild-temp=tz,directory to put temporary build by-products)debuggz"compile with debugging information)forcefz2forcibly build everything (ignore file timestamps))z	compiler=czspecify the compiler typer
rz
help-compilerNzlist available compilerscCs:d|_d|_d|_d|_d|_d|_d|_d|_d|_dS)Nr)	r

build_temp	librariesinclude_dirsdefineundefr
rcompiler)selfrrr	initialize_options4szbuild_clib.initialize_optionscCsh|dddddd|jj|_|jr0||j|jdkrH|jjpDg|_t|jtrd|jtj	|_dS)NZbuild)rr
)rr)rr)r
r
)rr)
Zset_undefined_optionsZdistributionrcheck_library_listr
isinstancestrsplitospathsep)rrrr	finalize_optionsDs

zbuild_clib.finalize_optionscCs|js
dSddlm}||j|j|jd|_t|j|jdk	rN|j|j|j	dk	rzx |j	D]\}}|j
||q`W|jdk	rx|jD]}|j|qW|
|jdS)Nr)new_compiler)rdry_runr)rrr!rr"rrrZset_include_dirsrZdefine_macrorZundefine_macrobuild_libraries)rr!namevalueZmacrorrr	run^s 



zbuild_clib.runcCst|tstdx|D]z}t|ts:t|dkr:td|\}}t|tsTtdd|ksptjdkrtj|krtd|dt|tstdqWd	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 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)N)	rlistDistutilsSetupErrortuplelenrrsepdict)rrlibr$
build_inforrr	rvs"




zbuild_clib.check_library_listcCs0|js
dSg}x|jD]\}}||qW|S)N)rappend)rZ	lib_nameslib_namer0rrr	get_library_namesszbuild_clib.get_library_namescCs^||jg}xH|jD]>\}}|d}|dks@t|ttfsLtd|||qW|S)Nsourceszfin 'libraries' option (library '%s'), 'sources' must be present and must be a list of source filenames)rrgetrr)r+r*extend)r	filenamesr2r0r4rrr	get_source_filess
zbuild_clib.get_source_filescCsx|D]\}}|d}|dks.t|ttfs:td|t|}td||d}|d}|jj||j	|||j
d}|jj|||j|j
dqWdS)Nr4zfin 'libraries' option (library '%s'), 'sources' must be present and must be a list of source filenameszbuilding '%s' librarymacrosr)
output_dirr9rr
)r:r
)
r5rr)r+r*rinforcompilerr
Zcreate_static_libr
)rrr2r0r4r9rZobjectsrrr	r#s$




zbuild_clib.build_libraries)__name__
__module____qualname__ZdescriptionZuser_optionsZboolean_optionsrZhelp_optionsrr r&rr3r8r#rrrr	r
s 
$r
)__doc__rZdistutils.corerZdistutils.errorsZdistutils.sysconfigrZ	distutilsrrr
rrrr	<module>s