Viewing File: /usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyc


hc@sdZddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlmZddlZddl
mZmZddlmZddlmZmZy,ddlmZmZdZd	ZWn9ek
r=dd
lmZmZdZdZnXdd
lmZddlmZm Z ddl!m"Z"m#Z#m$Z$m%Z%ddl&m'Z'm(Z(ddl)m*Z*ddl+m,Z,ddl-m.Z.ddl-m/Z/ddl)m0Z0m1Z1ddl2m3Z3m4Z4m5Z5m6Z6m7Z7m8Z8ddlm9Z9m:Z:m;Z;m<Z<m=Z=m>Z>m?Z?m@Z@mAZAmBZBmCZCmDZDmEZEmFZFmGZGdejHkrejHdZInejJjKejLZIddddddgZMddlNZNejOdkoeNjPZQddlRZRd ZSd!ZTejUd"fkr:d#ZVd$ZWnd%ZVd&ZWdefd'YZXd(ZYd)ZZd*Z[d+Z\d,Z]de?fd-YZ^eIe_d.Z`d/Zad0Zbd1Zcd2d3Zdd4Zed5Zfd6Zgydd7lmhZiWnek
r&d8ZinXd9Zhd:ZjeIe_d;Zkd<Zld=Zme_ead>Znd?Zod@ZpeqdAZrdS(BsEasy 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

iN(tglob(tCommandt_dont_write_bytecode(t	run_setup(tlogtdir_util(tget_config_varstget_pathcCs
tdS(Ntplatlib(R(((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt_get_platlibscCs
tdS(Ntpurelib(R(((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt_get_purelib!s(Rtget_python_libcCs
ttS(N(RtTrue(((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR	%scCs
ttS(N(RtFalse(((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR's(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	iteritemstmaxsizetxranget
basestringtunicodetreraise(tyield_linestnormalize_pathtresource_stringtensure_directorytget_distributiontfind_distributionstEnvironmenttRequirementtDistributiontPathMetadatatEggMetadatat
WorkingSettDistributionNotFoundtVersionConflicttDEVELOP_DISTt__VENV_LAUNCHER__tsamefileteasy_installtPthDistributionstextract_wininst_cfgtmaintget_exe_prefixess2.6cCstjddkS(NtPi(tstructtcalcsize(((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytis_64bitKscCsttjdrItjj|rItjj|rItjj||Stjjtjj|tjjtjj|kS(NR4(thasattrtostpathtexistsR4tnormpathtnormcase(tp1tp2((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR4Ns
$icCs|S(N((ts((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt	_to_asciiYscCs.yt|dtSWntk
r)tSXdS(Ntascii(R"R
tUnicodeErrorR(RF((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytisascii[s


cCs
|jdS(NRH(tencode(RF((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRGbscCs.y|jdtSWntk
r)tSXdS(NRH(RKR
RIR(RF((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRJds


cBseZdZdZeZdzd{d|d}d~ddddddddddddddddddgZdddd
ddd"d1d4d:d=gZe	rej
dAdydBejfej
dAnidd+6Z
eZdCZdDZdEZdFZdGZdHZdIZdJZdKZdLZdMZdNZdOZdPZdQZdRZe dSZ!e dTZ"dUZ#edVZ$dWZ%dXZ&dYZ'dydZZ(d[dd\Z)d]Z*d^Z+d_Z,d`Z-daZ.dbZ/dcZ0dddeZ1dfZ2dgZ3dhZ4diZ5djZ6dkZ7dlZ8dmZ9dnZ:doZ;dpZ<e=dqe=drdsdtduZ>e=drdvdtdwZ?dxZ@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=RFsinstall 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 packagessdelete-conflictingtDs no longer needed; don't use thissignore-conflicts-at-my-risksbuild-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 installedtusers!install in user site-package '%s'cCstr0tjjt}|jtj|_n	d|_d|_
|_d|_|_
|_d|_d|_d|_d|_d|_|_d|_|_|_d|_|_|_d|_|_|_d|_d|_d|_ d|_!d|_"d|_#d|_$d|_%d|_&trKtj'|_(tj|_)nd|_(d|_)d|_*d|_+d|_,|_-d|_.d|_/d|_0i|_1t2|_3d|_4|j5j6|_6|j5j7||j5j8ddS(NiR5(9t
HAS_USER_SITER?R@tabspatht__file__t
startswithtsitet	USER_SITER`tNonetzip_oktlocal_snapshots_oktinstall_dirt
script_dirtexclude_scriptst	index_urlt
find_linkstbuild_directorytargstoptimizetrecordRNtalways_copyt
multi_versionRZtno_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_fromtdelete_conflictingtignore_conflicts_at_my_riskt	site_dirstinstalled_projectsRtsitepy_installedt_dry_runtdistributiontverboset_set_command_optionstget_option_dict(tselftwhereami((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytinitialize_optionssP																									cCsx|D]}tjj|s1tjj|rtjd||jstjj|r|tjj|r|t|qtj	|qqqWdS(NsDeleting %s(
R?R@RAtislinkRtinfotdry_runtisdirtrmtreetunlink(Rtblockerstfilename((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytdelete_blockerss
$	%
c
	Cs|jr(dtdjGHtjntjjd}tdd\}}i|jjd6|jjd6|jj	d6|d	6|dd
!d6|d|dd
6|d6|d6|d6|d6t
tddd6|_tr	|j
|jd<|j|jd<n|jrtr|j|j
dkr@tdn|j
|_|_tjdkrr|jdq|jtjdn|j|j|jdddd|jdkr|j|_n|jdkrt|_n|jdd,|jdd-|jr9|j r9|j |_|j!|_n|jdd.t"t#tj$}t%|_&|j'dk	r!g|j'jd D]}tj$j(|j)^q}xq|D]f}tj$j*|st+j,d!|qt#||krt-|d"q|j&j.t#|qWn|j/s7|j0n|j1pCd#|_1|j&|_2xE|jt#|jfD]+}||j2kro|j2j3d|qoqoW|j4dk	rg|j4jd D]}|j)^q}	n	d$g}	|j5dkr|j6|j1d%|j2d&|	|_5nt7|j2tj$|_8|j9dk	rlt:|j9t;ru|j9j|_9qun	g|_9|j<r|j5j=|j2tj$n|js|j5j>|j9n|jdd/t:|j?t@s=y>t@|j?|_?d|j?kodknstAnWq=tAk
r9t-d(q=Xn|jBr^|jCr^t-d)n|j/r|jDrtEd*n|jFstEd+ng|_GdS(0Ns
setuptools %st
setuptoolsiRxtexec_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_userRjRkRoRR}R~tinstallRrt,s"%s (in --site-dirs) does not exists$ (in --site-dirs) is not on sys.pathshttps://pypi.python.org/simplet*tsearch_paththostsRqs--optimize must be 0, 1, or 2sVCan't use both --delete-conflicting and --ignore-conflicts-at-my-risk at the same times9Must 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(HR_R(tsystexittsplitRRtget_nametget_versiontget_fullnametgetattrtconfig_varsRaRRR`tcreate_home_pathRgRRRR?tnamet
select_schemetexpand_basedirstexpand_dirst_expandRkRjRRtset_undefined_optionsRzR~tmapR%R@t
get_site_dirst
all_site_dirsRt
expandusertstripRRtwarnRtappendRZtcheck_site_dirRmtshadow_pathtinsertRvRtcreate_indexR*tlocal_indexRnt
isinstanceR!Ritscan_egg_linkstadd_find_linksRqtintt
ValueErrorRRRoRRptoutputs(
RRRxRRBRFRRPt	path_itemR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytfinalize_optionss	



		7
	

.	!			

	cCsx|D]y}t||}|dk	rtjdksFtjdkr[tjj|}nt||j}t|||qqWdS(NRtnt(	RRgR?RR@RRRtsetattr(Rtattrstattrtval((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt
_expand_attrscs
cCs|jdddgdS(sNCalls `os.path.expanduser` on install_base, install_platbase and
        root.RRRwN(R(R((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRlscCs#|jddddddgdS(s+Calls `os.path.expanduser` on install dirs.RzR{R}R|R~RN(R(R((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRqs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'(RRRt
set_verbosityRpR5RuRrRRwtlenR t	distutilsRtexecutet
write_filetwarn_deprecated_options(RtspecRtroot_lentcounterR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytrunws$			cCsFytj}Wntjdt}nXtjj|jd|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(R?tgetpidtrandomtrandintRR@tjoinRj(Rtpid((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytpseudo_tempnames
cCs&|js|jr"tjdndS(NswNote: The -D, --delete-conflicting and --ignore-conflicts-at-my-risk no longer have any purpose and should not be used.(RRRR(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|_tjjddjtj}|ttg|D]}|rc|^qckrt|_n1|jrtjj	|rt|_d|_n||_dS(s;Verify that self.install_dir is .pth-capable dir, if neededseasy-install.pths.write-testtwt
PYTHONPATHRN(R%RjR?R@RRRttcheck_pth_processingRRARtopentclosetOSErrortIOErrortcant_write_to_targetRtno_default_version_msgRRgR6tenvirontgetRtpathsepRR
R(RtinstdirRtis_site_dirttestfilettest_existsRt_f((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRs6	!.	cCsYdtjd|jf}tjj|js?|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.
(Rtexc_infoRjR?R@RAR(Rtmsg((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRs
cCs-|j}tjd||jd}|d}tjj|}y]|r^tj|ntjj|}tjj|stj	|nt
|d}Wn!ttfk
r|j
nHXz|jd|f|jd}tj}tjdkrbtjj|\}}tjj|d}	|jdkrbtjj|	rb|	}qbnd	d
lm}
|
|ddd
gdtjj|rtjd|tSWd|r|jntjj|rtj|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.okRs7import os; f = open(%r, 'w'); f.write('OK'); f.close()
Rspythonw.exes
python.exei(tspawns-Es-ctpassis-TEST PASSED: %s appears to support .pth filesNs+TEST FAILED: %s does NOT support .pth files(RjRRRR?R@RARtdirnametmakedirsRRRRtwriteRRgRt
executableRRRtlowertdistutils.spawnRR
RtRR(RRRtok_filet	ok_existsRRTRtbasenametaltR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRsP	

	$
	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(Rltmetadata_isdirtmetadata_listdirtinstall_scripttget_metadatatinstall_wrapper_scripts(Rtdisttscript_name((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytinstall_egg_scriptsscCs|tjj|rhxctj|D]?\}}}x-|D]%}|jjtjj||q8Wq"Wn|jj|dS(N(R?R@RtwalkRRR(RR@tbasetdirstfilesR((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).(RZR(RR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytnot_editable5s	cCsW|js
dStjjtjj|j|jrStd|j|jfndS(Ns2%r already exists in %s; can't do a checkout there(RZR?R@RARRotkeyR(RR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytcheck_editable=s	'cCstjdd}d}|js.|jnzYt|tst|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|rt|nXdS(NRxs
easy_install-s+Could not find suitable distribution for %rs2 (--always-copy skips system and development eggs)tUsing(ttempfiletmkdtempRgRZtinstall_site_pyRR+RRRtdownloadtinstall_itemR
R?R@RAtparse_requirement_argRtfetch_distributionRNRsRRt
precedenceR2tprocess_distributiontlocationR(RRtdepsttmpdirR#RR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR5Ls:	



	
	
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|||}xY|D]}|j|||qWn5|j|j|g}|j||d|d|dk	rx!|D]}||kri|SqiWndS(Ns.eggs
Processing %siR(RsR?R@RtendswithRRgR%Rtproject_nameR)R
RRRtinstall_eggsR(tcheck_conflictstegg_distribution(RRR#R+R*tinstall_neededRtdists((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR$us.
	

cCsUt|}xDtD]<}d|}t||dkrt||||qqWdS(s=Sets the install directories by applying the install schemes.tinstall_N(RRRRgR(RRtschemeRtattrname((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRs



c
Gs4|j||jj||jj||j|||j|j<tj|j	||||j
dr|jr|jj|j
dn|r|jrdS|dk	r|j|jkrtjd|dS|dks||kr0|j}|p|}t|j|j|j}ntjd|y(tgj|g|j|j}Wngtk
rtjd}td|jn4tk
rtjd}td|jnX|js|jr x9|D].}|j|jkr|j|jqqWntjd|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_pthRtaddRRRRRRtinstallation_reportthas_metadataRRtget_metadata_linesRsRgRtas_requirementR+R-tspecstextrasR/tresolveR5R0RRRRpR1R(RtrequirementRR*RtdistreqtdistrosR[((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR(sL


	


cCsA|jdk	r|jS|jdr*tS|jds=tStS(Nsnot-zip-safeszip-safe(RhRgR9R
R(RR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytshould_unzipscCstjj|j|j}tjj|rMtjd|j|j||Stjj|rh|}ntjj	||krtj
|ntj|}t|dkrtjj||d}tjj|r|}qnt
|tj|||S(Ns<%r already exists in %s; build directory %s will not be keptii(R?R@RRoRRARRRRRtlistdirRR'tshutiltmove(RRt
dist_filenamet
setup_basetdsttcontents((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt
maybe_moves$	
cCs4|js0x$t|D]}|j|qWndS(N(Rltget_script_argstwrite_script(RRRp((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRs	cst|j}t||}fd}|rwd|rWjddnt||t}n|j|t|ddS(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.
            Rsutf-8s"""R(R&tdecodetreplace(Rt	raw_bytesttemplate_strtclean_template(t
template_name(sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytget_templates	sscript template.pys.pys	 (dev).pyRVN(tstrR;tis_python_scriptRNtget_script_headertlocalsRLRG(RRRtscript_texttdev_pathRt	is_scriptRS((RRsC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRs	ttc	Cs|jg|D]}tjj|j|^q
tjd||jtjj|j|}|j|t}|j	st
|t|d|}|j||j
t|d|ndS(s1Write an executable file to the scripts directorysInstalling %s script to %sRiN(RR?R@RRkRRRt
current_umaskRR'RRRtchmod(	RRRItmodeRRQttargettmaskRT((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRLs,
		


cCs|jjdr(|j||gS|jjdrP|j||gS|}tjj|r|jdrt|||jn'tjj	|rtjj
|}n|j|r|jr|dk	r|j|||}ntjj|d}tjj|sttjj|dd}|s[tdtjj
|nt|dkrtdtjj
|n|d	}n|jrtj|j||gS|j||SdS(
Ns.eggs.exes.pyssetup.pyRs"Couldn't find a setup script in %sisMultiple setup scripts in %si(RR,tinstall_eggtinstall_exeR?R@tisfileRtunpack_progressRRbRdRoRgRJRRARRRRZRRtreport_editabletbuild_and_install(RRRFR+RGtsetup_scripttsetups((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR.*s4"
	cCs[tjj|r3t|tjj|d}nttj|}tj	|d|S(NsEGG-INFOtmetadata(
R?R@RR-RR.t	zipimporttzipimporterR,t
from_filename(Rtegg_pathRi((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR0Ss!cCstjj|jtjj|}tjj|}|jsLt|n|j|}|j	|t
||stjj|rtjj|rt
j|d|jn2tjj|r|jtj|fd|nt|tjj|r8|j|r%tjd}}qtjd}}na|j|rg|j||jd}}n2|j|rtjd}}ntjd}}|j|||f|dtjj|tjj|fn|j||j|S(NRs	Removing tMovingtCopyingt
Extractings	 %s to %s(R?R@RRjRRbRR'R0R/R4RRRtremove_treeRARRtuncache_zipdirRdRDREtcopytreeRBtmkpathtunpack_and_compiletcopy2RR(RRmR+tdestinationRRTRM((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRaZs6$	

% 

)
cCst|}|dkr+td|ntdd|jddd|jdddt}tjj||j	d}|_
|d}tjj|d	}tjj|d
}t|t|||_
|j||tjj|s}t|d}	|	jdxU|jdD]D\}
}|
d
kr(|	jd|
jddj|fq(q(W|	jntjj|d}|jgt|D]}
tjj||
d^qtj||d|jd|j|j||S(Ns(%s is not a valid distutils Windows .exeR-RiRR_tplatforms.eggs.tmpsEGG-INFOsPKG-INFORsMetadata-Version: 1.0
ttarget_versions%s: %s
t_t-RiRR(R7RgRR,RRR?R@Rtegg_nameR)R'R-t	_providert
exe_to_eggRARRtitemsRNttitleRRRKRtmake_zipfileRRRa(RRFR+tcfgRRmtegg_tmpRtpkg_infRTtktvRkRp((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRb|s6	&


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(RRdRRR?R@RR,Rtstrip_moduletsplitextRRRRg(tsrcRHRFtoldtnewtpartstdl(Rtnative_libstprefixest
to_compilet	top_level(sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytprocesss$s.pydRis.pysEGG-INFORRs.txtRs
N(s	top_levelsnative_libs(R9RRR,RRRR?R@RRt
write_stubtbyte_compiletwrite_safety_flagtanalyze_eggRWRARRR(RRFRRtstubstresRtresourcetpyfileRttxtRT((RRRRRsC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR~s4






!cCs|Sddlm}m}ddlm}g}tj|jd}idd6dd6}x$|D]\}}	}
d||<qfWxt|jg|j	D]\}}x|D]}
t
jj|
\}}||kr|sHy|||g\}}
}Wnt
k
rqqX|r)|jn|
|kr|j|
qq||kr|dkr|jt
jj||
qqqWqW|r|j||n|S(	s9Verify that there are no conflicting "old-style" packagesi(tfind_moduletget_suffixes(Rs
top_level.txtis.pycs.pyoRe(timpRRRtdicttfromkeyst
_get_metadatatexpand_pathsRjRR?R@RtImportErrorRRRtfound_conflicts(RRRRRRtnamestextstextR^ttypR@RRRRTtdescr((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR/s4&


*cCs|jr#tjd|j|Sddj|}|jrS|d|j7}n
|d7}|d7}tjj	|tjj
|jstdndS(Ns*Attempting to delete conflicting packages:s-------------------------------------------------------------------------
CONFLICT WARNING:

The following modules or packages have the same names as modules or
packages being installed, and will be *before* the installed packages in
Python's search path.  You MUST remove all of the relevant files and
directories before you will be able to use the package(s) you are
installing:

   %s

s
   s(Note: you can run EasyInstall on '%s' with the
--delete-conflicting option to attempt deletion of the above files
and/or directories.)
sLNote: you can attempt this installation again with EasyInstall, and use
either the --delete-conflicting (-D) option or the
--ignore-conflicts-at-my-risk option, to either delete the above files
and directories, or to ignore the conflicts, respectively.  Note that if
you ignore the conflicts, the installed package(s) may not work.
sJ-------------------------------------------------------------------------
s%Installation aborted due to conflicts(RRRRRRR-RtstderrRtflushR(RRRR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRs	

	
	t	Installedc	Cszd}|jrN|jrN|d7}|jtttjkrN|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(RtRyRjRR%RR@R)R-R_RW(	RtreqRtwhatRtegglocRR_R=((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR8"s

			cCs&tjj|}tj}dtS(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.
(R?R@RRRRW(RRRgRtpython((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRe>s		cCs$tjjdttjjdtt|}|jdkrid|jd}|jdd|n"|jdkr|jddn|jr|jdd	nt	j
d
|t|ddj|yt
||Wn;tk
rtjd}td|jdfnXdS(
Nsdistutils.command.bdist_eggsdistutils.command.egg_infoiRiiR{s-qs-ns
Running %s %st sSetup script exited with %s(Rtmodulest
setdefaultRRtlistRRRRRRRRt
SystemExitRRRp(RRgRGRpR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRKs"	$
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-dirRxs
egg-dist-tmp-tdirs+No eggs found in %s (setup script problem?)(R R!R?R@Rt_set_fetcher_optionsRRR*RaR)RRRRRR(	RRgRGRptdist_dirtall_eggsteggsRR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRf`s$	

$	

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.
        R5RnRRmRqRviRzR{s	setup.cfgN(s
find_linkss	site_dirss	index_urlsoptimizes	site_dirssallow_hosts(RRtcopyRRNRR?R@RRtedit_config(	RRtei_optstfetch_directivest
fetch_optionsRRtsettingstcfg_filename((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRxs	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
(RRgRRtR)RRtremoveRtpathsR7RRtsaveR?R@RRjRRRRt
make_relativeR(RRRPRRT((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR6s4	
	
 cCstjd|||S(NsUnpacking %s to %s(Rtdebug(RRRH((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRdscsggfd}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(R,RdRRdRRg(RRH(Rtto_chmodR(sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytpfsimi(RRRR?tstattST_MODER](RRmRwRRTR^((RRRsC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRus
	
cCstr|jddSddlm}zetj|jd||ddddd|j|jr||d|jddd|jnWdtj|jXdS(	Ns%byte-compiling is disabled, skipping.i(RiRqitforceR(	RRtdistutils.utilRRRRRRq(RRR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRs
	cCs d|jtjjddfS(Nsbad 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.RR(RjR?RR(R((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRscCs?|jr
dStjj|jd}tdd}d}tjj|rtjd|jt	|d}|j
}tjd
kr|j
}n|j|jd	std
|qn||kr2tjd||jst|t	|d}|j||jn|j|gnt|_dS(s8Make sure there's a site.py in the target dir, if neededNssite.pyRs
site-patch.pyRsChecking existing site.py in %strbis
def __boot():s;%s is not a setuptools-generated site.py; please remove it.sCreating %stwb(i(RR?R@RRjR&RARRRtreadRtversion_infoRMRRdRRRR'RRR
(RtsitepytsourcetcurrentRT((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR"s2	
	


cCs|js
dSttjjd}xct|jD]R\}}|j|r5tjj|r5|j	d|tj
|dq5q5WdS(sCreate directories under ~.Nt~sos.makedirs('%s', 0700)i(R`RR?R@RRRRdRtdebug_printR(RthomeRR@((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR6s	"RRjs/$base/lib/python$py_version_short/site-packagesRks	$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(NRRi(RR(tget_finalized_commandRRxRRRR?RtDEFAULT_SCHEMERRRgRRRR@R(RRRR4RRR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRRs 	

N(sprefix=Nsinstallation prefix(szip-okRLsinstall package as a zipfile(s
multi-versionRMs%make apps have to require() a version(supgradeROs1force upgrade (searches PyPI for latest versions)(sinstall-dir=RPsinstall package to DIR(sscript-dir=RFsinstall scripts to DIR(sexclude-scriptsRQsDon't install scripts(salways-copyRRs'Copy all needed packages to install dir(s
index-url=RSs base URL of Python Package Index(sfind-links=RTs(additional URL(s) to search for packages(sdelete-conflictingRUs no longer needed; don't use this(signore-conflicts-at-my-riskNs no longer needed; don't use this(sbuild-directory=RVs/download/extract/build in DIR; keep the results(s	optimize=RWslalso 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-unzipRXs*don't install as a zipfile, no matter what(s
site-dirs=RYs)list of directories where .pth files work(seditableR[s+Install specified packages in editable form(sno-depsR\sdon't install dependencies(sallow-hosts=R]s$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((At__name__t
__module__t__doc__tdescriptionR
tcommand_consumes_argumentsRgtuser_optionstboolean_optionsRaRReRftnegative_optRRRRRRRRRRRRRRRRRRRR5R$RR(RBRJRRRLR.R0RaRbR~R/RR8ReRRfRR6RdRuRRR"RRRRR(((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR5ks		
	5	
									*	)	,				)&	/					)		"	)	1	#	)	
				$				)	'		cCsgtjjddjtjD]}|r"|^q"}tjg}tjtjkrk|jtjnx,|D]$}|rrtj	dkr|jtj
j|ddn|tjdkr|j
tj
j|dd	tjd
 dtj
j|ddgn%|j
|tj
j|ddgtj	dkrd
|krtjjd}|r|jtj
j|ddtjd
 dqqqqrqrWx6ttfD]"}||kr|j|qqWtr|jtjnttt|}|S(NRRtos2emxtriscostLibs
site-packagesRtlibRissite-pythontdarwinsPython.frameworktHOMEtLibrarytPython(sos2emxsriscos(R?RRRRRRxRRRxR@RtseptextendR_RR	RaReRfRRR%(RtsitedirsRRxRtsite_lib((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRosD+
"
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(
R%R?R@RRCR,RRRR$RRdtrstrip(tinputstseenRRRRTtlinestline((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRs4





cCst|d}ztj|}|dkr1dS|d|d|d}|dkr[dS|j|dddlm}m}ddl}|j	d	|j
d\}}}	|dkrdS|j|d||jidd
6dd6}
yx|j
|}tj
dkr'tdg}ntd}|j|dd}
|
jd}
|
j||
Wn|jk
rdSX|
jds|
jdrdS|
SWd|jXdS(snExtract configuration data from a bdist_wininst .exe

    Returns a ConfigParser.RawConfigParser, or None
    Ri	iiii(tStringIOtConfigParserNs<iiiizV4i{V4RR_RyiiiRHRitSetup(izV4i{V4(ii(Rtzipfilet_EndRecDataRgtseektsetuptools.compatRRR;tunpackRtRawConfigParserRRtbytestchrRRMtreadfptErrorthas_sectionR(RFRTtendrect	prependedRRR;ttagtcfglentbmlenRtpartt	null_bytetconfig((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR7s<$ c
Csdddddg}tj|}zwxp|jD]b}|j}|jd}t|d	kr|d
dkr|djd
r|jddj|d
 dfPqnt|d
ks4|jdrq4n|jdrq4n|dj	dkr4|j
|}tjdkr1|j
}nxbt|D]Q}|jjdd}|jds>|jd|d|fdfq>q>Wq4q4WWd|jXg|D]\}}	|j|	f^q}|j|j|S(s4Get exe->egg path translations for a given .exe filesPURELIB/RsPLATLIB/pywin32_system32sPLATLIB/sSCRIPTS/sEGG-INFO/scripts/sDATA/lib/site-packagesRiisPKG-INFOis	.egg-infois	EGG-INFO/s.pths
-nspkg.pthtPURELIBtPLATLIBs\Rs%s/%s/N(sPURELIB/R(sPLATLIB/pywin32_system32R(sPLATLIB/R(sSCRIPTS/sEGG-INFO/scripts/(sDATA/lib/site-packagesR(RR(i(RtZipFiletinfolistRRRR,RRtupperRRRRMR$RRNRdRRRtsorttreverse(
texe_filenameRRLRRRRItpthRQty((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR9s<		"#"3+

cCs<ytj|SWn$tk
r7td|fnXdS(Ns1Not a URL, existing file, or requirement spec: %r(R+tparseRR(R((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR% s

cBsMeZdZeZddZdZdZdZdZ	dZ
RS(s)A .pth file with Distribution paths in itcCs||_ttt||_ttjj|j|_|j	t
j|gddx6t
|jD]%}tt|jt|tqoWdS(N(RRRR%RR?R@Rtbasedirt_loadR*t__init__RgR$RR7R)R
(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(RRRRRR?R@RcRRRdR
RRRR%RRRAtpoptdirtyR(Rt
saw_importRRTRR@((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR5s2	
"&
	
 cCs|js
dSdjt|j|j}|rtjd|jd|}tj	j
|jrvtj|jnt|jd}|j
||jn;tj	j|jrtjd|jtj|jnt|_dS(s$Write changed .pth file back to diskNs
s	Saving %ssimport 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)
RsDeleting empty %s(RRRRRRRRR?R@RRRRRRAR(RtdataRT((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRTs 	

cCsl|j|jkrX|j|jks9|jtjkrX|jj|jt|_ntj	||dS(s"Add `dist` to the distribution mapN(
R)RRR?tgetcwdRR
RR*R7(RR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR7pscCsIx2|j|jkr4|jj|jt|_qWtj||dS(s'Remove `dist` from the distribution mapN(R)RRR
RR*(RR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRzs
cCstjjt|\}}t|j}|g}tjdkrKdpQtj}xut||kr||jkr|jtj	|j
|j|Stjj|\}}|j|qWW|SdS(NR(R?R@RR%RRtaltsepRRtcurdirRR(RR@tnpathtlasttbaselenRR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRs	

((RRRRRRRRR7RR(((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR6(s			
	cCs)ddlm}t|jts=tj|jj}n|djd}|j	|}d}|r|j
dp~d}|rd|}qn|rd}nt|}d	t}t
|s	|r|jjd
rd|jd}qq	d}nt||}d	t}|S(s;Create a #! line, getting options (if any) from script_texti(t
first_line_res
iRiRs
python.exes#!%(executable)s%(options)s
R{s -x(tdistutils.command.build_scriptsR%RtpatternRTtretcompileRMt
splitlinestmatchtgrouptnt_quote_argRWRJRRdtfix_jython_executable(RXRtwininstR%tfirstR+toptionsthdr((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRVs,	
	
cCsz|tjkr8tjdkr8t|tj||Stj\}}}t||d|dd||ffdS(NRiis %s %s(	R?RRR]RtS_IWRITERRR#(tfunctargtexctettevRz((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt
auto_chmods

cCs1ddlm}t||t|tjdS(s?Ensure that the importer caches dont have stale info for `path`i(t_zip_directory_cacheN(RjR:t_uncacheRtpath_importer_cache(R@tzdc((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRrs
cCsT||kr||=n:t|}x+|D]#}t||kr)||=dSq)WdS(N(R%(R@tcachetp((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR;s

s<string>cCs7yt||dWnttfk
r.tSXtSdS(s%Is this string a valid Python script?texecN(R)tSyntaxErrort	TypeErrorRR
(ttextR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt	is_pythons
cCsNy)t|}|jd}|jWnttfk
rC|SX|dkS(sCDetermine if the specified executable is a .sh (contains a #! line)is#!(RRRRR(Rtfptmagic((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytis_shscCsg}t}d}d|kp'd|k}|r@|jdnx|D]z}|dkrf|d7}qG|dkr|jd|ddd}qG|r|jd|d}n|j|qGW|r|jd|n|r|jd||jdnd	j|S(
s@Quote a command line argument according to Windows parsing rulesiRs	t"s\iis\"R(RRR(R5tresultt	needquotetnbtc((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR-s,

		cCsb|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(R,R
RDRdR*RR(RXR((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRUs(R]cGsdS(N((Rp((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt_chmodscCs_tjd||yt||Wn4tjk
rZtjd}tjd|nXdS(Nschanging mode of %s to %oischmod failed: %s(RRRMR?terrorRR(R@R^R[((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR]scCsntjjdrjt|rjddl}|jjjddkrI|S|r_tj	dqjd|Sn|S(Ntjavaisos.nametLinuxsWARNING: 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(
RRxRdRGROtlangtSystemtgetPropertyRR(RR1RO((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR.sccst|j}td||}xdD]{}xr|j|jD][\}}dt}tjdksu|r|dkrd}	d}
dg}tj	d	d
|}n0d}	d}
d
ddg}tj	dd|}t
jj|dd!j
dstjdkr|}
n|}
||
|
|dg|D]}||^q6fV|dt|	dfVts|d}|t|dfVqqG|||fVqGWq+WdS(sEYield write_script() argument tuples for a distribution's entrypointsRtconsole_scriptstgui_scriptss# 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)()
    )
twin32tguis-script.pyws.pyws(?i)python.exespythonw.exetclis
-script.pys.pys.pycs.pyos(?i)pythonw.exes
python.exeiiRHR[s.exeRVs
.exe.manifestN(RTRU(RTR;RVt
get_entry_mapRRWRRxR(tsubR?R@RARtget_win_launcherR=tload_launcher_manifest(RRR/RtheaderR,RtepRXt
launcher_typeRRt
new_headerR2RQtm_name((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRK0s4
"

	1	0	
cCstd|}tjjdkr7|jdd}ntrU|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(RxtmachineRRNR=R&(ttypetlauncher_fn((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR[ds
	cCsHtjtd}tjddkr0|tS|jdtSdS(Nslauncher manifest.xmliisutf-8(t
pkg_resourcesR&RRRtvarsRM(Rtmanifest((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR\uscCst|rd}n|dkr*d}ng}ytj|}Wn-tjk
rr|tj|tjnXx|D]}tjj||}ytj|j	}Wntjk
rd}nXt
j|rt|||qzytj
|Wqztjk
r*|tj
|tjqzXqzWytj|Wn-tjk
ro|tj|tjnXdS(sRecursively 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((Rp((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pytonerrorscWsdS(N((Rp((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRjsiN(RgR?RCRNRRR@Rtlstattst_modeRtS_ISDIRRRtrmdir(R@t
ignore_errorsRjRRtfullnameR^((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR|s2

!cCs tjd}tj||S(Ni(R?tumask(ttmp((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR\s
cCsMddl}tjj|jd}|tjd<tjj|tdS(Nii(	RR?R@Rt__path__RtargvRR8(Rtargv0((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt	bootstraps

csddlmddlmddldfdfddffdYdkrtjd	nfd
dS(Ni(tsetup(R,sLusage: %(script)s [options] requirement_or_url ...
   or: %(script)s --help
cstjj|}tS(N(R?R@RRh(Rtscript(tUSAGE(sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt	gen_usagescs7jj}zj_|SWd|j_XdS(N(tcoreRz(RTt
old_gen_usage(RRz(sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt
with_ei_usages
tDistributionWithoutHelpCommandscs eZdZfdZRS(Rcs fddS(NcsjS(N(t
_show_help((R,RptkwR(sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt<lambda>s((RRpR(R,R}(RpRRsC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRs(RRtcommon_usageR((R,R}(sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR~sic	s6ddddgdtjdp)ddS(Ntscript_argss-qR5s-vRit	distclass(RRt((R~RtRRw(sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyRs(RRwtsetuptools.distR,tdistutils.coreRgRRt(RtR((	R,R~RyRtRRzRRwR}sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyR8s(sRRR?RjRDR RR(RRRxRRgRRRtsetuptools.sandboxRRRRt	sysconfigRRR	RRtdistutils.sysconfigRRRRRtdistutils.errorsRRRRtdistutils.command.installRRtsetuptools.commandRtsetuptools.archive_utilRtsetuptools.package_indexRRRRRRRR R!R"R#R$R%R&R'R(R)R*R+R,R-R.R/R0R1R2Rtsys_executableR@RBRt__all__ReR_tENABLE_USER_SITERaR;R=R4RRGRJR5RRR7R9R%R6RRVR9RrR;RDRGR-RUR]RMR.RKR[R\RR\RvRgR8(((sC/usr/lib/python2.7/site-packages/setuptools/command/easy_install.pyt<module>s	

	
".d		
					-	)	6	%	h			
				)	


		4		#		
Back to Directory File Manager