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

�
�/{Yc@s^dZddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZddlZddl
Z
ddlZddlmZddlmZmZddlZddlmZmZddlmZddlmZmZddlmZdd	lmZmZdd
l m!Z!m"Z"m#Z#m$Z$ddl%m&Z&m'Z'ddl(m)Z)dd
l*m+Z+ddl,m-Z-ddl,m.Z.ddl(m/Z/m0Z0ddl1m2Z2m3Z3m4Z4m5Z5m6Z6ddlm7Z7m8Z8m9Z9m:Z:m;Z;m<Z<m=Z=m>Z>m?Z?m@Z@mAZAmBZBmCZCmDZDmEZEejFjGdejHjIejJ��ZKddddddgZLd�ZMd�ZNejOdfkr�d�ZPd�ZQnd�ZPd �ZQdefd!��YZRd"�ZSd#�ZTd$�ZUd%�ZVd&�ZWde=fd'��YZXeKeYd(�ZZd)�Z[d*�Z\d+�Z]d,d-�Z^d.�Z_d/�Z`d0�Zaydd1lmbZcWnedk
r�d2�ZcnXd3�Zbd4�Zed5effd6��YZgd7egfd8��YZhd9ehfd:��YZiegjjZjd;�Zkd<�ZleYe[d=�Zmd>�Znd?�Zoepd@�ZqdS(As
Easy Install
------------

A tool for doing automatic download/extract/build of distutils-based Python
packages.  For detailed documentation, see the accompanying EasyInstall.txt
file, or visit the `EasyInstall home page`__.

__ https://pythonhosted.org/setuptools/easy_install.html

i����N(tglob(tlogtdir_util(tCommandt_dont_write_bytecode(t	run_setup(tget_pathtget_config_vars(tget_platform(tconvert_patht
subst_vars(tDistutilsArgErrortDistutilsOptionErrortDistutilsErrortDistutilsPlatformError(tINSTALL_SCHEMEStSCHEME_KEYS(tsetopt(tunpack_archive(tPackageIndex(t
URL_SCHEME(t	bdist_eggtegg_info(t	iteritemstmaxsizet
basestringtunicodetreraise(tyield_linestnormalize_pathtresource_stringtensure_directorytget_distributiontfind_distributionstEnvironmenttRequirementtDistributiontPathMetadatatEggMetadatat
WorkingSettDistributionNotFoundtVersionConflicttDEVELOP_DISTt__VENV_LAUNCHER__tsamefileteasy_installtPthDistributionstextract_wininst_cfgtmaintget_exe_prefixescCstjd�dkS(NtPi(tstructtcalcsize(((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pytis_64bit@scCs�tjj|�o!tjj|�}ttjd�o9|}|rUtjj||�Stjjtjj|��}tjjtjj|��}||kS(NR,(tostpathtexiststhasattrR,tnormpathtnormcase(tp1tp2t
both_existtuse_samefiletnorm_p1tnorm_p2((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR,Cs$icCs|S(N((ts((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyt	_to_asciiMscCs.yt|d�tSWntk
r)tSXdS(Ntascii(RtTruetUnicodeErrortFalse(RB((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pytisasciiOs


cCs
|jd�S(NRD(tencode(RB((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyRCVscCs.y|jd�tSWntk
r)tSXdS(NRD(RIRERFRG(RB((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyRHXs


cBs�eZdZdZeZdtdudvdwdxdydzd{d|d}d~dd�d�d�d�d�d�d�d�d�gZdddd
dd-d0d6d9g	Ze	j
r�d=e	jZej
d>dsef�ej
d>�nidd'6ZeZd?�Zd@�ZdA�ZdB�ZdC�ZdD�ZdE�ZdF�ZdG�ZdH�ZdI�ZdJ�ZdK�ZdL�ZdM�ZdN�Z e!dO�Z"e!dP�Z#dQ�Z$edR�Z%dS�Z&dT�Z'dU�Z(dsdV�Z)dWd�dX�Z*dY�Z+dZ�Z,d[�Z-d\�Z.d]�Z/d^d_�Z0d`�Z1da�Z2db�Z3dc�Z4dd�Z5de�Z6df�Z7dg�Z8dh�Z9di�Z:dj�Z;e<dke<dldmdndo��Z=e<dldpdndq�Z>dr�Z?RS(�s'Manage a download/build/install processs Find/get/install Python packagessprefix=sinstallation prefixszip-oktzsinstall package as a zipfiles
multi-versiontms%make apps have to require() a versiontupgradetUs1force upgrade (searches PyPI for latest versions)sinstall-dir=tdsinstall package to DIRsscript-dir=RBsinstall scripts to DIRsexclude-scriptstxsDon't install scriptssalways-copytas'Copy all needed packages to install dirs
index-url=tis base URL of Python Package Indexsfind-links=tfs(additional URL(s) to search for packagessbuild-directory=tbs/download/extract/build in DIR; keep the resultss	optimize=tOslalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0]srecord=s3filename in which to record list of installed filessalways-unziptZs*don't install as a zipfile, no matter whats
site-dirs=tSs)list of directories where .pth files workteditabletes+Install specified packages in editable formsno-depstNsdon't install dependenciessallow-hosts=tHs$pattern(s) that hostnames must matchslocal-snapshots-oktls(allow building eggs from local checkoutstversions"print version information and exits
no-find-linkss9Don't load find-links defined in packages being installeds!install in user site-package '%s'tusercCs�tjr3tjjt�}|jtj�|_n	d|_d|_
|_d|_|_
|_d|_d|_d|_d|_d|_|_d|_|_|_d|_|_|_d|_|_|_d|_d|_d|_ d|_!d|_"d|_#d|_$d|_%d|_&tjrQtj'|_(tj|_)nd|_(d|_)d|_*d|_+d|_,|_-d|_.i|_/t0|_1d|_2|j3j4|_4|j3j5||j3j6d��dS(NiR-(7tsitetENABLE_USER_SITER6R7tabspatht__file__t
startswitht	USER_SITER]tNonetzip_oktlocal_snapshots_oktinstall_dirt
script_dirtexclude_scriptst	index_urlt
find_linkstbuild_directorytargstoptimizetrecordRLtalways_copyt
multi_versionRWtno_depstallow_hoststroottprefixt	no_reportR\tinstall_purelibtinstall_platlibtinstall_headerstinstall_libtinstall_scriptstinstall_datatinstall_basetinstall_platbaset	USER_BASEtinstall_userbasetinstall_usersitet
no_find_linkst
package_indextpth_filetalways_copy_fromt	site_dirstinstalled_projectsRGtsitepy_installedt_dry_runtdistributiontverboset_set_command_optionstget_option_dict(tselftwhereami((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pytinitialize_options�sL																									cCs�x�|D]�}tjj|�s1tjj|�rtjd|�|js�tjj|�r|tjj|�r|t|�q�tj	|�q�qqWdS(NsDeleting %s(
R6R7R8tislinkRtinfotdry_runtisdirtrmtreetunlink(R�tblockerstfilename((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pytdelete_blockers�s
$	%
c
	Cs�|jr(dtd�jGHtj�ntjj�d}tdd�\}}i|jj�d6|jj�d6|jj	�d6|d	6|dd
!d6|d|dd
6|d6|d6|d6|d6t
tdd�d6|_tj
r|j|jd<|j|jd<n|jr�tj
r�|j�|jdkrFtd��n|j|_|_tjdkrx|jd�q�|jtjd�n|j�|j�|jdddd�|jdkr�|j|_n|jdkr�t|_n|j dd+�|j dd,�|jr?|j!r?|j!|_|j"|_n|j dd-�t#t$tj%�}t&�|_'|j(dk	r'g|j(jd �D]}tj%j)|j*��^q�}xq|D]f}tj%j+|�s�t,j-d!|�q�t$|�|kr
t.|d"��q�|j'j/t$|��q�Wn|j0s=|j1�n|j2pId#|_2|j'|_3xE|jt$|j�fD]+}||j3kru|j3j4d|�ququW|j5dk	r�g|j5jd �D]}|j*�^q�}	n	d$g}	|j6dkr |j7|j2d%|j3d&|	�|_6nt8|j3tj%�|_9|j:dk	rrt;|j:t<�r{|j:j�|_:q{n	g|_:|j=r�|j6j>|j3tj%�n|js�|j6j?|j:�n|j dd.�t;|j@tA�sCy>tA|j@�|_@d|j@kodknstB�nWqCtBk
r?t.d(��qCXn|j0re|jCretDd)��n|jEs}tDd*��ng|_FdS(/Ns
setuptools %st
setuptoolsiRutexec_prefixt	dist_nametdist_versiont
dist_fullnamet
py_versionitpy_version_shortitpy_version_nodott
sys_prefixtsys_exec_prefixtabiflagsttuserbasetusersites$User base directory is not specifiedtposixt	unix_usert_userRgRhRlR�RzR{tinstallRot,s"%s (in --site-dirs) does not exists$ (in --site-dirs) is not on sys.pathshttps://pypi.python.org/simplet*tsearch_paththostsRns--optimize must be 0, 1, or 2s9Must specify a build directory (-b) when using --editables:No urls, filenames, or requirements specified (see --help)(sinstall_dirsinstall_dir(sinstall_dirs
script_dir(srecordsrecord(soptimizesoptimize(GR\R tsystexittsplitRR�tget_nametget_versiontget_fullnametgetattrtconfig_varsR^R_R�R�R]tcreate_home_pathRdRR}R~R6tnamet
select_schemetexpand_basedirstexpand_dirst_expandRhRgR�RGtset_undefined_optionsRwR{tmapRR7t
get_site_dirst
all_site_dirsR�t
expandusertstripR�RtwarnRtappendRWtcheck_site_dirRjtshadow_pathtinsertRsR�tcreate_indexR"tlocal_indexRkt
isinstanceRRftscan_egg_linkstadd_find_linksRntintt
ValueErrorRlRRmtoutputs(
R�R�RuR�R:RBR�RNt	path_itemR�((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pytfinalize_options�s�	
	


		7
	

.	!			

	cCs�x�|D]y}t||�}|dk	rtjdksFtjdkr[tjj|�}nt||j�}t|||�qqWdS(NR�tnt(	R�RdR6R�R7R�R
R�tsetattr(R�tattrstattrtval((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyt
_expand_attrsMs
cCs|jdddg�dS(sNCalls `os.path.expanduser` on install_base, install_platbase and
        root.R}R~RtN(R�(R�((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR�VscCs#|jddddddg�dS(s+Calls `os.path.expanduser` on install dirs.RwRxRzRyR{R|N(R�(R�((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR�[scCs|j|jjkr(tj|j�nz�x%|jD]}|j||j�q5W|jr�|j}|j	r�t
|j	�}x/tt
|��D]}|||||<q�Wnddlm
}|j|j|j|fd|j�n|j�Wdtj|jj�XdS(Ni����(t	file_utils'writing list of installed files to '%s'(R�R�Rt
set_verbosityRmR-RrRoR�Rttlentranget	distutilsR�texecutet
write_filetwarn_deprecated_options(R�tspecR�troot_lentcounterR�((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pytrunas$			cCsFytj�}Wntjdt�}nXtjj|jd|�S(s�Return a pseudo-tempname base in the install directory.
        This code is intentionally naive; if a malicious party can write to
        the target directory you're already in deep doodoo.
        istest-easy-install-%s(R6tgetpidtrandomtrandintRR7tjoinRg(R�tpid((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pytpseudo_tempnamews
cCsdS(N((R�((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR��scCs�t|j�}tjj|d�}||jk}|rS|jrS|j�}n�|j�d}tjj	|�}y:|r�tj
|�nt|d�j�tj
|�Wn!t
tfk
r�|j�nX|r�|jr�t|j���n|r)|jdkr2t||j�|_q2n	d|_tjjdd�jtj�}|ttg|D]}|rc|^qc�kr�t|_n1|jr�tjj	|�r�t|_d|_n||_dS(s;Verify that self.install_dir is .pth-capable dir, if neededseasy-install.pths.write-testtwt
PYTHONPATHR�N(RRgR6R7R�R�Rqtcheck_pth_processingR�R8R�topentclosetOSErrortIOErrortcant_write_to_targetR
tno_default_version_msgR�RdR.tenvirontgetR�tpathsepR�RER�(R�tinstdirR�tis_site_dirttestfilettest_existsR�t_f((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR��s6	!.	cCs_d}|tj�d|jf}tjj|j�sE|d7}n
|d7}t|��dS(Nscan't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    %s

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    %s
is�
This directory does not currently exist.  Please create it and try again, or
choose a different installation directory (using the -d or --install-dir
option).
sK
Perhaps your account does not have write access to this directory?  If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account.  If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.

For information on other options, you may wish to consult the
documentation at:

  https://pythonhosted.org/setuptools/easy_install.html

Please make the appropriate changes for your system and try again.
(R�texc_infoRgR6R7R8R
(R�ttemplatetmsg((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR��s
cCs-|j}tjd|�|j�d}|d}tjj|�}y]|r^tj|�ntjj|�}tjj|�s�tj	|�nt
|d�}Wn!ttfk
r�|j
�nHXz�|jd|f�|j�d}tj}tjdkrbtjj|�\}}tjj|d�}	|j�dkrbtjj|	�rb|	}qbnd	d
lm}
|
|ddd
gd�tjj|�r�tjd|�tSWd|r�|j�ntjj|�r�tj|�ntjj|�rtj|�nX|js)tjd|�ntS(s@Empirically verify whether .pth files are supported in inst. dirs Checking .pth file support in %ss.pths.okR�s7import os; f = open(%r, 'w'); f.write('OK'); f.close()
R�spythonw.exes
python.exei����(tspawns-Es-ctpassis-TEST PASSED: %s appears to support .pth filesNs+TEST FAILED: %s does NOT support .pth files(RgRR�R�R6R7R8R�tdirnametmakedirsR�R�R�R�twriteR�RdR�t
executableR�R�R�tlowertdistutils.spawnR�RERqR�RG(R�R�R�tok_filet	ok_existsRRRRtbasenametaltR�((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR��sP	

	$
	cCs�|jro|jd�roxS|jd�D]?}|jd|�rHq)n|j|||jd|��q)Wn|j|�dS(s=Write all the scripts for `dist`, unless scripts are excludedtscriptssscripts/N(Ritmetadata_isdirtmetadata_listdirtinstall_scripttget_metadatatinstall_wrapper_scripts(R�tdisttscript_name((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pytinstall_egg_scriptsscCs|tjj|�rhxctj|�D]?\}}}x-|D]%}|jjtjj||��q8Wq"Wn|jj|�dS(N(R6R7R�twalkR�R�R�(R�R7tbasetdirstfilesR�((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyt
add_outputs

*cCs#|jrtd|f��ndS(NsjInvalid argument %r: you can't use filenames or URLs with --editable (except via the --find-links option).(RWR(R�R�((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pytnot_editables	cCsW|js
dStjjtjj|j|j��rStd|j|jf��ndS(Ns2%r already exists in %s; can't do a checkout there(RWR6R7R8R�RltkeyR(R�R�((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pytcheck_editable$s	'cCs�tjdd�}d}|js.|j�nzYt|t�s�t|�r�|j|�|j	j
||�}|jd|||t�St
jj|�r�|j|�|jd|||t�St|�}n|j|�|j	j|||j|j|j|j�}|dkrDd|}|jr5|d7}nt|��nB|jtkrm|j|||d�|S|j||j||�SWdt
jj|�r�t|�nXdS(NRus
easy_install-s+Could not find suitable distribution for %rs2 (--always-copy skips system and development eggs)tUsing(ttempfiletmkdtempRdRWtinstall_site_pyR�R#RRR�tdownloadtinstall_itemRER6R7R8tparse_requirement_argRtfetch_distributionRLRpR�R
t
precedenceR*tprocess_distributiontlocationR�(R�R�tdepsttmpdirR RR�((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR-.s:	



	
	
cCs�|p|j}|p*tjj|�|k}|p@|jd�}|p||jdk	o|tjjt|��t|j�k}|r�|r�x4|j|j	D]}|j
|kr�Pq�q�Wt}ntj
dtjj|��|r!|j|||�}xP|D]}|j|||�qWn,|j|�g}|j||d|d�|dk	r}x!|D]}||kr`|Sq`WndS(Ns.eggs
Processing %siR(RpR6R7RtendswithR�RdRR�tproject_nameR&RERR�R	tinstall_eggsR%tegg_distribution(R�R�R R(R'tinstall_neededRtdists((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR!Ws.
	

cCsUt|}xDtD]<}d|}t||�dkrt||||�qqWdS(s=Sets the install directories by applying the install schemes.tinstall_N(RRR�RdR�(R�R�tschemeRtattrname((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR�{s



c
Gs4|j|�|jj|�|jj|�|j|�||j|j<tj|j	|||��|j
d�r�|jr�|jj|j
d��n|r�|jr�dS|dk	r�|j|jkr�tjd|�dS|dks�||kr0|j�}|p|}t|j|j|j�}ntjd|�y(tg�j|g|j|j�}Wngtk
r�tj�d}td|j��n4tk
r�tj�d}td|j��nX|js�|jr x9|D].}|j|jkr�|j|j��q�q�Wntjd|�dS(Nsdependency_links.txtsSkipping dependencies for %ssProcessing dependencies for %sis'Could not find required distribution %ss7Installed distribution %s conflicts with requirement %ss'Finished processing dependencies for %s( t
update_pthR�taddR�RR�RRR�tinstallation_reportthas_metadataR�R�tget_metadata_linesRpRdR�tas_requirementR#R*tspecstextrasR'tresolveR-R(R�R�R
RmR)R�(R�trequirementRR'R�tdistreqtdistrosRX((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR%�sL


	


cCsA|jdk	r|jS|jd�r*tS|jd�s=tStS(Nsnot-zip-safeszip-safe(ReRdR5RERG(R�R((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pytshould_unzip�scCstjj|j|j�}tjj|�rSd}tj||j|j|�|Stjj|�rn|}n�tjj	|�|kr�tj
|�ntj|�}t|�dkr�tjj||d�}tjj|�r�|}q�nt
|�tj||�|S(Ns<%r already exists in %s; build directory %s will not be keptii(R6R7R�RlRR8RR�R�RR�tlistdirR�Rtshutiltmove(R�R�t
dist_filenamet
setup_basetdstR�tcontents((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyt
maybe_move�s"	
cCs4|js0x$t|�D]}|j|�qWndS(N(Ritget_script_argstwrite_script(R�RRm((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR�s	cs�t|j��}t||�}�fd�}|rwd�|rW�jdd��nt|�|��t�}n|j|t|�d�dS(s/Generate a legacy script wrapper and install itcs4td��}|jd�}|jdd�}|S(sm
            There are a couple of template scripts in the package. This
            function loads one of them and prepares it for use.

            These templates use triple-quotes to escape variable
            substitutions so the scripts get the 2to3 treatment when build
            on Python 3. The templates cannot use triple-quotes naturally.
            R�sutf-8s"""R�(Rtdecodetreplace(R�t	raw_bytesttemplate_strtclean_template(t
template_name(sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pytget_template�s	sscript template.pys.pys	 (dev).pyRSN(tstrR7tis_python_scriptRJtget_script_headertlocalsRHRC(R�RRtscript_texttdev_pathR�t	is_scriptRO((RNsP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR�s	ttc	Cs�|jg|D]}tjj|j|�^q
�tjd||j�tjj|j|�}|j|�t�}|j	s�t
|�tjj|�r�tj|�nt
|d|�}|j|�|j�t|d|�ndS(s1Write an executable file to the scripts directorysInstalling %s script to %sR�i�N(R�R6R7R�RhRR�Rt
current_umaskR�RR8R�R�RR�tchmod(	R�RREtmodeR�ROttargettmaskRR((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyRH�s,
		


cCs�|j�jd�r(|j||�gS|j�jd�rP|j||�gS|}tjj|�r�|jd�r�t|||j�n'tjj	|�r�tjj
|�}n|j|�r�|jr�|dk	r�|j|||�}ntjj|d�}tjj|�s�ttjj|dd��}|s[tdtjj
|���nt|�dkr�tdtjj
|���n|d	}n|jr�tj|j||��gS|j||�SdS(
Ns.eggs.exes.pyssetup.pyR�s"Couldn't find a setup script in %sisMultiple setup scripts in %si(RR)tinstall_eggtinstall_exeR6R7tisfileRtunpack_progressR�R`RbRlRdRFR�R8RR
R�RWRR�treport_editabletbuild_and_install(R�R�RBR(RCtsetup_scripttsetups((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR+s4"
	cCs[tjj|�r3t|tjj|d��}nttj|��}tj	|d|�S(NsEGG-INFOtmetadata(
R6R7R�R%R�R&t	zipimporttzipimporterR$t
from_filename(R�tegg_pathRe((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR,+s!cCs�tjj|jtjj|��}tjj|�}|jsLt|�n|j|�}t	||�s�tjj
|�r�tjj|�r�tj
|d|j�n2tjj|�r�|jtj|fd|�nt|�tjj
|�r+|j|�rtjd}}q�tjd}}na|j|�rZ|j|�|jd}}n2|j|�r|tjd}}ntjd}}|j|||f|dtjj|�tjj|�f�n|j|�|j|�S(NR�s	Removing tMovingtCopyingt
Extractings	 %s to %s(R6R7R�RgR	R`R�RR,R,R�R�Rtremove_treeR8R�R�tuncache_zipdirRbR@RAtcopytreeR>tmkpathtunpack_and_compiletcopy2RR(R�RiR(tdestinationRRRRK((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR]2s4$	
% 

)
cCs�t|�}|dkr+td|��ntdd|jdd�d|jdd�dt��}tjj||j	�d�}|_
|d}tjj|d	�}tjj|d
�}t|�t||�|_
|j||�tjj|�s}t|d�}	|	jd�xU|jd�D]D\}
}|
d
kr(|	jd|
jdd�j�|f�q(q(W|	j�ntjj|d�}|jgt|�D]}
tjj||
d�^q��tj||d|jd|j�|j||�S(Ns(%s is not a valid distutils Windows .exeR*ReR�R\tplatforms.eggs.tmpsEGG-INFOsPKG-INFOR�sMetadata-Version: 1.0
ttarget_versions%s: %s
t_t-RiR�R�(R/RdR
R$R�RR6R7R�tegg_nameR&RR%t	_providert
exe_to_eggR8R�RtitemsRJttitleR�R�RGRtmake_zipfileR�R�R](R�RBR(tcfgRRitegg_tmpt	_egg_infotpkg_infRRtktvRhRm((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR^Ss8&


0
3cs�t|��g�g�i������fd�}t|�|�g}x��D]�}|j�jd�rV|jd�}|d}tj|d�d|d<tjj	�|�}�j
|�|j
|�tj||�qVqVW|j��tj
tjj	�d�tj�|��x�d
D]�}	t�|	r*tjj	�d|	d	�}
tjj|
�s�t|
d
�}|jdj	t�|	�d�|j�q�q*q*WdS(s;Extract a bdist_wininst to the directories an egg would usecsL|j�}x�D]\}}|j|�r||t|�}|jd�}tjj�|�}|j�}|jd�s�|jd�r�tj	|d�|d<d�tjj
|d�d<�j|�nI|jd�r|dkrd�tjj
|d�d<�j|�n|SqW|jd	�sHtj
d
|�ndS(Nt/s.pyds.dlli����iis.pysSCRIPTS/s.pthsWARNING: can't process %s(RRbR�R�R6R7R�R)Rtstrip_moduletsplitextR�RR�Rd(tsrcRDRBtoldtnewtpartstdl(Rtnative_libstprefixest
to_compilet	top_level(sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pytprocess�s$s.pydR�i����s.pysEGG-INFOR�R�s.txtR�s
N(s	top_levelsnative_libs(R1RRR)R�RR�R6R7R�R�t
write_stubtbyte_compiletwrite_safety_flagtanalyze_eggRSR8R�RR�(R�RBRR�tstubstresR�tresourcetpyfileR�ttxtRR((RR�R�R�R�sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyRz}s4






!t	Installedc	Cszd}|jrN|jrN|d7}|jtttj�krN|d7}qNn|j}|j}|j	}d}|t
�S(s9Helpful installation message for display to package userss
%(what)s %(eggloc)s%(extras)ss�

Because this distribution was installed --multi-version, before you can
import modules from this package in an application, you will need to
'import pkg_resources' and then use a 'require()' call similar to one of
these examples, in order to select the desired version:

    pkg_resources.require("%(name)s")  # latest installed version
    pkg_resources.require("%(name)s==%(version)s")  # this exact version
    pkg_resources.require("%(name)s>=%(version)s")  # this version or higher
s�

Note also that the installation directory must be on sys.path at runtime for
this to work.  (e.g. by being the application's script directory, by being on
PYTHONPATH, or by being added to sys.path by your code.)
R�(RqRvRgR�RR�R7R&R*R\RS(	R�treqRtwhatR�tegglocR�R\R9((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR4�s

			cCs&tjj|�}tj}dt�S(Ns"
Extracted editable version of %(spec)s to %(dirname)s

If it uses setuptools in its setup script, you can activate it in
"development" mode by going to that directory and running::

    %(python)s setup.py develop

See the setuptools documentation for the "develop" command for more info.
(R6R7RR�RRS(R�R�RcRtpython((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyRa�s		cCs$tjjdt�tjjdt�t|�}|jdkrid|jd}|jdd|�n"|jdkr�|jdd�n|jr�|jdd	�nt	j
d
|t|�ddj|��yt
||�Wn;tk
rtj�d}td|jdf��nXdS(
Nsdistutils.command.bdist_eggsdistutils.command.egg_infoiR�iiRws-qs-ns
Running %s %st sSetup script exited with %s(R�tmodulest
setdefaultRRtlistR�R�R�RR�R�R�Rt
SystemExitR�R
Rm(R�RcRCRmR�((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR�s"	$
c	Csddg}tjdddtjj|��}z�|jtjj|��|j|�|j|||�t|g�}g}x?|D]7}x.||D]"}|j|j	|j
|��q�Wq�W|r�|jr�tj
d|�n|SWdt|�tj|j�XdS(NRs
--dist-dirRus
egg-dist-tmp-tdirs+No eggs found in %s (setup script problem?)(RRR6R7Rt_set_fetcher_optionsR�RR"R]R&R�RR�R�R�R�(	R�RcRCRmtdist_dirtall_eggsteggsRR((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyRb�s$	

$	

c	Cs�|jjd�j�}d}i}xF|j�D]8\}}||krOq1n|d||jdd	�<q1Wtd|�}tjj|d
�}t	j
||�dS(
s
        When easy_install is about to run bdist_egg on a source dist, that
        source dist might have 'setup_requires' directives, requiring
        additional fetching. Ensure the fetcher options given to easy_install
        are available to that command as well.
        R-RkR�RjRnRsiRvRws	setup.cfgN(s
find_linkss	site_dirss	index_urlsoptimizes	site_dirssallow_hosts(R�R�tcopyR{RJtdictR6R7R�Rtedit_config(	R�Rtei_optstfetch_directivest
fetch_optionsRR�tsettingstcfg_filename((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR�s	cCs�|jdkrdSx~|j|jD]l}|jsE|j|jkr$tjd|�|jj|�|j|jkr�|jj|j�q�q$q$W|js|j|jj	kr�tjd|�qtjd|�|jj
|�|j|jkr|jj|j�qn|js�|jj
�|jdkr�tjj|jd�}tjj|�rotj|�nt|d�}|j|jj|j�d�|j�q�ndS(Ns&Removing %s from easy-install.pth files4%s is already the active version in easy-install.pths"Adding %s to easy-install.pth fileR�ssetuptools.pthtwts
(R�RdRRqR&RR�tremoveR�tpathsR3R�R�tsaveR6R7R�RgR�R�R�Rt
make_relativeR�(R�RRNR�RR((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR2s4	
	
 cCstjd||�|S(NsUnpacking %s to %s(Rtdebug(R�R�RD((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR`@scs�g�g����fd�}t|||��j���js�x<�D]1}tj|�tjdBd@}t||�qNWndS(Ncs�|jd�r/|jd�r/�j|�n.|jd�sM|jd�r]�j|�n�j||��jr}|p�dS(Ns.pys	EGG-INFO/s.dlls.so(R)RbR�R`R�Rd(R�RD(R�tto_chmodR�(sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pytpfIsimi�(RR�R�R6tstattST_MODERY(R�RiRsR�RRRZ((R�R�R�sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyRqEs
	
cCs�tr|jd�dSddlm}zetj|jd�||ddddd|j�|jr�||d|jddd|j�nWdtj|j�XdS(	Ns%byte-compiling is disabled, skipping.i����(R�iRnitforceR�(	RR�tdistutils.utilR�RR�R�R�Rn(R�R�R�((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR�Xs
	cCs&d}||jtjjdd�fS(Ns�bad install directory or PYTHONPATH

You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from.  The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    %s

and your PYTHONPATH environment variable currently contains:

    %r

Here are some of your options for correcting the problem:

* You can choose a different installation directory, i.e., one that is
  on PYTHONPATH or supports .pth files

* You can add the installation directory to the PYTHONPATH environment
  variable.  (It must then also be on PYTHONPATH whenever you run
  Python and want to use the package(s) you are installing.)

* You can set up the installation directory to support ".pth" files by
  using one of the approaches described here:

  https://pythonhosted.org/setuptools/easy_install.html#custom-installation-locations

Please make the appropriate changes for your system and try again.R�R�(RgR6R�R�(R�R�((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR�kscCs?|jr
dStjj|jd�}tdd�}d}tjj|�r�tjd|j�t	|d�}|j
�}tjd
kr�|j
�}n|j�|jd	�s�td
|��q�n||kr2tjd|�|jst|�t	|d�}|j|�|j�n|j|g�nt|_dS(s8Make sure there's a site.py in the target dir, if neededNssite.pyR�s
site-patch.pyR�sChecking existing site.py in %strbis
def __boot():s;%s is not a setuptools-generated site.py; please remove it.sCreating %stwb(i(R�R6R7R�RgRR8RR�R�treadR�tversion_infoRIR�RbR
R�R�RRR�RE(R�tsitepytsourcetcurrentRR((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR�s2	
	


cCs�|js
dSttjjd��}xct|j�D]R\}}|j|�r5tjj|�r5|j	d|�tj
|d�q5q5WdS(sCreate directories under ~.Nt~sos.makedirs('%s', 0700)i�(R]R	R6R7R�RR�RbR�tdebug_printR(R�thomeR�R7((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR��s	"R�Rgs/$base/lib/python$py_version_short/site-packagesRhs	$base/bins$base/Lib/site-packagess
$base/ScriptscGs |jd�j}|jr�|j�}|j|d<|jjtj|j�}xH|j	�D]7\}}t
||d�dkr\t|||�q\q\Wnddl
m}xo|D]g}t
||�}|dk	r�|||�}tjdkrtjj|�}nt|||�q�q�WdS(NR�Ri����(R
R�(tget_finalized_commandR�RuR�RR�R6R�tDEFAULT_SCHEMER{R�RdR�R�R
R7R�(R�R�R�R0R�R�R
((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR��s 	

N(sprefix=Nsinstallation prefix(szip-okRJsinstall package as a zipfile(s
multi-versionRKs%make apps have to require() a version(supgradeRMs1force upgrade (searches PyPI for latest versions)(sinstall-dir=RNsinstall package to DIR(sscript-dir=RBsinstall scripts to DIR(sexclude-scriptsROsDon't install scripts(salways-copyRPs'Copy all needed packages to install dir(s
index-url=RQs base URL of Python Package Index(sfind-links=RRs(additional URL(s) to search for packages(sbuild-directory=RSs/download/extract/build in DIR; keep the results(s	optimize=RTslalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0](srecord=Ns3filename in which to record list of installed files(salways-unzipRUs*don't install as a zipfile, no matter what(s
site-dirs=RVs)list of directories where .pth files work(seditableRXs+Install specified packages in editable form(sno-depsRYsdon't install dependencies(sallow-hosts=RZs$pattern(s) that hostnames must match(slocal-snapshots-okR[s(allow building eggs from local checkouts(sversionNs"print version information and exit(s
no-find-linksNs9Don't load find-links defined in packages being installed((@t__name__t
__module__t__doc__tdescriptionREtcommand_consumes_argumentsRdtuser_optionstboolean_optionsR^R_Rcthelp_msgR�tnegative_optRR�R�R�R�R�R�R�R�R�R�R�R�R�RRRRRGR-R!R�R%R>RFRRRHR+R,R]R^RzR4RaRRbR�R2R`RqR�R�RR�R�RR�R�(((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR-_s�		

	3	
	�								*	'	0				
)$		/					(		!	*	2	
				$					$	
	cCsgtjjdd�jtj�D]}|r"|^q"}tjg}tjtjkrk|jtj�nx,|D]$}|rrtj	dkr�|jtj
j|dd��n|tjdkr|j
tj
j|dd	tjd
 d�tj
j|dd�g�n%|j
|tj
j|dd�g�tj	dkr�d
|kr�tjjd�}|r�|jtj
j|ddtjd
 d��q�q�q�qrqrWtd�td�f}x*|D]"}||kr�|j|�q�q�Wtjr�|jtj�nttt|��}|S(NR�R�tos2emxtriscostLibs
site-packagesR�tlibR�issite-pythontdarwinsPython.frameworktHOMEtLibrarytPythontpurelibtplatlib(sos2emxsriscos(R6R�R�R�R�R�RuR�R�RtR7R�tseptextendR\RR^R_RcR�R�R(R�tsitedirsR�RuR�t	lib_pathstsite_lib((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR��sF+
"

	ccs^i}xQ|D]I}t|�}||kr1q
nd||<tjj|�sSq
ntj|�}||fVx�|D]�}|jd�s�qtn|dkr�qtnttjj||��}tt	|��}|j
�xw|D]o}|jd�s�t|j��}||krNd||<tjj|�s4q�n|tj|�fVqNq�q�WqtWq
WdS(sBYield sys.path directories that might contain "old-style" packagesis.pthseasy-install.pthssetuptools.pthtimportN(seasy-install.pthssetuptools.pth(
RR6R7R�R?R)R�R�R�RR�Rbtrstrip(tinputstseenRRR�RRtlinestline((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pytexpand_pathss4





cCs�t|d�}z�tj|�}|dkr1dS|d|d|d}|dkr[dS|j|d�ddlm}m}ddl}|j	d	|j
d��\}}}	|dkr�dS|j|d|�|jidd
6dd6�}
y~|j
|�}tj
dkr'tdg�}ntd�}|j|d�d}
|
jtj��}
|
j||
��Wn|jk
r�dSX|
jd�s�|
jd�r�dS|
SWd|j�XdS(snExtract configuration data from a bdist_wininst .exe

    Returns a ConfigParser.RawConfigParser, or None
    R�i	iiii����(tStringIOtConfigParserNs<iiiizV4i{V4R�R\RuiiiRetSetup(izV4i{V4(ii(R�tzipfilet_EndRecDataRdtseektsetuptools.compatR�R�R3tunpackR�tRawConfigParserR�R�tbytestchrR�RItgetfilesystemencodingtreadfptErrorthas_sectionR�(RBRRtendrect	prependedR�R�R3ttagtcfglentbmlenR~tpartt	null_bytetconfig((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR/0s<$ c
Cs�dddddg}tj|�}zwxp|j�D]b}|j}|jd�}t|�d	kr�|d
dkr�|djd
�r�|jddj|d
 �df�Pq�nt|�d
ks4|jd�r�q4n|jd�r�q4n|dj	�dkr4|j
|�}tjdkr1|j
�}nxbt|�D]Q}|j�jdd�}|jd�s>|jd|d|fdf�q>q>Wq4q4WWd|j�Xg|D]\}}	|j�|	f^q�}|j�|j�|S(s4Get exe->egg path translations for a given .exe filesPURELIB/R�sPLATLIB/pywin32_system32sPLATLIB/sSCRIPTS/sEGG-INFO/scripts/sDATA/lib/site-packagesR�iisPKG-INFOis	.egg-infois	EGG-INFO/s.pths
-nspkg.pthtPURELIBtPLATLIBs\R�s%s/%s/N(sPURELIB/R�(sPLATLIB/pywin32_system32R�(sPLATLIB/R�(sSCRIPTS/sEGG-INFO/scripts/(sDATA/lib/site-packagesR�(R�R(i(R�tZipFiletinfolistR�R�R�R)R�R�tupperR�R�R�RIRR�RJRbR�R�Rtsorttreverse(
texe_filenameR�RJR�R�R�REtpthROty((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR1_s<		"#"3+

cCs<ytj|�SWn$tk
r7td|f��nXdS(Ns1Not a URL, existing file, or requirement spec: %r(R#tparseR�R
(R�((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR"�s

cBsMeZdZeZdd�Zd�Zd�Zd�Zd�Z	d�Z
RS(s)A .pth file with Distribution paths in itcCs�||_ttt|��|_ttjj|j��|_|j	�t
j|gdd�x6t
|j�D]%}tt|jt|t���qoWdS(N(R�R�R�RR�R6R7Rtbasedirt_loadR"t__init__RdRR�R3R!RE(R�R�R�R7((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR�s	
cCs�g|_t}tj|j�}tjj|j�r3t	|jd�}x�|D]�}|j
d�rpt}qOn|j�}|jj
|�|j�sO|j�j
d�r�qOnttjj|j|��}|jd<tjj|�s�||kr|jj�t|_qOnd||<qOW|j�n|jrO|rOt|_nx.|jr|jdj�r|jj�qRWdS(NtrtR�t#i����i(R�RGR�tfromkeysR�R6R7R_R�R�RbRER�R�R�RR�R
R8tpoptdirtyR�(R�t
saw_importR�RRR�R7((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR�s2	
"&
	
 cCs�|js
dSdjt|j|j��}|r�tjd|j�d|}tj	j
|j�rvtj|j�nt|jd�}|j
|�|j�n;tj	j|j�r�tjd|j�tj|j�nt|_dS(s$Write changed .pth file back to diskNs
s	Saving %ss�import sys; sys.__plen = len(sys.path)
%s
import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new)
R�sDeleting empty %s(RR�R�R�R�RR�R�R6R7R�R�R�RR�R8RG(R�tdataRR((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR��s 	

cCsl|j|jkrX|j|jks9|jtj�krX|jj|j�t|_ntj	||�dS(s"Add `dist` to the distribution mapN(
R&R�R�R6tgetcwdR�RERR"R3(R�R((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR3�scCsIx2|j|jkr4|jj|j�t|_qWtj||�dS(s'Remove `dist` from the distribution mapN(R&R�R�RERR"(R�R((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR��s
cCs�tjjt|��\}}t|j�}|g}tjdkrKdpQtj}xut|�|kr�||jkr�|jtj	�|j
�|j|�Stjj|�\}}|j|�qWW|SdS(NR�(R6R7R�RR�R
taltsepR�R�tcurdirRR�(R�R7tnpathtlasttbaselenR�R�((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR��s	

((R�R�R�RGRRRR�R3R�R�(((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR.�s				
	cCs)ddlm}t|jt�s=tj|jj��}n|dj�d}|j	|�}d}|r�|j
d�p~d}|r�d|}q�n|r�d}nt|�}d	t�}t
|�s	|r|j�jd
�rd|j�d}qq	d}nt||�}d	t�}|S(s;Create a #! line, getting options (if any) from script_texti����(t
first_line_res
iR�iR�s
python.exes#!%(executable)s%(options)s
Rws -x(tdistutils.command.build_scriptsRR�tpatternRPtretcompileRIt
splitlinestmatchtgrouptnt_quote_argRSRHR�Rbtfix_jython_executable(RTRtwininstRtfirstR toptionsthdr((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyRR�s,	
	
cCsz|tjkr8tjdkr8t|tj�||�Stj�\}}}t||d|dd||ff�dS(NR�iis %s %s(	R6R�R�RYR�tS_IWRITER�R�R(tfunctargtexctettevRv((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyt
auto_chmods

cCs1ddlm}t||�t|tj�dS(s?Ensure that the importer caches dont have stale info for `path`i����(t_zip_directory_cacheN(RfR/t_uncacheR�tpath_importer_cache(R7tzdc((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyRns
cCsT||kr||=n:t|�}x+|D]#}t|�|kr)||=dSq)WdS(N(R(R7tcachetp((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR0#s

s<string>cCs7yt||d�Wnttfk
r.tSXtSdS(s%Is this string a valid Python script?texecN(RtSyntaxErrort	TypeErrorRGRE(ttextR�((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyt	is_python-s
cCsNy)t|�}|jd�}|j�Wnttfk
rC|SX|dkS(sCDetermine if the specified executable is a .sh (contains a #! line)is#!(R�R�R�R�R�(Rtfptmagic((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pytis_sh6scCsg}t}d}d|kp'd|k}|r@|jd�nx�|D]z}|dkrf|d7}qG|dkr�|jd|dd�d}qG|r�|jd|�d}n|j|�qGW|r�|jd|�n|r|jd|�|jd�nd	j|�S(
s@Quote a command line argument according to Windows parsing rulesiR�s	t"s\iis\"R�(RGR�R�(R*tresultt	needquotetnbtc((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR"?s,

		cCsb|jd�s|jd�r"tSt||�r5tS|jd�r^d|j�dj�kStS(sMIs this text, as a whole, a Python script? (as opposed to shell/bat/etc.
    s.pys.pyws#!R�i(R)RER9RbRRRG(RTR�((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyRQ`s(RYcGsdS(N((Rm((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyt_chmodqscCs_tjd||�yt||�Wn4tjk
rZtj�d}tjd|�nXdS(Nschanging mode of %s to %oischmod failed: %s(RR�RBR6terrorR�R�(R7RZRX((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyRYsscCsntjjd�rjt|�rjddl}|jjjd�dkrI|S|r_tj	d�qjd|Sn|S(Ntjavai����sos.nametLinuxs�WARNING: Unable to adapt shebang line for Jython, the following script is NOT executable
         see http://bugs.jython.org/issue1112 for more information.s/usr/bin/env %s(
R�RtRbR<RDtlangtSystemtgetPropertyRR�(RR&RD((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR#{s
tScriptWritercBsVeZdZejd�j�Zeee	d��Z
ed��Zed��ZRS(s`
    Encapsulates behavior around writing entry point scripts for console and
    gui apps.
    s6
        # EASY-INSTALL-ENTRY-SCRIPT: %(spec)r,%(group)r,%(name)r
        __requires__ = %(spec)r
        import sys
        from pkg_resources import load_entry_point

        if __name__ == '__main__':
            sys.exit(
                load_entry_point(%(spec)r, %(group)r, %(name)r)()
            )
    c
cs�|j|�}t|j��}td||�}xvdD]n}|d}x[|j|�j�D]D\}	}
|jt�}x%|j||	||�D]}|Vq�Wq`Wq:WdS(sW
        Yield write_script() argument tuples for a distribution's entrypoints
        R�tconsoletguit_scriptsN(sconsolesgui(	t
get_writerRPR7RRt
get_entry_mapR{R�RSt_get_script_args(
tclsRRR$t	gen_classR�theaderttype_R!R�tepRTR�((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyRG�s

"
cCs#|stjdkrtj�S|S(Ntwin32(R�RttWindowsScriptWriterRM(RPt
force_windows((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyRM�s
ccs|||fVdS(N((RPRSR�RRRT((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyRO�s(
R�R�R�ttextwraptdedenttlstripR�tclassmethodtsys_executableRGRGRMRO(((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyRI�s
RVcBs5eZed��Zed��Zed��ZRS(cCs2tdtd|�}tjjdd�}||S(s:
        Get a script writer suitable for Windows
        RtnaturaltSETUPTOOLS_LAUNCHER(R�tWindowsExecutableLauncherWriterR6R�R�(RPt
writer_lookuptlauncher((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyRM�s
	c	cs�tdddd�|}|tjdj�jd�krRtjd|t�nddd	d
dddg}|j|�|j	||�}g|D]}||^q�}||||d
|fVdS(s For Windows, add a .py extensionRJs.pyaRKs.pywtPATHEXTt;sH%s not listed in PATHEXT; scripts will not be recognized as executables.s.pys
-script.pys.pycs.pyos.exeRWN(
R�R6R�RR�twarningsR�tUserWarningR�t_adjust_header(	RPRSR�RRRTtextR�ROR�((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyRO�s"	
cCs�d}d}|dkr(||}}ntjtj|�tj�}|jd|d|�}|dd!jd�}tjd	kr�tj	j
|�r�|S|S(
s�
        Make sure 'pythonw' is used for gui and and 'python' is used for
        console (regardless of what sys.executable is).
        spythonw.exes
python.exeRKtstringtreplii����R=RU(RRtescapet
IGNORECASEtsubR�R�RtR6R7R8(RStorig_headerRRit
pattern_obt
new_headertclean_header((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyRf�s"(R�R�R[RMROtstaticmethodRf(((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyRV�s

R_cBseZed��ZRS(ccs�|dkr$d}d}dg}nd}d}dddg}|j||�}g|D]}	||	^qX}
||||d	|
fV|d
t|�dfVt�s�|d}|t|�d	fVnd
S(sG
        For Windows, add a .py extension and an .exe launcher
        RKs-script.pyws.pywtclis
-script.pys.pys.pycs.pyoRWs.exeRSs
.exe.manifestN(Rftget_win_launcherR5tload_launcher_manifest(RPRSR�RRRTt
launcher_typeRgR�R'ROR�tm_name((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyRO�s	
(R�R�R[RO(((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR_�scCstd|}tj�j�dkr7|jdd�}nt�rU|jdd�}n|jdd�}td|�S(s�
    Load the Windows launcher (executable) suitable for launching a script.

    `type` should be either 'cli' or 'gui'

    Returns the executable as a byte string.
    s%s.exetarmt.s-arm.s-64.s-32.R�(RttmachineRRJR5R(ttypetlauncher_fn((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyRs
s
	cCsHtjtd�}tjddkr0|t�S|jd�t�SdS(Nslauncher manifest.xmliisutf-8(t
pkg_resourcesRR�R�R�tvarsRI(R�tmanifest((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyRtscCst|rd�}n|dkr*d�}ng}ytj|�}Wn-tjk
rr|tj|tj��nXx�|D]�}tjj||�}ytj|�j	}Wntjk
r�d}nXt
j|�r�t|||�qzytj
|�Wqztjk
r*|tj
|tj��qzXqzWytj|�Wn-tjk
ro|tj|tj��nXdS(s�Recursively delete a directory tree.

    This code is taken from the Python 2.4 version of 'shutil', because
    the 2.3 version doesn't really work right.
    cWsdS(N((Rm((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pytonerror,scWs�dS(N((Rm((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR/siN(RdR6R?RCR�R�R7R�tlstattst_modeR�tS_ISDIRR�R�trmdir(R7t
ignore_errorsRtnamesR�tfullnameRZ((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR�%s2

!cCs tjd�}tj|�|S(Ni(R6tumask(ttmp((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyRXHs
cCsMddl}tjj|jd�}|tjd<tjj|�t�dS(Ni����i(	R�R6R7Rt__path__R�targvR�R0(R�targv0((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyt	bootstrapMs

cs�ddlm�ddlm�ddl�d��fd����fd��d�f��fd��Y��dkr�tjd	�n�����fd
��dS(Ni����(tsetup(R$sLusage: %(script)s [options] requirement_or_url ...
   or: %(script)s --help
cs�tdtjj|��S(Ntscript(R�R6R7R	(R(tUSAGE(sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyt	gen_usage_s	cs7�jj}z��j_|�SWd|�j_XdS(N(tcoreR�(RRt
old_gen_usage(R�R�(sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyt
with_ei_usageds
tDistributionWithoutHelpCommandscs eZdZ��fd�ZRS(R�cs �����fd��dS(Ncs�j����S(N(t
_show_help((R$RmtkwR�(sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyt<lambda>ps((R�RmR�(R$R�(RmR�R�sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR�os(R�R�tcommon_usageR�((R$R�(sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR�lsic	s6�ddddg�dtjdp)dd���S(Ntscript_argss-qR-s-vRit	distclass(R�R�((R�R�R�R�(sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR�us(R�R�tsetuptools.distR$tdistutils.coreRdR�R�(R�R�((	R$R�R�R�R�R�R�R�R�sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyR0Us(rR�R�R6RfR@RR�RR�R�RtRXRdR^R3RR�RRR|R�RRtsetuptools.sandboxRtsetuptools.py31compatRRR�RR	R
tdistutils.errorsRRR
Rtdistutils.command.installRRtsetuptools.commandRtsetuptools.archive_utilRtsetuptools.package_indexRRRRR�RRRRRRRRRR R!R"R#R$R%R&R'R(R)R*R�R�R7R:RR\t__all__R5R,R�RCRHR-R�R�R/R1R"R.RGRRR.RnR0R9R<R"RQRYRBtImportErrorR#tobjectRIRVR_RGRsRtR�RXR�RdR0(((sP/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/easy_install.pyt<module>
s�"(d						����~	.	)	/	&	j			
				!	


		..			#		

Zerion Mini Shell 1.0