Viewing File: /opt/alt/python35/lib64/python3.5/distutils/__pycache__/extension.cpython-35.opt-2.pyc



])@sGddlZddlZddlZGdddZddZdS)Nc@sReZdZddddddddddddddddZddZdS)	ExtensionNcKs|t|tstdt|to@tdd|DsOtd||_||_|pjg|_|pyg|_|pg|_	|pg|_
|pg|_|pg|_|	pg|_
|
pg|_|pg|_|pg|_|
pg|_|pg|_||_||_t|dkrxdd|D}djt|}d	|}tj|dS)
Nz'name' must be a stringcss|]}t|tVqdS)N)
isinstancestr).0vr./opt/alt/python35/lib64/python3.5/extension.py	<genexpr>ksz%Extension.__init__.<locals>.<genexpr>z#'sources' must be a list of stringsrcSsg|]}t|qSr)repr)roptionrrr
<listcomp>s	z&Extension.__init__.<locals>.<listcomp>z, zUnknown Extension options: %s)rrAssertionErrorlistallnamesourcesinclude_dirs
define_macrosundef_macroslibrary_dirs	librariesruntime_library_dirs
extra_objectsextra_compile_argsextra_link_argsexport_symbols	swig_optsdependslanguageoptionallenjoinsortedwarningswarn)selfrrrrrrrrrrrrrrrrkwoptionsmsgrrr__init__Ws4				
zExtension.__init__cCs)d|jj|jj|jt|fS)Nz<%s.%s(%r) at %#x>)	__class__
__module____qualname__rid)r%rrr__repr__s
		zExtension.__repr__)__name__r+r,r)r.rrrrrsD!rcCsddlm}m}m}ddlm}ddlm}||}||ddddddd	dd
d}zg}x|j}	|	dkrP|j	|	rq~|	d|	d'kodknr|j
d|	q~||	|}	||	}
|
d}t|g}d}
x`|
ddD]N}|
dk	rT|
j|d}
q,t
jj|d}|dd
}|d
d}|d(kr|jj|q,|dkr|jj|q,|dkr9|jd}|d)kr|jj|dfqz|jj|d|||d
dfq,|dkrX|jj|q,|dkrw|jj|q,|dkr|jj|q,|dkr|jj|q,|dkr|jj|q,|dkr|j}
q,|dkr|j}
q,|dkr|j}
q,|d krJ|jj||sz|j}
q,|d*kri|jj|q,|j
d&|q,W|j|q~WWd|jX|S)+Nr)parse_makefileexpand_makefile_vars_variable_rx)TextFile)split_quotedZstrip_commentsZskip_blanksZ
join_linesZ	lstrip_wsZ	rstrip_ws*z'%s' lines not handled yet.c.cc.cpp.cxx.c++.m.mmz-Iz-D=z-Uz-Cz-lz-Lz-Rz-rpathz-Xlinkerz
-Xcompilerz-u.a.so.sl.o.dylibzunrecognized argument '%s')r8r9r:r;r<r=r>rE)r@rArBrCrD)Zdistutils.sysconfigr0r1r2Zdistutils.text_filer3Zdistutils.utilr4readlinematchr$rappendospathsplitextrrfindrrrrrrrrclose)filenamer0r1r2r3r4varsfile
extensionslineZwordsmoduleextZappend_next_wordZwordsuffixZswitchvalueZequalsrrrread_setup_files	$

rW)rIsysr#rrWrrrr<module>sz
Back to Directory File Manager