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/bdist_egg.pyc

�
��Rec@s�dZddlmZddlmZmZddlmZddlm	Z	ddl
Z
ddlZddlZddl
Z
ddlmZddlmZmZmZdd	lmZdd
lmZddlmZy#ddlmZmZd
�ZWn0ek
r-ddlmZmZd�ZnXd�Z d�Z!defd��YZ"e#j$dj%��Z&d�Z'd�Z(d�Z)ide*6de+6Z,d�Z-d�Z.d�Z/dddd gZ0d!d!e*d"d#�Z1dS($s6setuptools.command.bdist_egg

Build .egg distributionsi����(tDistutilsSetupError(tremove_treetmkpath(tlog(tCodeTypeN(tsix(tget_build_platformtDistributiontensure_directory(t
EntryPoint(tLibrary(tCommand(tget_pathtget_python_versioncCs
td�S(Ntpurelib(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/bdist_egg.pyt_get_purelibs(tget_python_libR
cCs
tt�S(N(RtFalse(((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/bdist_egg.pyRscCsEd|kr%tjj|�d}n|jd�rA|d }n|S(Nt.itmodulei����(tostpathtsplitexttendswith(tfilename((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/bdist_egg.pytstrip_module"s

cCsBtjd�j�}t|d��}|j||�WdQXdS(NsR
        def __bootstrap__():
            global __bootstrap__, __loader__, __file__
            import sys, pkg_resources, imp
            __file__ = pkg_resources.resource_filename(__name__, %r)
            __loader__ = None; del __bootstrap__, __loader__
            imp.load_dynamic(__name__,__file__)
        __bootstrap__()
        tw(ttextwraptdedenttlstriptopentwrite(tresourcetpyfilet_stub_templatetf((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/bdist_egg.pyt
write_stub*st	bdist_eggcBs�eZdZdddde�fdd	d
ddfd d!gZd	ddgZd�Zd�Zd�Z	d�Z
d�Zd�Zd�Z
d�Zd�Zd�Zd�ZRS("screate an "egg" distributions
bdist-dir=tbs1temporary directory for creating the distributions
plat-name=tps;platform name to embed in generated filenames (default: %s)sexclude-source-filess+remove all .py files from the generated eggs	keep-temptks/keep the pseudo-installation tree around after s!creating the distribution archives	dist-dir=tds-directory to put final built distributions ins
skip-builds2skip rebuilding everything (for testing/debugging)cCsCd|_d|_d|_d|_d|_d|_d|_dS(Ni(tNonet	bdist_dirt	plat_namet	keep_temptdist_dirt
skip_buildt
egg_outputtexclude_source_files(tself((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/bdist_egg.pytinitialize_optionsOs						cCs�|jd�}|_|j|_|jdkr^|jd�j}tjj|d�|_n|j	dkr|t
�|_	n|jdd�|jdkr�t
dd|j|jt�|jj�o�|j	�j�}tjj|j|d�|_ndS(Ntegg_infotbdistteggR.s.egg(R.R.(tget_finalized_commandtei_cmdR4R+R*t
bdist_baseRRtjoinR,Rtset_undefined_optionsR0Rtegg_nametegg_versionR
tdistributionthas_ext_modulesR.(R2R8R9tbasename((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/bdist_egg.pytfinalize_optionsXs!cCs_|j|jd�_tjjtjjt���}|jj	g}|j_	x�|D]�}t
|t�rt|�dkrtjj
|d�rtjj|d�}tjj|�}||ks�|j|tj�r|t|�d|df}qqn|jj	j|�qVWz0tjd|j�|jddddd�Wd||j_	XdS(	Ntinstalliiisinstalling package data to %stinstall_datatforcetroot(R+R7tinstall_libRRtnormcasetrealpathRR>t
data_filest
isinstancettupletlentisabst
startswithtseptappendRtinfotcall_commandR*(R2t
site_packagestoldtitemRHt
normalized((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/bdist_egg.pytdo_install_dataps !
!'cCs
|jgS(N(R0(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/bdist_egg.pytget_outputs�scKsmx!tD]}|j||j�qW|jd|j�|jd|j�|j||�}|j|�|S(s8Invoke reinitialized command `cmdname` with keyword argsR/tdry_run(tINSTALL_DIRECTORY_ATTRSt
setdefaultR+R/RYtreinitialize_commandtrun_command(R2tcmdnametkwtdirnametcmd((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/bdist_egg.pyRR�s

c	Cs�|jd�tjd|j�|jd�}|j}d|_|jj�rj|j	rj|jd�n|j
ddd�}||_|j�\}}g|_g}x�t
|�D]�\}}tjj|�\}	}
tjj|jt|	�d�}|jj|�tjd	|�|jsAttjj|�|�n|j|�|jtjd
�||<q�W|r�|j|�n|jjr�|j�n|j}tjj|d�}
|j|
�|jjrtjj|
d�}tjd
|�|j
dd|dd�n|j|
�tjj|
d�}|r�tjd|�|js�t|�t |d�}|j!dj|��|j!d�|j"�q�n>tjj#|�r�tjd|�|js�tj$|�q�nt%tjj|d�|j&��tjj'tjj|j(d��r3tj)d�n|j*rI|j+�nt,|j-|d|j.d|jd|j/��|j0s�t1|jd|j�nt2|jdg�jdt3�|j-f�dS(NR4sinstalling library code to %sRBt
build_clibRFtwarn_diris.pyscreating stub loader for %st/sEGG-INFOtscriptssinstalling scripts to %stinstall_scriptstinstall_dirtno_episnative_libs.txts
writing %stwts
sremoving %ssdepends.txtsxWARNING: 'depends.txt' will not be used by setuptools 0.6!
Use the install_requires/extras_require setup() args instead.tverboseRYtmodet
dist_filesR%(4R]RRQR+R7RER*R>thas_c_librariesR/RRtget_ext_outputststubst	enumerateRRRR:RRPRYR$R@treplaceROtbyte_compileRIRWRRetcopy_metadata_toRRRtclosetisfiletunlinktwrite_safety_flagtzip_safetexistsR4twarnR1tzap_pyfilestmake_zipfileR0Rjt
gen_headerR-RtgetattrR
(R2tinstcmdtold_rootRatall_outputstext_outputst
to_compileR'text_nameRtextR!tarchive_rootR4t
script_dirtnative_libst	libs_file((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/bdist_egg.pytrun�sz
				
	

	


	

	$
	
	cCs�tjd�xut|j�D]d\}}}xR|D]J}|jd�r3tjj||�}tjd|�tj	|�q3q3WqWdS(Ns+Removing .py files from temporary directorys.pysDeleting %s(
RRQtwalk_eggR+RRRR:tdebugRv(R2tbasetdirstfilestnameR((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/bdist_egg.pyR{�s

cCsEt|jdd�}|dk	r%|Stjd�t|j|j�S(NRxs4zip_safe flag not set; analyzing archive contents...(R~R>R*RRztanalyze_eggR+Ro(R2tsafe((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/bdist_egg.pyRx�s

c
Cs!tj|jjpd�}|jdi�jd�}|dkrFdS|jsY|jrotd|f��nt	j
d }|j}dj|j�}|jd}t
jj|j�}d	t�}|jstt
jj|j�d
|j�t|jd�}	|	j|�|	j�ndS(Ntssetuptools.installationteggsecutableRsGeggsecutable entry point (%r) cannot have 'extras' or refer to a moduleiRisH#!/bin/sh
if [ `basename $0` = "%(basename)s" ]
then exec python%(pyver)s -c "import sys, os; sys.path.insert(0, os.path.abspath('$0')); from %(pkg)s import %(base)s; sys.exit(%(full)s())" "$@"
else
  echo $0 is not the correct name for this egg file.
  echo Please rename it back to %(basename)s and try again.
  exec false
fi
RYta(R	t	parse_mapR>tentry_pointstgetR*tattrstextrasRtsystversiontmodule_nameR:RRR@R0tlocalsRYRR`RRRt(
R2tepmteptpyvertpkgtfullR�R@theaderR#((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/bdist_egg.pyR}�s*
	

	"

cCs�tjj|j�}tjj|d�}xb|jjjD]Q}|j|�r:tjj||t	|��}t
|�|j||�q:q:WdS(s*Copy metadata (egg info) to the target_dirR�N(RRtnormpathR4R:R8tfilelistR�RNRLRt	copy_file(R2t
target_dirt
norm_egg_infotprefixRttarget((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/bdist_egg.pyRss
cCs�g}g}id|j6}x�tj|j�D]�\}}}xH|D]@}tjj|�dj�tkrE|j|||�qEqEWx3|D]+}|||d|tjj||�<q�Wq/W|j	j
�r�|jd�}x�|jD]�}	t
|	t�rq�n|j|	j�}
|j|
�}tjj|�jd�s�tjjtjj|j|��ry|j|�qyq�q�Wn||fS(sAGet a list of relative paths to C extensions in the output distroR�iRdt	build_extsdl-(R+RtwalkRRtlowertNATIVE_EXTENSIONSRPR:R>R?R7t
extensionsRJR
tget_ext_fullnameR�tget_ext_filenameR@RNRy(R2R�R�tpathsR�R�R�Rt	build_cmdR�tfullname((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/bdist_egg.pyRn*s("
"
-$(s
bdist-dir=R&s1temporary directory for creating the distributionN(sexclude-source-filesNs+remove all .py files from the generated egg(s	dist-dir=R)s-directory to put final built distributions in(s
skip-buildNs2skip rebuilding everything (for testing/debugging)(t__name__t
__module__tdescriptionRR*tuser_optionstboolean_optionsR3RARWRXRRR�R{RxR}RsRn(((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/bdist_egg.pyR%8s4	
							
	Q				'	s.dll .so .dylib .pydccshtj|�}t|�\}}}d|kr@|jd�n|||fVx|D]}|VqUWdS(s@Walk an unpacked egg's contents, skipping the metadata directorysEGG-INFON(RR�tnexttremove(tegg_dirtwalkerR�R�R�tbdf((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/bdist_egg.pyR�Js
c	Cs�xBtj�D]4\}}tjjtjj|d|��r
|Sq
Wt�sRtSt}x�t	|�D]�\}}}xn|D]f}|j
d�s{|j
d�r�q{q{|j
d�s�|j
d�r{t||||�o�|}q{q{WqeW|S(NsEGG-INFOs.pys.pyws.pycs.pyo(tsafety_flagstitemsRRRyR:tcan_scanRtTrueR�Rtscan_module(	R�RotflagtfnR�R�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/bdist_egg.pyR�Us$	
&cCs�x�tj�D]�\}}tjj||�}tjj|�rq|dks^t|�|kr�tj|�q�q
|dk	r
t|�|kr
t	|d�}|j
d�|j�q
q
WdS(NRis
(R�R�RRR:RyR*tboolRvRRRt(R�R�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/bdist_egg.pyRwgs
szip-safesnot-zip-safec
Cs�tjj||�}|d |kr)tS|t|�djtjd�}||r[dp^dtjj|�d}tj	dkr�d}nd}t
|d	�}|j|�tj
|�}	|j�t}
tjt|	��}x<d
dgD].}||kr�tjd||�t}
q�q�Wd
|kr�xZdddddddddddgD].}||krWtjd||�t}
qWqWWn|
S(s;Check whether module possibly uses unsafe-for-zipfile stuffi����iRR�iiiitrbt__file__t__path__s%s: module references %stinspectt	getsourcet
getabsfilet
getsourcefiletgetfilegetsourcelinest
findsourcetgetcommentstgetframeinfotgetinnerframestgetouterframeststackttraces"%s: module MAY be using inspect.%s(ii(RRR:R�RLRqRORR�tversion_infoRtreadtmarshaltloadRttdicttfromkeystiter_symbolsRRzR(
R�R�R�RoRR�RtskipR#tcodeR�tsymbolstbad((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/bdist_egg.pyR�zs6#*	


	ccsyx|jD]}|Vq
WxY|jD]N}t|tj�rC|Vq#t|t�r#xt|�D]}|Vq_Wq#q#WdS(sBYield names and strings used by `code` and its nested code objectsN(tco_namest	co_constsRJRtstring_typesRR�(R�R�tconst((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/bdist_egg.pyR��s	cCsDtjjd�r&tjdkr&tStjd�tjd�dS(Ntjavatclis1Unable to analyze compiled code on this platform.sfPlease ask the author to include a 'zip_safe' setting (either True or False) in the package's setup.py(R�tplatformRNR�RRz(((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/bdist_egg.pyR��s"
RFRgRCtinstall_baseiRc
s�ddl}ttjj|�d��tjd|����fd�}|r\|jn|j}�s�|j	||d|�}	x0tj
��D]\}
}}||	|
|�q�W|	j�n3x0tj
��D]\}
}}|d|
|�q�W|S(sqCreate a zip file from all the files under 'base_dir'.  The output
    zip file will be named 'base_dir' + ".zip".  Uses either the "zipfile"
    Python module (if available) or the InfoZIP "zip" utility (if installed
    and found on the default search path).  If neither tool is available,
    raises DistutilsExecError.  Returns the name of the output zip file.
    i����NRYs#creating '%s' and adding '%s' to itcs�x�|D]y}tjjtjj||��}tjj|�r|t��d}�sm|j||�ntjd|�qqWdS(Nisadding '%s'(	RRR�R:RuRLRRR�(tzR`tnamesR�RR'(tbase_dirRY(s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/bdist_egg.pytvisit�s
!tcompression(
tzipfileRRRR`RRQtZIP_DEFLATEDt
ZIP_STOREDtZipFileR�RtR*(
tzip_filenameR�RjRYtcompressRkR�R�R�R�R`R�R�((R�RYs�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/bdist_egg.pyR|�s	
(2t__doc__tdistutils.errorsRtdistutils.dir_utilRRt	distutilsRttypesRR�RRR�tsetuptools.externRt
pkg_resourcesRRRR	tsetuptools.extensionR
t
setuptoolsRt	sysconfigRR
RtImportErrortdistutils.sysconfigRRR$R%R�R�tsplitR�R�R�RwR�RR�R�R�R�RZR|(((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/bdist_egg.pyt<module>sH


		�			

	"		
	

Hacked By AnonymousFox1.0, Coded By AnonymousFox