Hacked By AnonymousFox

Current Path : /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

�
��Rec@sddlZddlZddlZddlZddlmZddlmZddl	m
Z
ddlmZm
Z
ddlmZddlmZddlmZdd	lmZyddlmZWnek
r�eZnXe
d
�ddlmZd�ZeZeZd
Zej dkr1e!ZnIej"dkrzy#ddl#Z#e$e#d�ZZWqzek
rvqzXnd�Z%d�Z&defd��YZes�ej"dkr�ddddddddddd�
Z(n-dZddddddddddd�
Z(d�Z)dS(i����N(t	build_ext(t	copy_file(tnew_compiler(tcustomize_compilertget_config_var(tDistutilsError(tlog(tLibrary(tsixtLDSHARED(t_config_varscCsstjdkretj�}z,dtd<dtd<dtd<t|�Wdtj�tj|�Xn
t|�dS(Ntdarwins0gcc -Wl,-x -dynamiclib -undefined dynamic_lookupR	s -dynamiclibtCCSHAREDs.dylibtSO(tsystplatformt_CONFIG_VARStcopyRtcleartupdate(tcompilerttmp((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyt_customize_compiler_for_shlibs



tsharedRtnttRTLD_NOWcCstr
|SdS(Nt(t	have_rtld(ts((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyt<lambda>;RcCsNxGd�tj�D�D]/\}}}d|kr6|S|dkr|SqWdS(s;Return the file extension for an abi3-compliant Extension()css(|]}|dtjkr|VqdS(iN(timptC_EXTENSION(t.0R((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pys	<genexpr>@ss.abi3s.pydN(Rtget_suffixes(tsuffixt_((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pytget_abi3_suffix>s
&RcBs�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((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyR'Hs

	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_libRR-R.t_needs_stubt
write_stubtcurdirtTrue(
R)R+texttfullnametfilenametmodpathtpackagetpackage_dirt
dest_filenametsrc_filename((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyR(Ps
	cCstj||�}||jkr�|j|}tjoLt|d�oLt�}|r�td�}|t|� }|t�}nt	|t
�r�tjj
|�\}}|jj|t�Str�|jr�tjj|�\}}tjj|d|�Sn|S(Ntpy_limited_apit
EXT_SUFFIXsdl-(R&R3text_mapRtPY3tgetattrR$t_get_config_var_837tlent
isinstanceRR7R8tsplitexttshlib_compilertlibrary_filenametlibtypet	use_stubst_links_to_dynamicR4R5(R)R@RAR?tuse_abi3tso_exttfntd((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyR3fs"
		cCs,tj|�d|_g|_i|_dS(N(R&tinitialize_optionstNoneRPtshlibsRI(R)((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyRY{s
		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(NR,i����(R&tfinalize_optionsR0tcheck_extensions_listRNRR[tsetup_shlib_compilerR1R2t
_full_nameRIR4tlinks_to_dynamictFalseRSRTR;R3t
_file_nameR7R8tdirnameR5R:tlibrary_dirstappendR=truntime_library_dirs(R)R?R@tltdtnsRAtlibdir((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyR\�s.
	
	
		$cCsdtd|jd|jd|j�}|_t|�|jdk	rW|j|j�n|j	dk	r�x*|j	D]\}}|j
||�qpWn|jdk	r�x!|jD]}|j|�q�Wn|j
dk	r�|j|j
�n|jdk	r
|j|j�n|jdk	r,|j|j�n|jdk	rN|j|j�ntj|�|_dS(NRR.tforce(RRR.RjRPRtinclude_dirsRZtset_include_dirstdefinetdefine_macrotundeftundefine_macrot	librariest
set_librariesRdtset_library_dirstrpathtset_runtime_library_dirstlink_objectstset_link_objectstlink_shared_objectt__get__(R)RR2tvaluetmacro((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyR^�s(%
cCs&t|t�r|jStj||�S(N(RNRtexport_symbolsR&tget_export_symbols(R)R?((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyR}�scCs�|j�|j}z`t|t�r4|j|_ntj||�|jrr|jd�j	}|j
||�nWd||_XdS(NR+(t_convert_pyx_sources_to_langRRNRRPR&tbuild_extensionR;R/R:R<(R)R?t	_compilertcmd((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyR�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 packageR,i����Rc3s|]}�|�kVqdS(N((R tlibname(tlibnamestpkg(s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pys	<genexpr>�s(tdicttfromkeysR[R_R5R4tanyRq(R)R?tlib((R�R�s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyR`�s(&cCstj|�|j�S(N(R&tget_outputst_build_ext__get_stubs_outputs(R)((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyR��scsE�fd��jD�}tj|�j��}td�|D��S(Nc3s<|]2}|jrtjj�j|jjd��VqdS(R,N(R;R7R8R5R:R_R4(R R?(R)(s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pys	<genexpr>�scss|]\}}||VqdS(N((R tbasetfnext((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pys	<genexpr>�s(R0t	itertoolstproductt!_build_ext__get_output_extensionstlist(R)tns_ext_basestpairs((R)s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyt__get_stubs_outputs�s
ccs(dVdV|jd�jr$dVndS(Ns.pys.pycR+s.pyo(R/toptimize(R)((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/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 %sR,s.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�iRjR.tinstall_lib(RtinfoR_R7R8R5R4texistsRR.topentwritetif_dlR9Rbtclosetdistutils.utilR�R>R/R�tunlink(R)t
output_dirR?tcompilet	stub_filetfR�R�((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyR<�sP	
			

(t__name__t
__module__R'R(R3RYR\R^R}RR`R�R�R�RaR<(((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyRGs								
					ic

Cs8|j|j|||||||||	|
||�
dS(N(tlinktSHARED_LIBRARY(
R)tobjectstoutput_libnameR�RqRdRfR|tdebugt
extra_preargstextra_postargst
build_tempttarget_lang((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyRxs
tstaticc
Cs�|dkst�tjj|�\}}
tjj|
�\}}|jd�jd�rg|d}n|j|||||�dS(NtxR�i(	RZtAssertionErrorR7R8R4RORQt
startswithtcreate_static_lib(R)R�R�R�RqRdRfR|R�R�R�R�R�RAR9R?((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyRx)s
cCs"tjdkrd}nt|�S(s�
    In https://github.com/pypa/setuptools/pull/837, we discovered
    Python 3.3.0 exposes the extension suffix under the name 'SO'.
    iiR
(iii(Rtversion_infoR(R2((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyRLAs	(*R7RR�Rtdistutils.command.build_extRt
_du_build_exttdistutils.file_utilRtdistutils.ccompilerRtdistutils.sysconfigRRtdistutils.errorsRt	distutilsRtsetuptools.extensionRtsetuptools.externRtCython.Distutils.build_extR&tImportErrorR
RRRaRRSRRRR>R2tdlthasattrR�R$RZRxRL(((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_ext.pyt<module>sV


		
			�			

Hacked By AnonymousFox1.0, Coded By AnonymousFox