ok

Mini Shell

Direktori : /proc/self/root/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/
Upload File :
Current File : //proc/self/root/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_ext.pyc

�
�/{Yc@sddlmZyddlmZWnek
r=eZnXddlZddlZddlm	Z	ddl
mZddlm
Z
ddlmZyddlmZWn>ek
r�ddlmZed	�[dd
lmZnXddlmZddlTeZeZd
Zejdkr/eZnFejdkruy ddlmZeZeZWquek
rqquXnd�Z defd��YZes�ejdkr�ddddddddddd�
Z"n-dZddddddddddd�
Z"dS(i����(t	build_extN(t	copy_file(tLibrary(tnew_compiler(tcustomize_compiler(t_CONFIG_VARS(tget_config_vartLDSHARED(t_config_vars(tlog(t*tsharedtdarwintnt(tRTLD_NOWcCstr
|SdS(Nt(t	have_rtld(ts((sM/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_ext.pytif_dl&sRcBs�eZd�Zd�Zeek	r@eed�r@d�Znd�Zd�Z	d�Z
d�Zd�Zd	�Z
d
�Zd�Zed�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/python33/lib/python3.3/site-packages/setuptools/command/build_ext.pyR1s

	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/python33/lib/python3.3/site-packages/setuptools/command/build_ext.pyR9s!
	t
pyrex_sourcescGs+tj||�p|}tj|||�S(N(Rtswig_sourcest
_du_build_ext(Rtsourcest	otherargs((sM/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_ext.pyR6QscCs�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/python33/lib/python3.3/site-packages/setuptools/command/build_ext.pyR!Ys
cCs,tj|�d|_g|_i|_dS(N(Rtinitialize_optionstNoneR=tshlibsR:(R((sM/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_ext.pyRDes
		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_listR;RRFtsetup_shlib_compilerRR t
_full_nameR:R"tlinks_to_dynamictFalseRAR@R)R!t
_file_nameR%R&tdirnameR#R(tlibrary_dirstappendR+truntime_library_dirs(RR-R.tltdR/tlibdir((sM/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_ext.pyRGks*
	
	
%$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_lookupRs -dynamiclibtCCSHAREDs.dylibtSO(RRTRRUR=tsystplatformRtcopyRtcleartupdatetinclude_dirsREtset_include_dirstdefinetdefine_macrotundeftundefine_macrot	librariest
set_librariesROtset_library_dirstrpathtset_runtime_library_dirstlink_objectstset_link_objectstlink_shared_objectt__get__(RRTttmpR tvaluetmacro((sM/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_ext.pyRI�s:%




cCs&t|t�r|jStj||�S(N(R;Rtexport_symbolsRtget_export_symbols(RR-((sM/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_ext.pyRp�scCst|j}zZt|t�r*|j|_ntj||�|jrb|j|jd�j	|�nWd||_XdS(NR(
RTR;RR=Rtbuild_extensionR)R*RR((RR-t	_compiler((sM/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_ext.pyRq�s		cCsztjg|jD]}|j^q�}dj|jjd�d dg�}x%|jD]}|||krXtSqXWtS(s?Return true if 'ext' links to a dynamic lib in the same packageRi����R(	tdicttfromkeysRFRJR#R"RcR,RL(RR-tlibtlibnamestpkgtlibname((sM/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_ext.pyRK�s(&cCs�tj|�}|jd�j}x}|jD]r}|jr+tjj|j	|j
jd��}|j|d�|j|d�|r�|j|d�q�q+q+W|S(NRRs.pys.pycs.pyo(
Rtget_outputsRtoptimizeRR)R%R&R#R(RJR"RP(RtoutputsRzR-tbase((sM/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_ext.pyRy�s	$cCs�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_compileRziRURtinstall_lib(R	tinfoRJR%R&R#R"texiststDistutilsErrorRtopentwriteRR'RMtclosetdistutils.utilR~R,RRztunlink(Rt
output_dirR-tcompilet	stub_filetfR~Rz((sM/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_ext.pyR*�sJ%	
			

(t__name__t
__module__RRRR7thasattrR6R!RDRGRIRpRqRKRyRLR*(((sM/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_ext.pyR0s						)		
		ic

Cs8|j|j|||||||||	|
||�
dS(N(tlinktSHARED_LIBRARY(
Rtobjectstoutput_libnameR�RcRORQRotdebugt
extra_preargstextra_postargst
build_tempttarget_lang((sM/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_ext.pyRjs
tstaticc
Cs�|dkst�tjj|�\}}
tjj|
�\}}|jd�jd�rg|d}n|j|||||�dS(NtxRui(	REtAssertionErrorR%R&R"R<R>t
startswithtcreate_static_lib(RR�R�R�RcRORQRoR�R�R�R�R�R/R'R-((sM/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_ext.pyRjs
(#tdistutils.command.build_extRR7tPyrex.Distutils.build_extRtImportErrorR%RXtdistutils.file_utilRtsetuptools.extensionRtdistutils.ccompilerRtdistutils.sysconfigRt	sysconfigRRRt	distutilsR	tdistutils.errorsRLRR@R?RYR,R tdlRRRERj(((sM/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_ext.pyt<module>sT




	

	
�					

Zerion Mini Shell 1.0