ok

Mini Shell

Direktori : /opt/alt/python27/lib/python2.7/site-packages/setuptools/command/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyc

�
0��`c@sddlmZddlmZddlmZddlmZddl	m
Z
ddlmZddl
Z
ddlZddlZddlmZyddlmZWnek
r�eZnXydd	lmZWn>ek
rdd
lmZed�[ddlmZnXeZeZd
ZejdkrAeZnIe
jdkr�y#ddl Z e!e d�ZZWq�ek
r�q�Xnd�Z"defd��YZes�e
jdkr�ddddddddddd�
Z$n-dZddddddddddd�
Z$dS(i����(t	build_ext(t	copy_file(tnew_compiler(tcustomize_compiler(tDistutilsError(tlogN(tLibrary(t_CONFIG_VARS(tget_config_vartLDSHARED(t_config_varstsharedtdarwintnttRTLD_NOWcCstr
|SdS(Nt(t	have_rtld(ts((sM/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyt<lambda>+RRcBs�eZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
ed�ZRS(
cCs@|jd}|_tj|�||_|r<|j�ndS(s;Build extensions in build directory, then copy if --inplaceiN(tinplacet
_build_exttruntcopy_extensions_to_source(tselftold_inplace((sM/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyR.s

	c
Cs�|jd�}x�|jD]�}|j|j�}|j|�}|jd�}dj|d �}|j|�}tj	j|tj	j
|��}tj	j|j|�}	t|	|d|j
d|j�|jr|j|p�tj|t�qqWdS(Ntbuild_pyt.i����tverbosetdry_run(tget_finalized_commandt
extensionstget_ext_fullnametnametget_ext_filenametsplittjointget_package_dirtostpathtbasenamet	build_libRRRt_needs_stubt
write_stubtcurdirtTrue(
RRtexttfullnametfilenametmodpathtpackagetpackage_dirt
dest_filenametsrc_filename((sM/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyR6s
	cCs�tj||�}||jkr�|j|}t|t�rhtjj|�\}}|jj	|t
�Str�|jr�tjj
|�\}}tjj|d|�Sn|S(Nsdl-(RR!text_mapt
isinstanceRR%R&tsplitexttshlib_compilertlibrary_filenametlibtypet	use_stubst_links_to_dynamicR"R#(RR.R/R-tfntd((sM/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyR!Ls
cCs,tj|�d|_g|_i|_dS(N(Rtinitialize_optionstNoneR8tshlibsR5(R((sM/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyR?Xs
		cCs�tj|�|jpg|_|j|j�g|jD]}t|t�r9|^q9|_|jrs|j�nx&|jD]}|j|j	�|_
q}Wx#|jD]}|j
}||j|<||j|jd�d<|jr�|j
|�p�t}|otot|t�}||_||_|j|�}|_tjjtjj|j|��}|r�||jkr�|jj|�n|r�tr�tj|jkr�|jjtj�q�q�WdS(NRi����(Rtfinalize_optionsRtcheck_extensions_listR6RRAtsetup_shlib_compilerRR t
_full_nameR5R"tlinks_to_dynamictFalseR;R<R)R!t
_file_nameR%R&tdirnameR#R(tlibrary_dirstappendR+truntime_library_dirs(RR-R.tltdtnsR/tlibdir((sM/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyRB^s.
	
	
		$cCs�td|jd|jd|j�}|_tjdkr�tj�}z,dtd<dtd<d	td
<t	|�Wdtj
�tj|�Xn
t	|�|jdk	r�|j|j�n|jdk	r�x*|jD]\}}|j||�q�Wn|jdk	r+x!|jD]}|j|�qWn|jdk	rM|j|j�n|jdk	ro|j|j�n|jdk	r�|j|j�n|jdk	r�|j|j�ntj|�|_dS(NtcompilerRtforceRs0gcc -Wl,-x -dynamiclib -undefined dynamic_lookupR	s -dynamiclibtCCSHAREDs.dylibtSO(RRPRRQR8tsystplatformRtcopyRtcleartupdatetinclude_dirsR@tset_include_dirstdefinetdefine_macrotundeftundefine_macrot	librariest
set_librariesRJtset_library_dirstrpathtset_runtime_library_dirstlink_objectstset_link_objectstlink_shared_objectt__get__(RRPttmpR tvaluetmacro((sM/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyRD{s:%




cCs&t|t�r|jStj||�S(N(R6Rtexport_symbolsRtget_export_symbols(RR-((sM/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyRl�scCs�|j�|j}z`t|t�r4|j|_ntj||�|jrr|jd�j	}|j
||�nWd||_XdS(NR(t_convert_pyx_sources_to_langRPR6RR8Rtbuild_extensionR)RR(R*(RR-t	_compilertcmd((sM/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyRn�s
		csntjg|jD]}|j^q��dj|jjd�d dg��t��fd�|jD��S(s?Return true if 'ext' links to a dynamic lib in the same packageRi����Rc3s|]}�|�kVqdS(N((t.0tlibname(tlibnamestpkg(sM/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pys	<genexpr>�s(tdicttfromkeysRARER#R"tanyR_(RR-tlib((RsRtsM/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyRF�s(&cCstj|�|j�S(N(Rtget_outputst_build_ext__get_stubs_outputs(R((sM/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyRy�scsE�fd��jD�}tj|�j��}td�|D��S(Nc3s<|]2}|jrtjj�j|jjd��VqdS(RN(R)R%R&R#R(RER"(RqR-(R(sM/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pys	<genexpr>�scss|]\}}||VqdS(N((Rqtbasetfnext((sM/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pys	<genexpr>�s(Rt	itertoolstproductt!_build_ext__get_output_extensionstlist(Rtns_ext_basestpairs((RsM/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyt__get_stubs_outputs�s
ccs(dVdV|jd�jr$dVndS(Ns.pys.pycRs.pyo(Rtoptimize(R((sM/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyt__get_output_extensions�scCs�tjd|j|�tjj||jjd��d}|rftjj|�rft|d��n|j	st
|d�}|jdjddd	td
�dtjj
|j�dd
dtd�dddtd�ddtd�dddg��|j�n|r�ddlm}||gdddtd|j	�|jd �j}|dkr�||gd|dtd|j	�ntjj|�r�|j	r�tj|�q�ndS(!Ns writing stub loader for %s to %sRs.pys already exists! Please delete.tws
sdef __bootstrap__():s-   global __bootstrap__, __file__, __loader__s%   import sys, os, pkg_resources, imps, dls:   __file__ = pkg_resources.resource_filename(__name__,%r)s   del __bootstrap__s    if '__loader__' in globals():s       del __loader__s#   old_flags = sys.getdlopenflags()s   old_dir = os.getcwd()s   try:s(     os.chdir(os.path.dirname(__file__))s$     sys.setdlopenflags(dl.RTLD_NOW)s(     imp.load_dynamic(__name__,__file__)s   finally:s"     sys.setdlopenflags(old_flags)s     os.chdir(old_dir)s__bootstrap__()Ri����(tbyte_compileR�iRQRtinstall_lib(RtinfoRER%R&R#R"texistsRRtopentwritetif_dlR'RHtclosetdistutils.utilR�R,RR�tunlink(Rt
output_dirR-tcompilet	stub_filetfR�R�((sM/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyR*�sP	
			

(t__name__t
__module__RRR!R?RBRDRlRnRFRyRzRRGR*(((sM/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyR-s						(		
					ic

Cs8|j|j|||||||||	|
||�
dS(N(tlinktSHARED_LIBRARY(
Rtobjectstoutput_libnameR�R_RJRLRktdebugt
extra_preargstextra_postargst
build_tempttarget_lang((sM/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyRfs
tstaticc
Cs�|dkst�tjj|�\}}
tjj|
�\}}|jd�jd�rg|d}n|j|||||�dS(NtxRxi(	R@tAssertionErrorR%R&R"R7R9t
startswithtcreate_static_lib(RR�R�R�R_RJRLRkR�R�R�R�R�R/R'R-((sM/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyRfs
(%tdistutils.command.build_extRt
_du_build_exttdistutils.file_utilRtdistutils.ccompilerRtdistutils.sysconfigRtdistutils.errorsRt	distutilsRR%RTR}tsetuptools.extensionRtCython.Distutils.build_extRtImportErrort	sysconfigRRR
RGRR;R:RUR,R tdlthasattrR�R@Rf(((sM/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyt<module>sV



	
	�			

Zerion Mini Shell 1.0