MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/self/root/proc/2/cwd/usr/lib/python2.4/site-packages/setuptools/command/easy_install.pyo
m
k8Hc@sdZdkZdkZdkZdkZdkZdkZdkZdk	Z	dk
Z
dklZdkl
Z
dklZdklZlZdklZdklZlZlZdklZd	klZlZd
klZdkl Z l!Z!dk"Tei#i$ei%Z&d
dddddgZ'dZ(de
fdYZ)dZ*dZ+dZ,dZ-dZ.de/fdYZ0e&e1dZ2dZ3dZ4dZ5dd Z6d!Z7d"Z8e&e1d#Z9e1e3d$Z:d%Z;e<d&Z=dS('sEasy 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`__.

__ http://peak.telecommunity.com/DevCenter/EasyInstall
N(sglob(sCommand(s	run_setup(slogsdir_util(sget_python_lib(sDistutilsArgErrorsDistutilsOptionErrorsDistutilsError(sunpack_archive(sPackageIndexsparse_bdist_wininst(s
URL_SCHEME(s	bdist_eggsegg_info(t*tsamefileteasy_installtPthDistributionstextract_wininst_cfgtmaintget_exe_prefixescCsttido=tii|o*tii|otii||Sntiitii|tiitii|jS(NR(	thasattrtostpathtexiststp1tp2Rtnormpathtnormcase(RR((tC/usr/lib/python2.4/site-packages/setuptools/command/easy_install.pyR s9cBsTtZdZdZeZdedfdjdkdldmdndodpdqdrdsd"ed!fdtdud)ed*fdvdwdxdydzgZdddd
ddd"d1d4g	Zhd+d<Z	e
Zd:Zd;Z
d<Zd=Zd>Zd?Zd@ZdAZdBZdCZdDZdEZdFZedGZedHZedIZdJZdKZdLZedMZ dNfdOZ!dPZ"dQZ#dRZ$dSZ%dTZ&dUZ'dVZ(dWdXZ)dYZ*dZZ+d[Z,d\Z-d]Z.d^Z/d_Z0d`Z1daZ2e3dbe3dcdddedfZ4e3dcdgdedhZ5diZ6RS({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=tssinstall 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 matchcCsd|_d|_|_|_d|_d|_d|_d|_	d|_
|_d|_|_
|_d|_|_|_d|_|_|_d|_d|_d|_d|_d|_h|_t|_d|_|ii|_|ii ||ii!ddS(NR("tNonetselftzip_oktinstall_dirt
script_dirtexclude_scriptst	index_urlt
find_linkstbuild_directorytargstoptimizetrecordRtalways_copyt
multi_versionRtno_depstallow_hoststroottprefixt	no_reportt
package_indextpth_filetdelete_conflictingtignore_conflicts_at_my_riskt	site_dirstinstalled_projectstFalsetsitepy_installedt_dry_runtdistributiontverboset_set_command_optionstget_option_dict(R$((Rtinitialize_optionsSs(													cCsx|D]}tii|ptii|odtid||i	pFtii
|o"tii|ot|qti|qqqWdS(NsDeleting %s(
tblockerstfilenameRR	R
tislinktlogtinfoR$tdry_runtisdirtrmtreetunlink(R$RDRE((Rtdelete_blockersrs&
'cCs|idddd|idjo|i|_n|idd|idd|iddttti	}t|_|i
dj	og}|i
id	D]}|ti	i|iq~}xv|D]j}ti	i|ptid
|qt||jot|dq|iit|qWn|ip|in|ipd|_|i|_xG|it|ifD]-}||ijo|iid
|qqW|i dj	o7g}|i id	D]}||iq~}n
dg}|i"djo(|i#|id|id||_"nt$|iti	|_%|i&dj	o-t'|i&t(o|i&i|_&qn
g|_&|i"i)|i&|iddt'|i*t+pgyAt+|i*|_*d
|i*jo
djnp
t,nWqRt,j
otdqRXn|i-o|i.otdn|io|i/ot0dn|i1pt0dng|_2dS(NR&R'R+R:tinstall_libtinstall_scriptstinstallR.t,s"%s (in --site-dirs) does not exists$ (in --site-dirs) is not on sys.paths!http://cheeseshop.python.org/pypiiRtsearch_paththostsR-is--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(3R$t_expandR'R#R&tset_undefined_optionstmaptnormalize_pathtsysR	R
t
get_site_dirst
all_site_dirsR:t_[1]tsplitRRt
expandusertstripRRJRGtwarntDistutilsOptionErrortappendRtcheck_site_dirR)tshadow_patht	path_itemtinsertR2RSR6tcreate_indextEnvironmenttlocal_indexR*t
isinstancet
basestringtadd_find_linksR-tintt
ValueErrorR8R9R+tDistutilsArgErrorR,toutputs(R$RdRR
R[RRSR:((Rtfinalize_options|sj		?

7	(	!
cCs|i|iijoti|inzx%|iD]}|i||iq7W|i	o|i
}|ioBt|i}x0tt|D]}|||||<qWndkl}|i|i|i	|fd|i	n|iWdti|iiXdS(N(s	file_utils'writing list of installed files to '%s'(R$R@R?RGt
set_verbosityR,tspecRR1R.RoR3tlentroot_lentxrangetcountert	distutilst	file_utiltexecutet
write_filetwarn_deprecated_options(R$RxRoRvRtRr((Rtruns&

	

cCsIyti}Wntidti}nXtii|i
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-%sN(RtgetpidtpidtrandomtrandintRXtmaxintR	tjoinR$R&(R$R~((Rtpseudo_tempnamescCs)|ip
|iotidndS(NswNote: The -D, --delete-conflicting and --ignore-conflicts-at-my-risk no longer have any purpose and should not be used.(R$R8R9RGR_(R$((RR{scCst|i}tii|d}||ij}|p|i
}n|id}tii
|}y<|oti|nt|diti|Wn#ttfj
o|inX|o!|iot|in|o'|idjot||_q.n
d|_tiidditi}|ttt d|jo
t!|_"n5|io*tii
|ot!|_"d|_n||_dS(s;Verify that self.install_dir is .pth-capable dir, if neededseasy-install.pths.write-testtwt
PYTHONPATHtN(#RWR$R&tinstdirRR	RR7RZtis_site_dirtcheck_pth_processingRttestfileR
ttest_existsRLtopentclosetOSErrortIOErrortcant_write_to_targetR0tDistutilsErrortno_default_version_msgR#RtenvirontgetR\tpathsepRRVtfiltertTrueR=(R$RRRRR7R((RRbs8	!
	
cCs[dtid|if}tii|ip|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).
sD
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:

  http://peak.telecommunity.com/EasyInstall.html

Please make the appropriate changes for your system and try again.
(	RXtexc_infoR$R&tmsgRR	R
R(R$R((RR s


cCs|i}tid||id}
|
d}ti	i
|}y+|oti|nt
|
d}Wn#ttfj
o|inVXz|id|f|id}ti}tidjoati	i|\}	}ti	i|	d}|idjoti	i
|o
|}q7nd	kl}||d
ddgd
ti	i
|otid|t SnWd|o|inti	i
|oti|nti	i
|
oti|
nX|i!pti"d|nt#S(s@Empirically verify whether .pth files are supported in inst. dirs Checking .pth file support in %ss.pths.okRs#import os;open(%r,'w').write('OK')
tntspythonw.exes
python.exe(sspawns-Es-ctpassis-TEST PASSED: %s appears to support .pth filesNs+TEST FAILED: %s does NOT support .pth files($R$R&RRGRHRR7tok_fileRR	R
t	ok_existsRLRRRRRtwriteRR#RXt
executabletnameR\tdirnametbasenameRtalttlowertdistutils.spawntspawnRR0R_R<(R$RRRRRRRRRR7((RRIsJ	
	&
	
cCsv|ioZ|idoJxG|idD]2}|i|||id|iddq+Wn|i	|dS(s=Write all the scripts for `dist`, unless scripts are excludedtscriptssscripts/s
s
N(
R$R(tdisttmetadata_isdirtmetadata_listdirtscript_nametinstall_scripttget_metadatatreplacetinstall_wrapper_scripts(R$RR((Rtinstall_egg_scriptsrs(cCs~tii|oWxdti|D]?\}}}x-|D]%}|i	i
tii||q9Wq#Wn|i	i
|dS(N(RR	RJtwalktbasetdirstfilesRER$RoRaR(R$R	RRRER((Rt
add_output|s+cCs%|iotd|fndS(NsjInvalid argument %r: you can't use filenames or URLs with --editable (except via the --find-links option).(R$RRnRr(R$Rr((Rtnot_editables
cCs^|ipdSntiitii|i|io t	d|i|ifndS(Ns2%r already exists in %s; can't do a checkout there(
R$RRR	R
RR+RrtkeyRn(R$Rr((Rtcheck_editables
(cCstidd}d}|ip|inzht|t
pt|o?|i||i
i||}|id|||tSqtii|o*|i||id|||tSqt|}n|i||i
i|||i|i|i}|djo2d|}|io|d7}nt|nH|itjo|i|||d|Sn|i||i||SWdtii|ot |nXdS(NR4s
easy_install-s+Could not find suitable distribution for %rs2 (--always-copy skips system and development eggs)tUsing(!ttempfiletmkdtempttmpdirR#tdownloadR$Rtinstall_site_pyRiRrtRequirementt
URL_SCHEMERR6tinstall_itemtdepsRRR	R
tparse_requirement_argRtfetch_distributionRR/RRRt
precedencetDEVELOP_DISTtprocess_distributiontlocationRK(R$RrRRRRR((RRs8




(


cCs_|p|i}|ptii||j}|p|id}|oB|o:x7|i
|iD]}|i
|joPqfqfWt}ntidtii||o=|i|||}xZ|D]}|i|||qWn6|i|i|g}|i||d|d|dj	o*x'|D]}||jo|Sq8q8WndS(Ns.eggs
Processing %siR(tinstall_neededR$R/RR	RRRtendswithRrRhtproject_nameRRRRGRHRtinstall_eggstdistsRRtcheck_conflictstegg_distributionR#(R$RrRRRRRR((RRs,	


cGs|i||ii||ii||i|||i|i<t	i
|i||||o|iodSn|dj	o+|i|ijot	id|dSnS|djp
||jo8|i}|p|}t|i|i|i}n|ido|ii|idnt	i
d|y(tgi|g|i|i}WnOtj
o}t d|i!n)t"j
o}t d|i!nX|io?x<|D]0}|i|ijo|i|iqqWndS(NsSkipping dependencies for %ssdependency_links.txtsProcessing dependencies for %ss'Could not find required distribution %ss7Installed distribution %s conflicts with requirement %s(#R$t
update_pthRR6taddRhRR;RRGRHtinstallation_reporttrequirementRR/R#R_tas_requirementtdistreqRRtspecstextrasthas_metadataRktget_metadata_linest
WorkingSettresolveRtdistrostDistributionNotFoundR RR,tVersionConflict(R$RRRRHRR R((RRs:

 
(
cCsP|idj	o|iSn|idotSn|idptSntS(Nsnot-zip-safeszip-safe(R$R%R#RRRR<(R$R((Rtshould_unzipscCstii|i|i}tii|o$t	i
d|i|i||Sntii|o
|}ntii||joti|nti|}t|djo:tii||d}tii|o
|}qnt|ti|||S(Ns<%r already exists in %s; build directory %s will not be keptii(RR	RR$R+RrRtdstR
RGR_t
setup_baseRJt
dist_filenameRRLtlistdirtcontentsRstensure_directorytshutiltmove(R$RrRRRR((Rt
maybe_move!s 	
cCs6|ip(x%t|D]}|i|qWndS(N(R$R(tget_script_argsRR,twrite_script(R$RR,((RR7s

cCst|i}t||}|o"|ot	|dt
}n#|ot	|dt
}n|i||dS(s/Generate a legacy script wrapper and install its# EASY-INSTALL-DEV-SCRIPT: %(spec)r,%(script_name)r
__requires__ = %(spec)r
from pkg_resources import require; require(%(spec)r)
del require
__file__ = %(dev_path)r
execfile(__file__)
s# EASY-INSTALL-SCRIPT: %(spec)r,%(script_name)r
__requires__ = %(spec)r
import pkg_resources
pkg_resources.run_script(%(spec)r, %(script_name)r)
N(
tstrRRRrtis_python_scripttscript_textRt	is_scripttdev_pathtget_script_headertlocalsR$R(R$RRRRRRr((RR?sttc	Cs|ig}|D]}|tii|i|q~t	i
d||itii|i|}|i
||ipkt|t|d|}|i||iyti|dWqttifj
oqXndS(s1Write an executable file to the scripts directorysInstalling %s script to %sRiN(R$RMR[RDRRR	RR'RGRHRttargetRRIRRtmodeRRRRtchmodtAttributeErrorterror(	R$RRRRDRR[RR((RRVs:




cCs|iido|i||gSn.|iido|i||gSn|}ti	i
|o(|idot|||in*ti	i
|oti	i|}n|i|o0|io&|dj	o|i|||}nti	i|d}ti	i|pntti	i|dd}|ptd|nt|djotd|n|d	}n|io!ti|i||gSn|i||SdS(
Ns.eggs.exes.pyssetup.pyRs"Couldn't find a setup script in %sisMultiple setup scripts in %si( RRRR$tinstall_eggRtinstall_exeRRR	tisfiletunpack_archivetunpack_progressRJtabspatht
startswithR+RrR#RRtsetup_scriptR
tglobtsetupsRRsRRGRHtreport_editabletbuild_and_install(R$RrRRRRR((RRhs.$'
cCs]tii|o"t|tii|d}ntti	|}t
i|d|S(NsEGG-INFOtmetadata(RR	RJtegg_pathtPathMetadataRRtEggMetadatat	zipimporttzipimportertDistributiont
from_filename(R$RR((RRs"cCstii|itii|}tii|}|i	pt
|n|i|}|i
|t||prtii|o.tii|oti|d|i	n5tii|o!|iti|fd|nt|tii|o8|i|otid}}qtid}}nf|i|o!|i||i d}}n5|i|otid}}nti!d}}|i|||f|dtii|tii"|fn|i#||i|S(NRIs	Removing tMovingtCopyingt
Extractings	 %s to %s($RR	RR$R&RRtdestinationRRIRRRRRRJRFtdir_utiltremove_treeR
RyRLtuncache_zipdirRRRRRRtcopytreeRtmkpathtunpack_and_compiletcopy2RR(R$RRRRRR((RRs4$

'!

1
cCst|}|djotd|ntdd|iddd|idddd}ti	i
||id}|_|d	}	ti	i
|	d
}ti	i
|d}t|t|	||_|i||	ti	i|pt|d}
|
id
xW|idD]F\}}
|djo-|
id|iddi|
fq(q(W|
i nti	i
|d}|i"g}t$|D] }|ti	i
||dq~t&i'||	d|i(d|i)|i*||S(Ns(%s is not a valid distutils Windows .exeRRRtversiontplatformtwin32s.eggs.tmpsEGG-INFOsPKG-INFORsMetadata-Version: 1.0
ttarget_versions%s: %s
t_t-RiR@RI(+RRtcfgR#RR
RRRR	RRtegg_nameRRtegg_tmptegg_infotpkg_infRRt	_providerR$t
exe_to_eggR
RRRtitemstktvRttitleRR'RMR[RR,t	bdist_eggtmake_zipfileR@RIR(R$RRRRR'R,RR!RRR R[R&R%((RRs2
&



1A"cst|gghd}t||g}
xD]}|iidow|i
d}
|
d}ti|
dd|
d<tii|
}i||
i|ti||qSqSW|ititiidti|
x}d
D]u}t|oatiid|d	}tii|p.t |d
i!dit|dqq)q)WdS(s;Extract a bdist_wininst to the directories an egg would usecsMx"D]\}}|i|o||t|}|id}ti	i
|}|i
}|idp|idoFti|d|d<dti	i|dd<i|nM|ido<|djo/dti	i|dd<i|n|SqqW|id	ptid
|ndS(Nt/s.pyds.dlliiis.pysSCRIPTS/s.pthsWARNING: can't process %s(tprefixestoldtnewtsrcRRsR\tpartsRR	RRRRtdlRR(tstrip_modulet	top_leveltsplitexttnative_libsRat
to_compileRGR_R#(R.RR0R,R/R-(R4RR2R+R5(Rtprocesss$ s.pydR*is.pysEGG-INFOR2R4s.txtRs
N(s	top_levelsnative_libs("RRR+R5R4R2R6RRtstubstresRRR\R/tresourceR(R1RR	RtpyfileRat
write_stubR$tbyte_compiletwrite_safety_flagtanalyze_eggRRttxtR
RR(R$RRR:R5R9R6R8R2R+R/R4R?R7R((RR+R4R5R2RR#s4

cCs|Sdkl}l}dkl}g}ti|id}hdd<dd<}
x$|D]\}	}}d|
|	<qdWxt|ig|iD]\}}x|D]}tii|\}
}	|
|jo|	poy||
|g\}}}Wntj
o
qqX|o|in||jo|i|qq|	|
jo-|
djo |itii||qqqWqW|o|i||n|S(	s9Verify that there are no conflicting "old-style" packages(sfind_modulesget_suffixes(sglobs
top_level.txts.pycis.pyotsiteN(Rtimptfind_moduletget_suffixesRRDtdicttfromkeyst
_get_metadatatnamestextstextRttyptexpand_pathsR$R&RZR	RRERR3RRtdescrtImportErrorRRaRtfound_conflicts(R$RRRLRBRCRRERDRIRRGR	RHRJRR((RRs<



,cCs|iotid|i|Snddi|}|io|d|i
7}n|d7}|d7}tii
|tii|iptdndS(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(R$R8RGR_RMRDRRR9RRRXtstderrRtflushR(R$RRDR((RRN5s






t	Installedc	Csd}|ioC|io8|d7}|itttijo|d7}qSn|i
}|i}|i}d}|tS(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.)
RN(RR$R0R5R&RVRWRXR	RRtegglocRRRRR(	R$treqRtwhatRRRRRR((RR^s
			cCs&tii|}ti}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.
(RR	RRRXRtpythonR(R$RrRRUR((RRzs	cCstiidttiidtt|}|idjo)d|id}|i
dd|n%|idjo|i
ddn|io|i
dd	nti
d
|t|ddi|yt||Wn/tj
o#}td|idfnXdS(
Nsdistutils.command.bdist_eggsdistutils.command.egg_infoiR&iiRs-qs-ns
Running %s %st sSetup script exited with %s(RXtmodulest
setdefaultR(R tlistR,R$R@R&ReRIRGRHRRsRRt	run_setupt
SystemExitR(R$RRR,R&((RRZs
*c	Csddg}tidddtii|}z|i||i
|||t|g}g}x?|D]7}x.||D]"}|i|i|i|qWqoW|o|iotid|n|SWdt|ti|iXdS(NR(s
--dist-dirR4s
egg-dist-tmp-tdirs+No eggs found in %s (setup script problem?)(R,RRRR	RRtdist_dirRaR$RZRRgtall_eggsteggsRRRRRIRGR_RKRqR@(	R$RRRR_R,RR]R^((RRs&$
$	
cCs|idjodSnx|i|iD]q}|ip|i|ijoNti	d||ii
||i|ijo|ii
|iqq)q)W|ipx|i|iijoti	d|q ti	d||ii
||i|ijo|ii|iq n|ip|ii|idjoytii|id}tii|oti|nt|d}|i|ii|id|iqndS(Ns&Removing %s from easy-install.pth files4%s is already the active version in easy-install.pths"Adding %s to easy-install.pth filet
setuptoolsssetuptools.pthtwts
(R$R7R#RRRR0RRGRHtremoveRctpathsRRaRItsaveRR	RR&RERFRLRRRt
make_relativeR(R$RRRER((RRs4
	

 cCstid|||S(NsUnpacking %s to %s(RGtdebugR.R(R$R.R((RRsc	sggd}t|||iipft	i
t	i
B}xSD]G}t
i	|t	idBd@}tid||t
i||q\WndS(Ncse|ido"|idoi|ni||i|i	o|pdS(Ns.pys	EGG-INFO/(RRR.RR5RaR$Rtto_chmodRIR#(R.R(R5RgR$(Rtpfs!imischanging mode of %s to %o(R5RgRhRRRR$R<RItstattS_IXGRPtflagsRRtST_MODERRGRfR(	R$RRR5RRhRRkRg((R$R5RgRRs

cCsdkl}zgti|id||ddddd|i|io&||d|iddd|inWdti|iXdS(N(sbyte_compileiR-itforceRI(	tdistutils.utilR<RGRqR$R@R5RIR-(R$R5R<((RR<s

cCs d|itiiddfS(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:

  http://peak.telecommunity.com/EasyInstall.html#custom-installation-locations

Please make the appropriate changes for your system and try again.RR(R$R&RRR(R$((RRscCs'|iodSntii|id}tti	dd}d}tii|oPt
id|it|di}|idptd|qn||jobt
id	||ip4t|t|d
}|i||in|i|gnt|_dS(s8Make sure there's a site.py in the target dir, if neededNssite.pyR`RsChecking existing site.py in %strbs
def __boot():s;%s is not a setuptools-generated site.py; please remove it.sCreating %stwb(R$R=RR	RR&tsitepytresource_stringRtparsetsourcetcurrentR
RGRfRtreadRRRHRIRRRRR<R(R$RRuRtRq((RR+s(




tposixR&s/$base/lib/python$py_version_short/site-packagesR's	$base/bins$base/Lib/site-packagess
$base/ScriptscGs%|idi}|io|i}|i|d<|iiti|i	}xK|iD]9\}}t||ddjot|||q]q]Wndkl}xs|D]k}t||}|dj	oI|||}tidjotii|}nt|||qqWdS(NRPR(s
subst_varsRw(R$tget_finalized_commandtconfig_varsR4tcopytINSTALL_SCHEMESRRRtDEFAULT_SCHEMEtschemeR$tattrtvaltgetattrR#tsetattrRnt
subst_varstattrsR	R](R$RR~RRRyR}((RRT`s$




(szip-okRsinstall package as a zipfile(s
multi-versionRs%make apps have to require() a version(supgradeRs1force upgrade (searches PyPI for latest versions)(sinstall-dir=Rsinstall package to DIR(sscript-dir=Rsinstall scripts to DIR(sexclude-scriptsRsDon't install scripts(salways-copyRs'Copy all needed packages to install dir(s
index-url=Rs base URL of Python Package Index(sfind-links=Rs(additional URL(s) to search for packages(sdelete-conflictingRs no longer needed; don't use this(sbuild-directory=Rs/download/extract/build in DIR; keep the results(s	optimize=Rslalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0](salways-unzipRs*don't install as a zipfile, no matter what(s
site-dirs=Rs)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(7t__name__t
__module__t__doc__tdescriptionRtcommand_consumes_argumentsR#tuser_optionstboolean_optionstnegative_opttPackageIndexRfRCRMRpR|RR{RbRRRRRRR<RRRRRRRRRRRRR#RRNRRRZRRRRR<RRRDR{R|RT(((RR*sd]!		
	R				)	)	)	
			))+					)		"	)	/	#	)	
			$				)	)	cCstdtiidditi}ti	g}titi	jo|itinx8|D]0}|o#ti
djo#|itii|ddntidjoI|itii|dd	tid
 dtii|ddgn&|i|tii|ddgti
djo^d
|joMtiid}|o0|itii|ddtid
 dqqqqdqdWx8dD]0}t|}||jo|i|qqWtt|}|S(NRRtos2emxtriscostLibs
site-packagesR*tlibRUissite-pythontdarwinsPython.frameworktHOMEtLibrarytPythonii(sos2emxsriscos(ii(RR#RRRR\RtsitedirsRXR4R+texec_prefixRaRR	RtseptextendRthomet
plat_specifictget_python_libtsite_libRVRW(R+RRR4RR((RRY}s>*#&%


ccsjh}x]|D]U}t|}||joq
nd||<tii|pq
nti|}||fVx|D]}|i
dpqwn|djoqwnttii||}tt|}|ix||D]t}|idp^t|i}||jo;d||<tii|pqn|ti|fVqZqqWqwWq
WdS(sBYield sys.path directories that might contain "old-style" packagesis.pthseasy-install.pthssetuptools.pthtimportN(seasy-install.pthssetuptools.pth(tseentinputsRRWRR	RJRRRRRRRRYtyield_linestlinesRtlineRtrstrip(RRRRRRRR((RRKs<






cCst|d}zvti|}|djodSn|d|d|d}	|	djodSn|i|	ddk	}dk
}dk}
|id|i
d\}}}|djodSn|i|	d||
ihd
d<dd<}y9|i|i
|i
|itd
dd
Wn|
ij
odSnX|idp|idodSn|SWd|iXdS(snExtract configuration data from a bdist_wininst .exe

    Returns a ConfigParser.RawConfigParser, or None
    Roi	iiiNs<iiiizV4i{V4RRRiiRtSetup(izV4i{V4(RRRtzipfilet_EndRecDatatendrecR#t	prependedtseektstructtStringIOtConfigParsertunpackRvttagtcfglentbmlentRawConfigParserRtreadfpR\tchrtErrorthas_sectionR(RRRRRRRRRRR((RRs2

$
!9	"cCsdddg}ti|}z[xT|iD]F}|i}|i	d}t|djoQ|dd	jo@|d
ido(|i
ddi|d d
fPqnt|djp|idoq.n|idoq.n|ddjoqxnt|i|D]S}|iidd}|idp%|id|d|fdfqqWq.q.WWd|iX|i|i|S(s4Get exe->egg path translations for a given .exe filesPURELIB/RsPLATLIB/sSCRIPTS/sEGG-INFO/scripts/R*iisPKG-INFOis	.egg-infois	EGG-INFO/s.pths
-nspkg.pthtPURELIBtPLATLIBs\Rs%s/%s/N(sPURELIB/R(sPLATLIB/R(sSCRIPTS/sEGG-INFO/scripts/(RR(R+RtZipFiletexe_filenameRtinfolistRHRERR\R/RsRReRRRvtpthR^RRRaRtsorttreverse(RRHRRR+R/R((RRs4
	$#	$5cCs>yti|SWn&tj
otd|fnXdS(Ns1Not a URL, existing file, or requirement spec: %r(RRsRrRmR(Rr((RRscBsJtZdZeZdZdZdZdZdZ	dZ
RS(s)A .pth file with Distribution paths in itcCs~||_ttii|i|_|iti	|gddx0t|iD]}t
|it|tqWWdS(N(RER$RWRR	Rtbasedirt_loadRgt__init__R#RRcRVRtfind_distributionsR(R$RER	((RR&s	 cCsxg|_t}h}tii|ioxt	|idD]}|ido
t}q>n|i
}|ii||ip|iidoq>nttii|i|}|id<tii|p
||jo|iit|_q>nd||<q>Wn|io|o
t|_nx1|io&|idio|iiqCWdS(NtrtRt#ii(R$RcR<t
saw_importRRR	RRERRRRRRaR^RWRRR
tpoptdirty(R$RR	RR((RR-s0	$)!
	
cCs|ipdSndit|i|i}|ottid|i	d|}t
ii|i	ot
i
|i	nt|i	d}|i||in>t
ii|i	o'tid|i	t
i
|i	nt|_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)
RpsDeleting empty %s(R$RRRVReRctdataRGRfRERR	RFRLRRRRR
R<(R$RR((RRdJs

	cCsG|i|ijo |ii|it|_nti||dS(s"Add `dist` to the distribution mapN(	RRR$RcRaRRRgR(R$R((RRfs cCsKx4|i|ijo |ii|it|_qWti||dS(s'Remove `dist` from the distribution mapN(RRR$RcRbRRRg(R$R((RRbls
!cCstiit|\}}t|i}|g}tidjodpti}x|t||jod||ijo+|i
ti|i|i|Sntii|\}}|i
|qYW|SdS(NR*(RR	R\RWtnpathtlastRsR$RtbaselenR/taltsepRRatcurdirRR(R$R	RRRR/R((RRess	 
(RRRR<RRRRdRRbRe(((RR!s					cCsdkl}|did}|i|}d}|o/|idpd}|od|}qln|o
d}n
t
|}dt}t
|d	d
id	|joP|o2|iidod|id}qnd}dt}n|S(s;Create a #! line, getting options (if any) from script_text(s
first_line_res
iRiRVs
python.exes#!%(executable)s%(options)s
tasciitignoreRs -xN(tdistutils.command.build_scriptst
first_line_reRt
splitlinestfirsttmatchtoptionstgrouptwininstRtnt_quote_argRthdrtunicodetencodeR^R(RRRRRRRR((RRs(


"cCs|tijo1tidjo!ti|ti||Snti	}|d|dd|ddd||ffdS(NRiis %s %s(tfuncRRbRRtargRitS_IWRITERXRtexc(RRR((Rt
auto_chmods
 cCs.dkl}t||t|tidS(s?Ensure that the importer caches dont have stale info for `path`(s_zip_directory_cacheN(Rt_zip_directory_cachetzdct_uncacheR	RXtpath_importer_cache(R	R((RRs

cCs[||jo||=n@t|}x0|D](}t||jo||=dSq+q+WdS(N(R	tcacheRWtp(R	RR((RRs
s<string>cCs6yt||dWntj
otSnXtSdS(s%Is this string a valid Python script?texecN(tcompilettextREtSyntaxErrorR<R(RRE((Rt	is_pythons	cCs g}t}d}d|jp
d|j}|o|idnx|D]}|djo|d7}qJ|djo#|id|ddd}qJ|o|id|d}n|i|qJW|o|id|n|o"|id||idnd	i|S(s@Quote a command line argument according to Windows parsing rulesiRVs	t"s\iis\"RN(tresultR<t	needquotetnbRRatcR(RRRRR((RRs0



cCs|ido=dkl}|i}|i|dotSqMtSn|i
dp|i
dotSnt||otSntS(sMIs this text, as a whole, a Python script? (as opposed to shell/bat/etc.
    s#!(s
first_line_reis.pys.pywN(RRRRRRRRR<RERR(RRERR((RRs
 c
cst|i}td||}x`dD]X}xO|i	|i
D]8\}
}dt
}tidjp|o|djo.d\}
}dg}tid	d
|}n1d\}
}d
ddg}tidd|}tii|dd!ptidjo
|}	n|}	|
|
|	|dg}|D]}||
|q8~fV|
dtd|dfVqG|
||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

sys.exit(
   load_entry_point(%(spec)r, %(group)r, %(name)r)()
)
Rs-script.pywsgui.exes.pyws(?i)python.exespythonw.exes
-script.pyscli.exes.pys.pycs.pyos(?i)pythonw.exes
python.exeiiRs.exeR`RN(RR(s-script.pywsgui.exe(s
-script.pyscli.exe(RRRRrRRRtheaderRt
get_entry_mapR$RtepRRRXRRItlauncherR,tretsubt
new_headerRR	R
RR[RRr(RRRRRR,RRRrRRRR[RIRR((RRs,

	*
7cCs|o
d}n|djo
d}ng}yti|}Wn1tij
o"}|ti|t	i
nXx|D]}tii||}yti|i}Wntij
o
d}nXti|ot|||qyti|Wqtij
o"}|ti|t	i
qXqWyti|Wn/tij
o |ti|t	i
nXdS(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.
    cGsdS(N((R,((RtonerrorGscGsdS(N((R,((RRJsiN(t
ignore_errorsRR#RGRRR	RterrRXRRRtfullnametlstattst_modeRRitS_ISDIRRKRbtrmdir(R	RRRRRGRR((RRK@s6


"cCsJdk}tii|id}|tid<tii|t	dS(Ni(
R`RR	Rt__path__targv0RXtargvRaR(RR`((Rt	bootstrapcs"c		sdkldkldkddddfdYdjoti
dnd	dS(
N(ssetup(sDistributionsLusage: %(script)s [options] requirement_or_url ...
   or: %(script)s --help
cstii|}tS(N(RR	RRtscripttUSAGEtvars(RR(R(Rt	gen_usagesscs7ii}zi_|SWd|i_XdS(N(RwtcoreRt
old_gen_usageR(RR
(RRw(Rt
with_ei_usagewstDistributionWithoutHelpCommandscstZdZRS(NcsddS(NcsiS(N(R
t
_show_helpR$R,tkw((R
R,RR$(Rt<lambda>s(R(R$R,R(RR
(R$R,RRR
s(RRR
((R
R(RRsics7ddddgdtidpddS(Ntscript_argss-qRs-vRit	distclass(tsetupRRXRR((RRRR(RRs(
R`Rtsetuptools.distR
tdistutils.coreRwRRRRRR#RX(	RRRRwRRR
RR((	RRRRwRRR
RRRRis

	
(>RRXtos.pathRRRRRRRiRRR`tCommandtsetuptools.sandboxRZRwRGRtdistutils.sysconfigRtdistutils.errorsRnR`Rtsetuptools.archive_utilRtsetuptools.package_indexRtparse_bdist_wininstRtsetuptools.commandR(R t
pkg_resourcesR	R
Rtsys_executablet__all__RRRYRKRRRRgRR<RRRRRRRRRKRR#R(-RRYRRRnRGR RRRRRRRRRRRRiRRRRRRRRXRRRKRR`RRRRR RRZRR(RRKRR((Rt?sJQ





	
W	)	)	)	!	a			
	)	))#