ROOTPLOIT
Server: LiteSpeed
System: Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User: niphet (1079)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: //lib/python2.7/site-packages/setuptools/command/easy_install.pyc

fc@sedZddlmZddlmZddlmZmZddlmZmZm	Z	m
Z
ddlmZm
Z
ddlmZmZddlmZdd	lmZdd
lZdd
lZdd
lZdd
lZdd
lZdd
lZdd
lZdd
lZdd
lZdd
lZdd
lZdd
l Z dd
l!Z!dd
l"Z"dd
l#Z#dd
l$Z$dd
l%Z%ddl&m'Z'ddl(m)Z)m*Z*dd
l+m,Z,ddl-m.Z.ddl/m0Z0m1Z1ddl2m3Z3ddl4m5Z5ddl6m7Z7ddl8m9Z9m:Z:m;Z;ddl4m<Z<m=Z=ddl>m?Z?ddl@mAZAmBZBmCZCmDZDmEZEmFZFmGZGmHZHmIZImJZJmKZKmLZLmMZMmNZNmOZOdd
lPZ@ejQdde@jRddddddgZSdZTd ZUe'jVrd!ZWd"ZXnd#ZWd$ZXd%ZYde,fd&YZZd'Z[d(Z\d)Z]d*Z^d+Z_deGfd,YZ`d-e`fd.YZaejbjcd/d0d1kreaZ`nd2Zdd3Zed4Zfd5Zgehd6Zid7Zjd8Zkd9ejlkrekZmn	d:Zmd;d<Znd=Zod>Zpd?Zqydd@lmrZsWnetk
rzdAZsnXdBZrdCeufdDYZvevjwZxdEevfdFYZydGezfdHYZ{dIe{fdJYZ|dKe|fdLYZ}e{j~Z~e{jZdMZdNZeeedOZdPZdQZehdRZe"jdSZd
S(Ts%
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://setuptools.readthedocs.io/en/latest/easy_install.html

i(tglob(tget_platform(tconvert_patht
subst_vars(tDistutilsArgErrortDistutilsOptionErrortDistutilsErrortDistutilsPlatformError(tINSTALL_SCHEMEStSCHEME_KEYS(tlogtdir_util(t
first_line_re(tfind_executableN(tsix(tconfigparsertmap(tCommand(t	run_setup(tget_pathtget_config_vars(trmtree_safe(tsetopt(tunpack_archive(tPackageIndextparse_requirement_argt
URL_SCHEME(t	bdist_eggtegg_info(tWheel(tyield_linestnormalize_pathtresource_stringtensure_directorytget_distributiontfind_distributionstEnvironmenttRequirementtDistributiontPathMetadatatEggMetadatat
WorkingSettDistributionNotFoundtVersionConflicttDEVELOP_DISTtdefaulttcategorytsamefileteasy_installtPthDistributionstextract_wininst_cfgtmaintget_exe_prefixescCstjddkS(NtPi(tstructtcalcsize(((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytis_64bitIscCstjj|o!tjj|}ttjdo9|}|rUtjj||Stjjtjj|}tjjtjj|}||kS(s
    Determine if two paths reference the same file.

    Augments os.path.samefile to work on Windows and
    suppresses errors if the path doesn't exist.
    R/(tostpathtexiststhasattrR/tnormpathtnormcase(tp1tp2t
both_existtuse_samefiletnorm_p1tnorm_p2((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR/Ms$cCs|S(N((ts((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt	_to_ascii_scCs1ytj|dtSWntk
r,tSXdS(Ntascii(Rt	text_typetTruetUnicodeErrortFalse(RE((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytisasciibs

cCs
|jdS(NRG(tencode(RE((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRFjscCs.y|jdtSWntk
r)tSXdS(NRG(RMRIRJRK(RE((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRLms


cCstj|jjddS(Ns
s; (ttextwraptdedenttstriptreplace(ttext((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt<lambda>utcBsreZdZdZeZdddddddddddddddddddddgZdddd
dd-d0d6d9g	Ze	j
rd=e	jZej
d>defej
d>nidd'6ZeZd?Zd@ZdAZedBZdCZdDZdEZdFZdGZdHZdIZdJZdKZej dLj!Z"ej dMj!Z#ej dNj!Z$dOZ%dPZ&dQZ'dRZ(dSZ)dTZ*e+j,dUZ-e.dVZ/e.dWZ0dXZ1edYZ2dZZ3d[Z4d\Z5dd]Z6ed^Z7d_dd`Z8daZ9dbZ:dcZ;ddZ<deZ=dfZ>ej dgj!Z?ej dhZ@didjZAej dkj!ZBdlZCdmZDdnZEdoZFdpZGdqZHdrZIdsZJej dtj!ZKduZLdvZMdwZNeOdxeOdydzd{d|ZPeOdyd}d{d~ZQdZRRS(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=REsinstall 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'tusercCsd|_d|_|_d|_|_|_d|_d|_d|_	d|_
d|_|_d|_
|_|_d|_|_|_d|_|_|_d|_d|_d|_d|_d|_d|_d|_d|_d|_tj rtj!|_"tj#|_$nd|_"d|_$d|_%d|_&d|_'|_(d|_)i|_*t+|_,d|_-|j.j/|_/|j.j0||j.j1ddS(NiR0(2RhtNonetzip_oktlocal_snapshots_oktinstall_dirt
script_dirtexclude_scriptst	index_urlt
find_linkstbuild_directorytargstoptimizetrecordRWtalways_copyt
multi_versionRbtno_depstallow_hoststroottprefixt	no_reportRgtinstall_purelibtinstall_platlibtinstall_headerstinstall_libtinstall_scriptstinstall_datatinstall_basetinstall_platbasetsitetENABLE_USER_SITEt	USER_BASEtinstall_userbaset	USER_SITEtinstall_usersitet
no_find_linkst
package_indextpth_filetalways_copy_fromt	site_dirstinstalled_projectsRKtsitepy_installedt_dry_runtdistributiontverboset_set_command_optionstget_option_dict(tself((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytinitialize_optionssF																								cCs*d|D}tt|j|dS(Ncss9|]/}tjj|s-tjj|r|VqdS(N(R9R:R;tislink(t.0tfilename((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pys	<genexpr>s(tlistRt_delete_path(Rtblockerstextant_blockers((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytdelete_blockersscCsetjd||jrdStjj|o?tjj|}|rNtntj}||dS(NsDeleting %s(	R
tinfotdry_runR9R:tisdirRtrmtreetunlink(RR:tis_treetremover((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRs	%cCs=tjd }td}d}|jtGHtdS(sT
        Render the Setuptools version and installation details, then exit.
        it
setuptoolss=setuptools {dist.version} from {dist.location} (Python {ver})N(tsysRgR"tformattlocalst
SystemExit(tvertdistttmpl((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt_render_versions

c
Cs|jo|jtjjd}tdd\}}i|jjd6|jjd6|jjd6|d6|dd!d	6|d|d
d6|d6|d6|d
6|d6t	tddd6|_
tjr|j
|j
d<|j|j
d<n|j|j|j|jdddd|jdkrI|j|_n|jdkrdt|_n|jdd%|jdd&|jr|jr|j|_|j|_n|jdd'tttj}t|_ |j!dk	rg|j!jdD]}t"jj#|j$^q}xq|D]f}t"jj%|sWt&j'd|q,t||kr|t(|dq,|j j)t|q,Wn|j*s|j+n|j,pd|_,|j |_-xE|jt|jfD]+}||j-kr|j-j.d|qqW|j/dk	rSg|j/jdD]}|j$^q8}	n	dg}	|j0dkr|j1|j,d|j-d |	|_0nt2|j-tj|_3|j4dk	rt5|j4t6j7r|j4j|_4qn	g|_4|j8r|j0j9|j-tjn|js5|j0j:|j4n|jdd(t5|j;t<sy>t<|j;|_;d|j;kod
knst=nWqt=k
rt(d"qXn|j*r|j>rt?d#n|j@st?d$ng|_AdS()NiRztexec_prefixt	dist_nametdist_versiont
dist_fullnamet
py_versionitpy_version_shortitpy_version_nodott
sys_prefixtsys_exec_prefixtabiflagsRTtuserbasetusersiteRlRmRqRRRtinstallRtt,s"%s (in --site-dirs) does not exists$ (in --site-dirs) is not on sys.pathshttps://pypi.python.org/simplet*tsearch_paththostsRss--optimize must be 0, 1, or 2s9Must specify a build directory (-b) when using --editables:No urls, filenames, or requirements specified (see --help)(RlRl(RlRm(RtRt(RsRs(BRgRRtsplitRRtget_nametget_versiontget_fullnametgetattrtconfig_varsRRRRt_fix_install_dir_for_user_sitetexpand_basedirstexpand_dirst_expandRmRiRlRRKtset_undefined_optionsRhR|RRRR:t
get_site_dirst
all_site_dirsRR9t
expanduserRPRR
twarnRtappendRbtcheck_site_dirRotshadow_pathtinsertRxRtcreate_indexR$tlocal_indexRpt
isinstanceRtstring_typesRktscan_egg_linkstadd_find_linksRstintt
ValueErrorRqRRrtoutputs(
RRRzRR=RERRYt	path_itemR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytfinalize_optionss	


	

4
	

.	!			

	cCs|jstjrdS|j|jdkrFd}t|n|j|_|_t	j
jddd}|j|dS(s;
        Fix the install_dir if "--user" was used.
        Ns$User base directory is not specifiedtposixtunixt_user(
RhRRtcreate_home_pathRRiRRRR9tnameRQt
select_scheme(Rtmsgtscheme_name((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRms
cCsx|D]y}t||}|dk	rtjdksFtjdkr[tjj|}nt||j}t|||qqWdS(NRtnt(	RRiR9RR:RRRtsetattr(Rtattrstattrtval((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt
_expand_attrs|s
cCs|jdddgdS(sNCalls `os.path.expanduser` on install_base, install_platbase and
        root.RRRyN(R(R((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRscCs)ddddddg}|j|dS(s+Calls `os.path.expanduser` on install dirs.R|R}RR~RRN(R(Rtdirs((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRs	cCs|j|jjkr(tj|jnzx%|jD]}|j||jq5W|jr|j}|j	rt
|j	}x/tt
|D]}|||||<qWnddlm
}|j|j|j|fd|jn|jWdtj|jjXdS(Ni(t	file_utils'writing list of installed files to '%s'(RRR
t
set_verbosityRrR0RwRtRRytlentranget	distutilsRtexecutet
write_filetwarn_deprecated_options(RtspecRtroot_lentcounterR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytruns$			cCsSytj}Wn&tk
r8tjdtj}nXtjj|j	d|S(sReturn 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(
R9tgetpidt	ExceptiontrandomtrandintRtmaxsizeR:tjoinRl(Rtpid((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytpseudo_tempnames

cCsdS(N((R((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRscCst|j}tjj|d}||jk}|rS|jrS|j}n|jd}tjj	|}y:|rtj
|nt|djtj
|Wn!t
tfk
r|jnX|r|jrt|jn|r)|jdkr2t||j|_q2n	d|_|tttkrVt|_n1|jrtjj	|rt|_d|_n||_dS(s;Verify that self.install_dir is .pth-capable dir, if neededseasy-install.pths.write-testtwN(RRlR9R:RRRvtcheck_pth_processingRR;RtopentclosetOSErrortIOErrortcant_write_to_targetRtno_default_version_msgRRiR1Rt_pythonpathRIR(RtinstdirRtis_site_dirttestfilettest_exists((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRs4		sS
        can'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
        s
        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).
        s
        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://setuptools.readthedocs.io/en/latest/easy_install.html

        Please make the appropriate changes for your system and try again.
        cCsj|jtjd|jf}tjj|jsI|d|j7}n|d|j7}t	|dS(Nis
(
t_easy_install__cant_write_msgRtexc_infoRlR9R:R;t_easy_install__not_exists_idt_easy_install__access_msgR(RR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR	s
 c
Cs<|j}tjd||jd}|d}tjj|}tdd}yQ|rntj|ntjj	|}t
jj|dt
t|d}Wn!ttfk
r|jnSXz|j|jt|jd}tj}tjdkrqtjj|\}}	tjj|d	}
|	jd
ko\tjj|
}|rq|
}qqnddlm}||d
ddgdtjj|rtjd|t
SWd|r|jntjj|rtj|ntjj|rtj|nX|js8tj d|nt!S(s@Empirically verify whether .pth files are supported in inst. dirs Checking .pth file support in %ss.pths.oksz
            import os
            f = open({ok_file!r}, 'w')
            f.write('OK')
            f.close()
            s
texist_okRRspythonw.exes
python.exei(tspawns-Es-ctpassis-TEST PASSED: %s appears to support .pth filesNs+TEST FAILED: %s does NOT support .pth files("RlR
RRR9R:R;t
_one_linerRtdirnamet
pkg_resourcest
py31compattmakedirsRIRRRRtwriteRRRRiRt
executableRRRtlowertdistutils.spawnRRvRRK(
RRRtok_filet	ok_existsRRR]Rtbasenametalttuse_altR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRsV	


	
	cCs|jro|jdroxS|jdD]?}|jd|rHq)n|j|||jd|q)Wn|j|dS(s=Write all the scripts for `dist`, unless scripts are excludedtscriptssscripts/N(Rntmetadata_isdirtmetadata_listdirtinstall_scripttget_metadatatinstall_wrapper_scripts(RRtscript_name((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytinstall_egg_scriptsMscCs|tjj|rhxctj|D]?\}}}x-|D]%}|jjtjj||q8Wq"Wn|jj|dS(N(R9R:RtwalkRRR(RR:tbaseRtfilesR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt
add_output[s

*cCs#|jrtd|fndS(NsjInvalid argument %r: you can't use filenames or URLs with --editable (except via the --find-links option).(RbR(RR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytnot_editablecs	cCsW|js
dStjjtjj|j|jrStd|j|jfndS(Ns2%r already exists in %s; can't do a checkout there(RbR9R:R;RRqtkeyR(RR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytcheck_editableks	'ccsTtjdtjd}zt|VWdtjj|oNtt	|XdS(NRzs
easy_install-(
ttempfiletmkdtempRtutstrR9R:R;RR(Rttmpdir((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt_tmpdiruscCs|js|jn|j\}t|tst|r{|j||jj||}|j	d|||tStj
j|r|j||j	d|||tSt|}n|j||jj|||j|j|j|j}|dkr8d|}|jr)|d7}nt|nB|jtkra|j|||d|S|j	||j||SWdQXdS(Ns+Could not find suitable distribution for %rs2 (--always-copy skips system and development eggs)tUsing(Rbtinstall_site_pyR8RR%RR0Rtdownloadtinstall_itemRiRIR9R:R;RR2tfetch_distributionRWRuRRt
precedenceR,tprocess_distributiontlocation(RRtdepsR7tdlRR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR0~s2	



	
	
cCs|p|j}|p*tjj||k}|p@|jd}|p||jdk	o|tjjt|t|jk}|r|rx4|j|j	D]}|j
|krPqqWt}ntj
dtjj||r!|j|||}xP|D]}|j|||qWn,|j|g}|j||d|d|dk	r}x!|D]}||kr`|Sq`WndS(Ns.eggs
Processing %siR9(RuR9R:RtendswithRRiRRtproject_nameR@RIR
RR!tinstall_eggsR?tegg_distribution(RRR;R7RAtinstall_neededRtdists((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR<s.
	

cCsUt|}xDtD]<}d|}t||dkrt||||qqWdS(s=Sets the install directories by applying the install schemes.tinstall_N(RR	RRiR(RRtschemeR1tattrname((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRs



cGs*|j||jj|||j|jkrF|jj|n|jj||j|||j|j<tj	|j
||||jdr|jr|jj
|jdn|r|jrdS|dk	r|j|jkrtjd|dS|dks#||krD|j}tt|}ntj	d|y(tgj|g|j|j}WnItk
r}tt|n%tk
r}t|jnX|js|jrx9|D].}|j|jkr|j|jqqWntj	d|dS(Nsdependency_links.txtsSkipping dependencies for %ssProcessing dependencies for %ss'Finished processing dependencies for %s(t
update_pthRtaddRR1tremoveR+RR
Rtinstallation_reportthas_metadataRRtget_metadata_linesRuRiRtas_requirementR%R6R)tresolveR0R*RR+treportR(RtrequirementRRARtdistreqtdistrosRc((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR?sB


	
cCsA|jdk	r|jS|jdr*tS|jds=tStS(Nsnot-zip-safeszip-safe(RjRiRPRIRK(RR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytshould_unzipscCstjj|j|j}tjj|rSd}tj||j|j||Stjj|rn|}ntjj	||krtj
|ntj|}t|dkrtjj||d}tjj|r|}qnt
|tj|||S(Ns<%r already exists in %s; build directory %s will not be keptii(R9R:RRqR1R;R
RRRRtlistdirRR!tshutiltmove(RRt
dist_filenamet
setup_basetdstRtcontents((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt
maybe_moves"	
cCs>|jr
dSx*tjj|D]}|j|q#WdS(N(RntScriptWritertbesttget_argstwrite_script(RRRr((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR)s	cCspt|j}t||}|rS|j|t}tj||}n|j|t|ddS(s/Generate a legacy script wrapper and install itR^N(	R6RRtis_python_scriptt_load_templateRRat
get_headerRdRF(RRR*tscript_texttdev_pathRt	is_scripttbody((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR'scCs=d}|r!|jdd}ntd|}|jdS(s
        There are a couple of template scripts in the package. This
        function loads one of them and prepares it for use.
        sscript.tmpls.tmpls (dev).tmplRsutf-8(RQR tdecode(RiRt	raw_bytes((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRf&s
ttc	Cs|jg|D]}tjj|j|^q
tjd||jtjj|j|}|j||jrzdSt	}t
|tjj|rtj|nt
|d|}|j|WdQXt|d|dS(s1Write an executable file to the scripts directorysInstalling %s script to %sNRi(RR9R:RRmR
RR/Rt
current_umaskR!R;RRRtchmod(	RR*R_tmodeRRZttargettmaskR]((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRd5s,
		
cCs|jjdr(|j||gS|jjdrP|j||gS|jjdrx|j||gS|}tjj|r|jdrt|||j	n'tjj
|rtjj|}n|j|r|j
r|dk	r|j|||}ntjj|d}tjj|sttjj|dd}|stdtjj|nt|dkrtd	tjj|n|d
}n|jrtj|j||gS|j||SdS(Ns.eggs.exes.whls.pyssetup.pyRs"Couldn't find a setup script in %sisMultiple setup scripts in %si(RRCtinstall_eggtinstall_exet
install_wheelR9R:tisfileRtunpack_progressRtabspatht
startswithRqRiR`RR;RRRRbR
Rtreport_editabletbuild_and_install(RRR\R7R]tsetup_scripttsetups((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyREIs<"
	cCs[tjj|r3t|tjj|d}nttj|}tj	|d|S(NsEGG-INFOtmetadata(
R9R:RR'RR(t	zipimporttzipimporterR&t
from_filename(Rtegg_pathR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRFus
cCs%tjj|jtjj|}tjj|}|jsLt|n|j|}t	||stjj
|rtjj|rtj
|d|jn2tjj|r|jtj|fd|nyt}tjj
|r*|j|rtjd}}qtjd}}ng|j|rY|j||jd}}n8t}|j|rtjd}}ntjd}}|j|||f|dtjj|tjj|ft|d|Wqtk
rt|dtqXn|j||j|S(NRs	Removing tMovingtCopyingt
Extractings	 %s to %stfix_zipimporter_caches(R9R:RRlR!RyRR!RFR/RRRtremove_treeR;RRRKRzRZR[tcopytreeRXtmkpathtunpack_and_compileRItcopy2Rtupdate_dist_cachesRR/(RRR7tdestinationRtnew_dist_is_zippedR]RV((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRt}sT		
%
	


cCst|}|dkr+td|ntdd|jddd|jdddt}tjj||j	d}||_
|d}tjj|d	}tjj|d
}t|t|||_
|j||tjj|st|d}	|	jdxU|jdD]D\}
}|
d
kr*|	jd|
jddj|fq*q*W|	jntjj|d}|jgtj|D]}
tjj||
d^qtj||d|jd|j|j||S(Ns(%s is not a valid distutils Windows .exeRDRRRgtplatforms.eggs.tmpsEGG-INFOsPKG-INFORsMetadata-Version: 1.0
ttarget_versions%s: %s
t_t-R$iRR(R2RiRR&tgetRR9R:Rtegg_nameR@R!R't	_providert
exe_to_eggR;RRtitemsRQttitleRRRaRcRtmake_zipfileRRRt(RR\R7tcfgRRtegg_tmpt	_egg_infotpkg_infR]tktvRmRr((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRus<	


0
3cst|ggifd}t||g}xD]}|jjdrV|jd}|d}tj|dd|d<tjj	|}j
||j
|tj||qVqVW|jtj
tjj	dtj|xd
D]}	t|	r*tjj	d|	d	}
tjj|
st|
d
}|jdj	t|	d|jqq*q*WdS(s;Extract a bdist_wininst to the directories an egg would usecsL|j}xD]\}}|j|r||t|}|jd}tjj|}|j}|jds|jdrtj	|d|d<dtjj
|dd<j|nI|jdr|dkrdtjj
|dd<j|n|SqW|jd	sHtj
d
|ndS(Nt/s.pyds.dlliiis.pysSCRIPTS/s.pthsWARNING: can't process %s(RRzRRR9R:RRCRtstrip_moduletsplitextRR
RRi(tsrcR^REtoldtnewtpartsRB(Rtnative_libstprefixest
to_compilet	top_level(sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytprocesss$s.pydRis.pysEGG-INFORRs.txtRs
N(RR(R4RRRCRRRR9R:RRt
write_stubtbyte_compiletwrite_safety_flagtanalyze_eggRR;RRR(RR\RRtstubstresRtresourcetpyfileRttxtR]((RRRRRsC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRs6






!cCsAt|}|jsttjj|j|j}tjj|}|j	sdt
|ntjj|rtjj|rt
j|d|j	n2tjj|r|jtj|fd|nz?|j|j|fdtjj|tjj|fWdt|dtX|j||j|S(NRs	Removing sInstalling %s to %sR(Rt
is_compatibletAssertionErrorR9R:RRlRRyRR!RRRRR;RRtinstall_as_eggR!RRRKR/RF(Rt
wheel_pathR7twheelR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRvs.	
%
s(
        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.)
        t	Installedc	Csd}|jr\|jr\|d|j7}|jtttjkr\|d|j7}q\n|j	}|j
}|j}d}|tS(s9Helpful installation message for display to package userss
%(what)s %(eggloc)s%(extras)ss
RT(
RvR{t_easy_install__mv_warningRlRRRR:t_easy_install__id_warningR@RDRgR(	RtreqRtwhatRtegglocRRgtextras((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyROCs			sR
        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.
        cCs-tjj|}tj}d|jtS(Ns
(R9R:RRRt_easy_install__editable_msgR(RRR}Rtpython((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR{\s	cCstjjdttjjdtt|}|jdkrid|jd}|jdd|n"|jdkr|jddn|jr|jdd	nt	j
d
|t|ddj|yt
||Wn-tk
r}td|jdfnXdS(
Nsdistutils.command.bdist_eggsdistutils.command.egg_infoiRiiRs-qs-ns
Running %s %st sSetup script exited with %s(Rtmodulest
setdefaultRRRRRRR
RRRRRRRr(RR}R]RrR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRas 	$c	Csddg}tjdddtjj|}z|jtjj||j||j|||t|g}g}x?|D]7}x.||D]"}|j|j	|j
|qWqW|r|jrtj
d|n|SWdt|tj|jXdS(NRs
--dist-dirRzs
egg-dist-tmp-tdirs+No eggs found in %s (setup script problem?)(R3R4R9R:Rt_set_fetcher_optionsRRR$RtR@RR
RRRR(	RR}R]Rrtdist_dirtall_eggsteggsR1R((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR|us$	

$	

c	Cs|jjdj}d}i}xF|jD]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.
        R0RpRRoRsRxiRRs	setup.cfgN(RpRRoRsRRx(RRtcopyRRQtdictR9R:RRtedit_config(	RR-tei_optstfetch_directivest
fetch_optionsR1Rtsettingstcfg_filename((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRs	cCs|jdkrdSx~|j|jD]l}|jsE|j|jkr$tjd||jj||j|jkr|jj|jqq$q$W|js|j|jj	krtjd|qtjd||jj
||j|jkr|jj|jqn|js|jj
|jdkrtjj|jd}tjj|rotj|nt|d}|j|jj|jd|jqndS(Ns&Removing %s from easy-install.pth files4%s is already the active version in easy-install.pths"Adding %s to easy-install.pth fileRssetuptools.pthtwts
(RRiR1RvR@R
RRNRtpathsRMRRtsaveR9R:RRlRRRRt
make_relativeR(RRRYRR]((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRLs4	
	
 cCstjd|||S(NsUnpacking %s to %s(R
tdebug(RRR^((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRxscsggfd}t|||jjsx<D]1}tj|tjdBd@}t||qNWndS(Ncs|jdr/|jdr/j|n.|jdsM|jdr]j|nj||jr}|pdS(Ns.pys	EGG-INFO/s.dlls.so(RCRzRRxRRi(RR^(Rtto_chmodR(sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytpfsimi(RRRR9tstattST_MODERp(RRRRR]Rq((RRRsC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRs
	
cCstjr
dSddlm}zetj|jd||ddddd|j|jr||d|jddd|jnWdtj|jXdS(Ni(RiRsitforceR(	Rtdont_write_bytecodetdistutils.utilRR
RRRRs(RRR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRs		s
        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://setuptools.readthedocs.io/en/latest/easy_install.html#custom-installation-locations


        Please make the appropriate changes for your system and try again.cCs)|j}||jtjjddfS(Nt
PYTHONPATHRT(t_easy_install__no_default_msgRlR9tenvironR(Rttemplate((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR	s	cCs7|jr
dStjj|jd}tdd}|jd}d}tjj|rtj	d|jt
j|}|j}WdQX|j
dstd	|qn||kr*tjd
||jst|t
j|ddd}|j|WdQXn|j|gnt|_dS(
s8Make sure there's a site.py in the target dir, if neededNssite.pyRs
site-patch.pysutf-8RTsChecking existing site.py in %ss
def __boot():s;%s is not a setuptools-generated site.py; please remove it.sCreating %sRtencoding(RR9R:RRlR RlR;R
RtioRtreadRzRRRR!RRRI(Rtsitepytsourcetcurrenttstrm((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR:s,		
cCs|js
dSttjjd}xftj|jD]R\}}|j|r8tjj	|r8|j
d|tj|dq8q8WdS(sCreate directories under ~.Nt~sos.makedirs('%s', 0o700)i(RhRR9R:RRt	iteritemsRRzRtdebug_printR(RthomeRR:((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR8s	"RRls/$base/lib/python$py_version_short/site-packagesRms	$base/bins$base/Lib/site-packagess
$base/ScriptscGs |jdj}|jr|j}|j|d<|jjtj|j}xH|j	D]7\}}t
||ddkr\t|||q\q\Wnddl
m}xo|D]g}t
||}|dk	r|||}tjdkrtjj|}nt|||qqWdS(NRR-i(RR(tget_finalized_commandRRzRRRR9RtDEFAULT_SCHEMERRRiRRRR:R(RRRRJRRR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRNs 	

N(sprefix=Nsinstallation prefix(szip-okRUsinstall package as a zipfile(s
multi-versionRVs%make apps have to require() a version(RWRXs1force upgrade (searches PyPI for latest versions)(sinstall-dir=RYsinstall package to DIR(sscript-dir=REsinstall scripts to DIR(sexclude-scriptsRZsDon't install scripts(salways-copyR[s'Copy all needed packages to install dir(s
index-url=R\s base URL of Python Package Index(sfind-links=R]s(additional URL(s) to search for packages(sbuild-directory=R^s/download/extract/build in DIR; keep the results(s	optimize=R_slalso 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-unzipR`s*don't install as a zipfile, no matter what(s
site-dirs=Ras)list of directories where .pth files work(RbRcs+Install specified packages in editable form(sno-depsRdsdon't install dependencies(sallow-hosts=Res$pattern(s) that hostnames must match(slocal-snapshots-okRfs(allow building eggs from local checkouts(RgNs"print version information and exit(s
no-find-linksNs9Don't load find-links defined in packages being installed((St__name__t
__module__t__doc__tdescriptionRItcommand_consumes_argumentsRituser_optionstboolean_optionsRRRthelp_msgRtnegative_optRRRRRtstaticmethodRRRRRRRRRRRNROtlstripRRRRRR+R/R0R2t
contextlibtcontextmanagerR8RKR0R<RR?RXR`R)R'RfRdRERFRtRuRRvRRRORR{RR|RRLRxRRRR	R:RRRRR(((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR0xs		

	0				z									*			;				
	$$		'				
	,		6	-	5									%					 	
	cCs.tjjddjtj}td|S(NRRT(R9RRRtpathseptfilterRi(R((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR
es!cCs!g}|jttjg}tjtjkrG|jtjnx2|D]*}|rNtjdkr|jtjj	|ddn|tj
dkr|jtjj	|ddtjd dtjj	|dd	gn%|j|tjj	|ddgtjd
krxd|krutjj
d}|rrtjj	|d
dtjd d}|j|qrquqxqNqNWtdtdf}x*|D]"}||kr|j|qqWtjr|jtjny|jtjWntk
rnXttt|}|S(s&
    Return a list of 'site' dirs
    tos2emxtriscostLibs
site-packagesRtlibRissite-pythontdarwinsPython.frameworktHOMEtLibrarytPythontpurelibtplatlib(RR(textendR
RRzRRRR9R:RtsepRgRRRRRRtgetsitepackagestAttributeErrorRRR(tsitedirsRRzRthome_spt	lib_pathstsite_lib((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRjsV
"		
	
	
ccs^i}xQ|D]I}t|}||kr1q
nd||<tjj|sSq
ntj|}||fVx|D]}|jdsqtn|dkrqtnttjj||}tt	|}|j
xw|D]o}|jdst|j}||krNd||<tjj|s4qn|tj|fVqNqqWqtWq
WdS(sBYield sys.path directories that might contain "old-style" packagesis.pthseasy-install.pthssetuptools.pthtimportN(seasy-install.pthssetuptools.pth(
RR9R:RRYRCRRRRRRztrstrip(tinputstseenRR.RR]tlinestline((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytexpand_pathss4





cCst|d}z^tj|}|dkr1dS|d|d|d}|dkr[dS|j|dtjd|jd\}}}|dkrdS|j|d|id	d
6d	d6}tj	|}yT|j|}	|	j
dd
d}
|
jtj
}
|jtj|
Wntjk
rCdSX|jdsd|jdrhdS|SWd|jXdS(snExtract configuration data from a bdist_wininst .exe

    Returns a configparser.RawConfigParser, or None
    trbi	iiis<iiiizV4i{V4RTRgRsiiRtSetupN(izV4i{V4(Rtzipfilet_EndRecDataRitseekR6tunpackRRtRawConfigParserRRlRtgetfilesystemencodingtreadfpRtStringIOtErrorthas_sectionR(R\R]tendrect	prependedttagtcfglentbmlentinitRtparttconfig((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR2s4$ c
Csdddddg}tj|}zqxj|jD]\}|j}|jd}t|d	kr|d
dkr|djd
r|jddj|d
 dfPqnt|d
ks4|jdrq4n|jdrq4n|dj	dkr4|j
|}tjr+|j
}nxbt|D]Q}|jjdd}|jds8|jd|d|fdfq8q8Wq4q4WWd|jXg|D]\}}	|j|	f^q}|j|j|S(s4Get exe->egg path translations for a given .exe filesPURELIB/RTsPLATLIB/pywin32_system32sPLATLIB/sSCRIPTS/sEGG-INFO/scripts/sDATA/lib/site-packagesRiisPKG-INFOis	.egg-infois	EGG-INFO/s.pths
-nspkg.pthtPURELIBtPLATLIBs\Rs%s/%s/N(sPURELIB/RT(sPLATLIB/pywin32_system32RT(sPLATLIB/RT(sSCRIPTS/sEGG-INFO/scripts/(sDATA/lib/site-packagesRT(R-R.(RtZipFiletinfolistRRRRCRRtupperRRtPY3RlRRPRQRzRRRtsorttreverse(
texe_filenameRRURRRR_tpthRZty((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR4s>		"#"	3+

cBs\eZdZeZddZdZdZedZ	dZ
dZdZRS(	s)A .pth file with Distribution paths in itcCs||_ttt||_ttjj|j|_|j	t
j|gddx6t
|jD]%}tt|jt|tqoWdS(N(RRRRRR9R:Rtbasedirt_loadR$t__init__RiRRRMR#RI(RRRR:((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR:)s	
cCsg|_t}tj|j}tjj|jr3t	|jd}x|D]}|j
drpt}qOn|j}|jj
||jsO|jj
drqOnttjj|j|}|jd<tjj|s||kr|jjt|_qOnd||<qOW|jn|jrO|rOt|_nx.|jr|jdjr|jjqRWdS(NtrtRt#ii(RRKRtfromkeysRR9R:RwRRRzRIRRRPRRR8R;tpoptdirtyR(Rt
saw_importRR]RR:((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR92s2	
"&
	
 cCs|js
dStt|j|j}|rtjd|j|j|}dj	|d}t
jj|jrt
j
|jnt|jd}|j|WdQXn;t
jj|jrtjd|jt
j
|jnt|_dS(s$Write changed .pth file back to diskNs	Saving %ss
RsDeleting empty %s(R?RRRRR
RRt_wrap_linesRR9R:RRRRR;RK(Rt	rel_pathsRtdataR]((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRQs	cCs|S(N((R((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRAgscCsr|j|jko6|j|jkp6|jtjk}|r^|jj|jt|_ntj	||dS(s"Add `dist` to the distribution mapN(
R@RRR9tgetcwdRRIR?R$RM(RRtnew_path((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRMkscCsIx2|j|jkr4|jj|jt|_qWtj||dS(s'Remove `dist` from the distribution mapN(R@RRNRIR?R$(RR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRNys
cCstjjt|\}}t|j}|g}tjdkrKdpQtj}xut||kr||jkr|jtj	|j
|j|Stjj|\}}|j|qWW|SdS(NR(R9R:RRRR8taltsepRRtcurdirR4R(RR:tnpathtlasttbaselenRR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRs	

((
RRRRKR?R:R9RRRARMRNR(((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR1$s					tRewritePthDistributionscBs/eZedZedZedZRS(ccs*|jVx|D]}|VqW|jVdS(N(tpreludetpostlude(tclsRR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRAs
	s?
        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)
        (RRtclassmethodRARRLRM(((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRKs
	tSETUPTOOLS_SYS_PATH_TECHNIQUEtrawtrewritecCs,ttjtrtStjtjjS(s_
    Return a regular expression based on first_line_re suitable for matching
    strings.
    (RRtpatternR6tretcompileRl(((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt_first_line_rescCs|tjtjgkrAtjdkrAt|tj||Stj\}}}t	j
||d|dd||ffdS(NRiis %s %s(R9RRNRRpRtS_IWRITERRRtreraise(tfunctargtexctettevR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt
auto_chmods
'
cCs=t|}t|tj|r/t|n
t|dS(sa

    Fix any globally cached `dist_path` related data

    `dist_path` should be a path of a newly installed egg distribution (zipped
    or unzipped).

    sys.path_importer_cache contains finder objects that have been cached when
    importing data from the original distribution. Any such finders need to be
    cleared since the replacement distribution might be packaged differently,
    e.g. a zipped egg distribution might get replaced with an unzipped egg
    folder or vice versa. Having the old finders cached may then cause Python
    to attempt loading modules from the replacement distribution using an
    incorrect loader.

    zipimport.zipimporter objects are Python loaders charged with importing
    data packaged inside zip archives. If stale loaders referencing the
    original distribution, are left behind, they can fail to load modules from
    the replacement distribution. E.g. if an old zipimport.zipimporter instance
    is used to load data from a new zipped egg archive, it may cause the
    operation to attempt to locate the requested data in the wrong location -
    one indicated by the original distribution's zip archive directory
    information. Such an operation may then fail outright, e.g. report having
    read a 'bad local file header', or even worse, it may fail silently &
    return invalid data.

    zipimport._zip_directory_cache contains cached zip archive directory
    information for all existing zipimport.zipimporter instances and all such
    instances connected to the same archive share the same cached directory
    information.

    If asked, and the underlying Python implementation allows it, we can fix
    all existing zipimport.zipimporter instances instead of having to track
    them down and remove them one by one, by updating their shared cached zip
    archive directory information. This, of course, assumes that the
    replacement distribution is packaged as a zipped egg.

    If not asked to fix existing zipimport.zipimporter instances, we still do
    our best to clear any remaining zipimport.zipimporter related cached data
    that might somehow later get used when attempting to load data from the new
    distribution and thus cause such load operations to fail. Note that when
    tracking down such remaining stale data, we can not catch every conceivable
    usage from here, and we clear only those that we know of and have found to
    cause problems if left alive. Any remaining caches should be updated by
    whomever is in charge of maintaining them, i.e. they should be ready to
    handle us replacing their zip archives with new distributions at runtime.

    N(Rt_uncacheRtpath_importer_cachet!_replace_zip_directory_cache_datat*_remove_and_clear_zip_directory_cache_data(t	dist_pathRtnormalized_path((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRs
<
cCsrg}t|}xY|D]Q}t|}|j|r|||d!tjdfkr|j|qqW|S(sp
    Return zipimporter cache entry keys related to a given normalized path.

    Alternative path spellings (e.g. those using different character case or
    those using alternative path separators) related to the same path are
    included. Any sub-path entries are included as well, i.e. those
    corresponding to zip archives embedded in other zip archives.

    iRT(RRRzR9RR(Rdtcachetresultt
prefix_lentptnp((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt"_collect_zipimporter_cache_entriess

 cCs]xVt||D]E}||}||=|o9|||}|dk	r|||<qqWdS(s
    Update zipimporter cache data for a given normalized path.

    Any sub-path entries are processed as well, i.e. those corresponding to zip
    archives embedded in other zip archives.

    Given updater is a callable taking a cache entry key and the original entry
    (after already removing the entry from the cache), and expected to update
    the entry and possibly return a new one to be inserted in its place.
    Returning None indicates that the entry should not be replaced with a new
    one. If no updater is given, the cache entries are simply removed without
    any additional processing, the same as if the updater simply returned None.

    N(RjRi(RdRetupdaterRht	old_entryt	new_entry((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt_update_zipimporter_cache$s

cCst||dS(N(Rn(RdRe((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR_DscCs#d}t|tjd|dS(NcSs|jdS(N(tclear(R:Rl((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt2clear_and_remove_cached_zip_archive_directory_dataIsRk(RnRt_zip_directory_cache(RdRp((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRbHs	t__pypy__cCs#d}t|tjd|dS(NcSs/|jtj||jtj||S(N(RoRRtupdateRq(R:Rl((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt)replace_cached_zip_archive_directory_data_s

Rk(RnRRq(RdRt((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRa^s	
s<string>cCs7yt||dWnttfk
r.tSXtSdS(s%Is this string a valid Python script?texecN(RUtSyntaxErrort	TypeErrorRKRI(RRR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt	is_pythonqs
cCsVy1tj|dd}|jd}WdQXWnttfk
rK|SX|dkS(sCDetermine if the specified executable is a .sh (contains a #! line)Rslatin-1iNs#!(RRRRR(Rtfptmagic((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytis_sh{scCstj|gS(s@Quote a command line argument according to Windows parsing rules(t
subprocesstlist2cmdline(RZ((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytnt_quote_argscCsb|jds|jdr"tSt||r5tS|jdr^d|jdjkStS(sMIs this text, as a whole, a Python script? (as opposed to shell/bat/etc.
    s.pys.pyws#!Ri(RCRIRxRzt
splitlinesRRK(RhR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRes(RpcGsdS(N((Rr((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt_chmodscCsQtjd||yt||Wn&tjk
rL}tjd|nXdS(Nschanging mode of %s to %oschmod failed: %s(R
RRR9terror(R:RqRc((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRps
tCommandSpeccBseZdZgZeZedZedZedZ	edZ
edZdZe
dZdZe
d	Ze
d
ZRS(sm
    A command spec for a #! header, specified as a list of arguments akin to
    those passed to Popen.
    cCs|S(sV
        Choose the best CommandSpec class based on environmental conditions.
        ((RN((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRbscCs(tjjtj}tjjd|S(Nt__PYVENV_LAUNCHER__(R9R:R=RRRR(RNt_default((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt_sys_executablescCsOt||r|St|tr,||S|dkrB|jS|j|S(sg
        Construct a CommandSpec from a parameter to build_scripts, which may
        be None.
        N(RRRitfrom_environmenttfrom_string(RNtparam((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt
from_params

cCs||jgS(N(R(RN((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRscCstj||j}||S(s}
        Construct a command spec from a simple string representing a command
        line parseable by shlex.split.
        (tshlexRt
split_args(RNtstringR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRscCsMtj|j||_tj|}t|sIdg|jd*ndS(Ns-xi(RRt_extract_optionstoptionsR|R}RL(RRhtcmdline((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytinstall_optionsscCsQ|djd}tj|}|rA|jdpDdnd}|jS(sH
        Extract any options from the first line of the script.
        s
iiRT(RRVtmatchtgroupRP(torig_scripttfirstRR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRs!cCs|j|t|jS(N(t_renderRR(R((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt	as_headerscCsDd}x7|D]/}|j|r
|j|r
|dd!Sq
W|S(Ns"'ii(RzRC(titemt_QUOTEStq((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt
_strip_quotess

cCs%tjd|D}d|dS(Ncss$|]}tj|jVqdS(N(RRRP(RR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pys	<genexpr>ss#!s
(R|R}(RR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRs(RRRRRRRORbRRRRRRRRRR(((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRs			
	tWindowsCommandSpeccBseZedeZRS(R(RRRRKR(((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRsRacBseZdZejdjZeZe	dedZe	dedZ
e	ddZedZe	dZe	dZe	dZe	d	dd
ZRS(s`
    Encapsulates behavior around writing entry point scripts for console and
    gui apps.
    s
        # EASY-INSTALL-ENTRY-SCRIPT: %(spec)r,%(group)r,%(name)r
        __requires__ = %(spec)r
        import re
        import sys
        from pkg_resources import load_entry_point

        if __name__ == '__main__':
            sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
            sys.exit(
                load_entry_point(%(spec)r, %(group)r, %(name)r)()
            )
    cCsMtjdt|rtntj}|jd||}|j||S(NsUse get_argsRT(twarningsRtDeprecationWarningtWindowsScriptWriterRaRbtget_script_headerRc(RNRRtwininsttwritertheader((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytget_script_argsscCsNtjdt|rd}n|jjj|}|j||jS(NsUse get_headers
python.exe(RRRtcommand_spec_classRbRRR(RNRhRRtcmd((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR!s	
ccs|dkr|j}nt|j}xdD]}|d}xn|j|jD]W\}}|j||jt}|j	||||}	x|	D]}
|
VqWqZWq4WdS(s
        Yield write_script() argument tuples for a distribution's
        console_scripts and gui_scripts entry points.
        tconsoletguit_scriptsN(RR(
RiRgR6RRt
get_entry_mapRt_ensure_safe_nameRRt_get_script_args(RNRRRttype_RRtepRhRrR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRc+s

"

cCs+tjd|}|r'tdndS(s?
        Prevent paths in *_scripts entry point names.
        s[\\/]s+Path separators not allowed in script namesN(RTtsearchR(Rthas_path_sep((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR=scCs*tjdt|r tjS|jS(NsUse best(RRRRRb(RNt
force_windows((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt
get_writerFscCs?tjdks-tjdkr7tjdkr7tjS|SdS(sD
        Select the best ScriptWriter for this environment.
        twin32tjavaRN(RRR9Rt_nameRRb(RN((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRbLs-
ccs|||fVdS(N((RNRRRRh((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRVsRTcCs/|jjj|}|j||jS(s;Create a #! line, getting options (if any) from script_text(RRbRRR(RNRhRR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRg[s
N(RRRRNRORRRRRORiRKRRRcRRRRbRRg(((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRas 		
RcBsYeZeZedZedZedZedZe	dZ
RS(cCstjdt|jS(NsUse best(RRRRb(RN((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRfscCs2tdtd|}tjjdd}||S(sC
        Select the best ScriptWriter suitable for Windows
        RtnaturaltSETUPTOOLS_LAUNCHER(RtWindowsExecutableLauncherWriterR9RR(RNt
writer_lookuptlauncher((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRbls
	c
cstdddd|}|tjdjjdkr`djt}tj|t	nddd	d
dddg}|j
||j||}g|D]}||^q}	||||d
|	fVdS(s For Windows, add a .py extensionRs.pyaRs.pywtPATHEXTt;sK{ext} not listed in PATHEXT; scripts will not be recognized as executables.s.pys
-script.pys.pycs.pyos.exeRnN(RR9RRRRRRRtUserWarningRNt_adjust_header(
RNRRRRhtextRRRZR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRys"
cCsud}d}|dkr(||}}ntjtj|tj}|jd|d|}|j|rq|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.exeRRtrepl(RTRUtescapet
IGNORECASEtsubt_use_header(RNRtorig_headerRSRt
pattern_obt
new_header((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRscCs/|dd!jd}tjdkp.t|S(s
        Should _adjust_header use the replaced header?

        On non-windows systems, always use. On
        Windows systems, only use the replaced header if it resolves
        to an executable on the system.
        iit"R(RPRRR
(Rtclean_header((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRs	(RRRRRORRbRRRR(((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRcs
RcBseZedZRS(ccs|dkr$d}d}dg}nd}d}dddg}|j||}g|D]}	||	^qX}
||||d	|
fV|d
t|dfVts|d}|t|d	fVnd
S(sG
        For Windows, add a .py extension and an .exe launcher
        Rs-script.pyws.pywtclis
-script.pys.pys.pycs.pyoRns.exeR^s
.exe.manifestN(Rtget_win_launcherR8tload_launcher_manifest(RNRRRRht
launcher_typeRRthdrRZRtm_name((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRs	
(RRROR(((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRscCsGd|}tr(|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.exet.s-64.s-32.R(R8RQR (ttypetlauncher_fn((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRs

	cCs>tjtd}tjr&|tS|jdtSdS(Nslauncher manifest.xmlsutf-8(RR RRtPY2tvarsRl(Rtmanifest((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRs	cCstj|||S(N(RZR(R:t
ignore_errorstonerror((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRscCs tjd}tj||S(Ni(R9tumask(ttmp((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRos
cCsMddl}tjj|jd}|tjd<tjj|tdS(Nii(	RR9R:Rt__path__RtargvRR3(Rtargv0((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt	bootstraps

csddlm}ddlmdffdY}|dkrXtjd}nt;|ddd	d
g|dtjdpd	d
||WdQXdS(Ni(tsetup(R&tDistributionWithoutHelpCommandscseZdZfdZRS(RTcs'tj|||WdQXdS(N(t_patch_usaget
_show_help(RRrtkw(R&(sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRs
(RRtcommon_usageR((R&(sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRsitscript_argss-qR0s-vR*it	distclass(RRtsetuptools.distR&RiRRR(RRRR((R&sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR3s
c#seddl}tjdjfd}|jj}||j_z	dVWd||j_XdS(Nise
        usage: %(script)s [options] requirement_or_url ...
           or: %(script)s --help
        cstdtjj|S(Ntscript(RR9R:R!(R*(tUSAGE(sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt	gen_usage	s	(tdistutils.coreRNRORtcoreR(RRtsaved((RsC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR	s	(RRRRRRtdistutils.errorsRRRRtdistutils.command.installRR	RR
Rtdistutils.command.build_scriptsRRR
RR9RRZR3RRTRRRNRRR6RR|RRtsetuptools.externRtsetuptools.extern.six.movesRRRRtsetuptools.sandboxRtsetuptools.py31compatRRtsetuptools.py27compatRtsetuptools.commandRtsetuptools.archive_utilRtsetuptools.package_indexRRRRRtsetuptools.wheelRRRRR R!R"R#R$R%R&R'R(R)R*R+R,tpkg_resources.py31compattfilterwarningst
PEP440Warningt__all__R8R/RRFRLRR0R
RRR2R4R1RKRRRVR^RRjRiRnR_Rbtbuiltin_module_namesRaRxR{R~ReRpRtImportErrorRRRtsys_executableRtobjectRaRRRRRRRKRRoRR3RR(((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt<module>s"d									A	)	)	'l				R	 				
	
		

	T`A