;ò e…ÝFc@s dZdkZdkZdkZdkZdkZdkZdkZdk Z dk Z dk l Z dk l Z dklZdklZlZdklZdklZlZlZdklZd klZlZd klZd kl Z l!Z!d k"Tei#i$ei%ƒZ&d dddddgZ'd„Z(de fd„ƒYZ)d„Z*d„Z+d„Z,d„Z-d„Z.de/fd„ƒYZ0e&e1d„Z2d„Z3d„Z4d„Z5dd „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(s*ssamefiles easy_installsPthDistributionssextract_wininst_cfgsmainsget_exe_prefixescCsŽttidƒo#tii|ƒotii|ƒotii||ƒSntiitii|ƒƒtiitii|ƒƒjSdS(Nssamefile( shasattrsosspathsexistssp1sp2ssamefilesnormpathsnormcase(sp1sp2((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pyssamefile s9cBsütZdZdZeZdedfdddfddd fd d d fd ddfdddfdddfdddfdddfdddfdd d!fd"ed!fd#d$d%fd&d'd(fd)ed*fd+d,d-fd.d/d0fd1d2d3fd4d5d6fd7d8d9fd:d;d<fgZdddd ddd"d1d4d:g Zhd+d„Z d?„Zd@„ZdA„ZdB„ZdC„ZdD„ZdE„ZdF„ZdG„ZdH„ZdI„ZedJ„ZedK„ZedL„ZdM„ZdN„ZdO„ZedP„Z dQfdR„Z!dS„Z"dT„Z#dU„Z$dV„Z%dW„Z&dX„Z'dY„Z(dZd[„Z)d\„Z*d]„Z+d^„Z,d_„Z-d`„Z.da„Z/db„Z0dc„Z1dd„Z2e3dee3dfdgdhdiƒƒZ4e3dfdjdhdkƒZ5dl„Z6RS(ms'Manage a download/build/install processs Find/get/install Python packagessprefix=sinstallation prefixszip-okszsinstall package as a zipfiles multi-versionsms%make apps have to require() a versionsupgradesUs1force upgrade (searches PyPI for latest versions)s install-dir=sdsinstall package to DIRs script-dir=sssinstall scripts to DIRsexclude-scriptssxsDon't install scriptss always-copysas'Copy all needed packages to install dirs index-url=sis base URL of Python Package Indexs find-links=sfs(additional URL(s) to search for packagessdelete-conflictingsDs no longer needed; don't use thissignore-conflicts-at-my-risksbuild-directory=sbs/download/extract/build in DIR; keep the resultss optimize=sOslalso 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-unzipsZs*don't install as a zipfile, no matter whats site-dirs=sSs)list of directories where .pth files workseditableses+Install specified packages in editable formsno-depssNsdon't install dependenciess allow-hosts=sHs$pattern(s) that hostnames must matchslocal-snapshots-oksls(allow building eggs from local checkoutscCst|_|_t|_|_|_t|_t|_t|_ t|_ t|_ |_ t|_ |_|_t|_|_|_t|_|_|_t|_t|_t|_t|_t|_h|_t|_t|_|ii |_ |ii!||ii"dƒƒdS(Ns easy_install(#sNonesselfszip_okslocal_snapshots_oks install_dirs script_dirsexclude_scriptss index_urls find_linkssbuild_directorysargssoptimizesrecordsupgrades always_copys multi_versionseditablesno_depss allow_hostssrootsprefixs no_reports package_indexspth_filesdelete_conflictingsignore_conflicts_at_my_risks site_dirssinstalled_projectssFalsessitepy_installeds_dry_runs distributionsverboses_set_command_optionssget_option_dict(sself((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pysinitialize_optionsSs(            cCs x™|D]‘}tii|ƒptii|ƒoetid|ƒ|i oFtii |ƒotii|ƒ ot |ƒq”ti |ƒq˜qqWdS(Ns Deleting %s( sblockerssfilenamesosspathsexistssislinkslogsinfosselfsdry_runsisdirsrmtreesunlink(sselfsblockerssfilename((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pysdelete_blockersrs& 'cCs|iddddƒ|itjo|i|_n|idddfƒ|idddfƒ|idddfƒttti ƒ}t ƒ|_ |i tj o¿gi}|i id ƒD]"}|ti i|iƒƒƒqÀ~}xw|D]k}ti i|ƒ otid |ƒqòt|ƒ|jot|d ƒ‚qò|i it|ƒƒqòWn|i o|iƒn|ipd |_|i |_xG|it|iƒfD]-}||ijo|iid |ƒq·q·W|i tj o=gi}|i id ƒD]}||iƒƒq~}n dg}|i"tjo(|i#|id|id|ƒ|_"nt$|iti ƒ|_%|i&tj o-t'|i&t(ƒo|i&iƒ|_&qÕn g|_&|i)o|i"i*|iti ƒn|i"i+|i&ƒ|idddfƒt'|i,t-ƒ ohyBt-|i,ƒ|_,d |i,jo djn o t.‚nWq¢t.j otdƒ‚q¢Xn|i/o|i0otdƒ‚n|io|i1 ot2dƒ‚n|i3 ot2dƒ‚ng|_4dS(Ns install_dirs script_dirsbuild_directorys site_dirss install_libsinstall_scriptssinstallsrecords,s"%s (in --site-dirs) does not exists$ (in --site-dirs) is not on sys.pathshttp://pypi.python.org/simpleis*s search_pathshostssoptimizeis--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)(5sselfs_expands script_dirsNones install_dirsset_undefined_optionssmapsnormalize_pathssysspathsnormpaths get_site_dirss all_site_dirss site_dirssappends_[1]ssplitsssoss expandusersstripsdsisdirslogswarnsDistutilsOptionErrorseditablescheck_site_dirs index_urls shadow_paths path_itemsinserts allow_hostsshostss package_indexs create_indexs Environments local_indexs find_linkss isinstances basestringslocal_snapshots_oksscan_egg_linkssadd_find_linkssoptimizesints ValueErrorsdelete_conflictingsignore_conflicts_at_my_risksbuild_directorysDistutilsArgErrorsargssoutputs(sselfs path_itemsdsnormpaths_[1]ssshostss site_dirs((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pysfinalize_options|sn     E  = (  " cCs|i|iijoti|iƒnzÌx%|iD]}|i||i ƒq7W|i oŒ|i }|i oBt |i ƒ}x0tt |ƒƒD]}|||||x;|idƒD]&}|i|||id|ƒƒq+Wn|i|ƒdS(s=Write all the scripts for `dist`, unless scripts are excludedsscriptssscripts/N( sselfsexclude_scriptssdistsmetadata_isdirsmetadata_listdirs script_namesinstall_scripts get_metadatasinstall_wrapper_scripts(sselfsdists script_name((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pysinstall_egg_scriptsrs cCs~tii|ƒoWxdti|ƒD]?\}}}x-|D]%}|i i tii ||ƒƒq9Wq#Wn|i i |ƒdS(N( sosspathsisdirswalksbasesdirssfilessfilenamesselfsoutputssappendsjoin(sselfspathsdirssfilessfilenamesbase((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pys add_output|s+cCs%|iotd|fƒ‚ndS(NsjInvalid argument %r: you can't use filenames or URLs with --editable (except via the --find-links option).(sselfseditablesDistutilsArgErrorsspec(sselfsspec((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pys not_editable„s cCs_|i odSntiitii|i|iƒƒo t d|i|ifƒ‚ndS(Ns2%r already exists in %s; can't do a checkout there( sselfseditablesosspathsexistssjoinsbuild_directorysspecskeysDistutilsArgError(sselfsspec((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pyscheck_editableŒs (cCsÃtiddƒ}t}|i o|iƒnzit|t ƒ o™t |ƒo?|i |ƒ|i i||ƒ}|it|||tƒSqÞtii|ƒo*|i |ƒ|it|||tƒSqÞt|ƒ}n|i|ƒ|i i|||i|i|i ƒ}|tjo2d|}|io|d7}nt|ƒ‚nH|itjo|i|||dƒ|Sn|i||i||ƒSWdtii|ƒot |ƒnXdS(Nsprefixs easy_install-s+Could not find suitable distribution for %rs2 (--always-copy skips system and development eggs)sUsing(!stempfilesmkdtempstmpdirsNonesdownloadsselfseditablesinstall_site_pys isinstancesspecs Requirements URL_SCHEMEs not_editables package_indexs install_itemsdepssTruesosspathsexistssparse_requirement_argscheck_editablesfetch_distributionsupgrades always_copysdistsmsgsDistutilsErrors precedences DEVELOP_DISTsprocess_distributionslocationsrmtree(sselfsspecsdepssdistsmsgsdownloadstmpdir((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pys easy_install›s8     (   cCs_|p|i}|ptii|ƒ|j}|p|idƒ }|o| o:x7|i |i D]}|i |joPqfqfWt}ntidtii|ƒƒ|o=|i|||ƒ}xZ|D]}|i|||ƒqÎWn6|i|i|ƒƒg}|i||d|dƒ|tj o*x'|D]}||jo|Sq8q8WndS(Ns.eggs Processing %sisUsing(sinstall_neededsselfs always_copysosspathsdirnamesdownloadstmpdirsendswithsspecs local_indexs project_namesdistslocationsTrueslogsinfosbasenames install_eggssdistssprocess_distributionsdepsscheck_conflictssegg_distributionsNone(sselfsspecsdownloadstmpdirsdepssinstall_neededsdistsdists((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pys install_itemÄs,    cGs|i|ƒ|ii|ƒ|ii|ƒ|i|ƒ||i|i=%(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.) sN(smsgsselfs multi_versions no_reports install_dirsmapsnormalize_pathssysspathsdistslocationsegglocs project_namesnamesversionsextrasslocals( sselfsreqsdistswhatsnamesegglocsversionsmsgsextras((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pysinstallation_report^s    cCs*tii|ƒ}ti}dtƒSdS(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. (sosspathsdirnames setup_scriptssyss executablespythonslocals(sselfsspecs setup_scriptspythonsdirname((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pysreport_editablezs cCstiidtƒtiidtƒt|ƒ}|idjo)d|id}|i dd|ƒn%|idjo|i ddƒn|i o|i dd ƒnt i d |t|ƒdd i|ƒƒyt||ƒWn/tj o#}td |idfƒ‚nXdS( Nsdistutils.command.bdist_eggsdistutils.command.egg_infoisviis-s-qs-ns Running %s %ss sSetup script exited with %s(ssyssmoduless setdefaults bdist_eggsegg_infoslistsargssselfsverbosesvsinsertsdry_runslogsinfos setup_scriptslens setup_basesjoins run_setups SystemExitsDistutilsError(sselfs setup_scripts setup_basesargssv((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pys run_setup‡s  *c Csøddg}tidddtii|ƒƒ}z¦|i|ƒ|i |||ƒt |gƒ}g}x?|D]7}x.||D]"}|i|i|i|ƒƒq€WqoW| o|i otid|ƒn|SWdt|ƒti|iƒXdS(Ns bdist_eggs --dist-dirsprefixs egg-dist-tmp-sdirs+No eggs found in %s (setup script problem?)(sargsstempfilesmkdtempsosspathsdirnames setup_scriptsdist_dirsappendsselfs run_setups setup_bases Environmentsall_eggsseggsskeysdists install_eggslocationsdry_runslogswarnsrmtrees set_verbositysverbose( sselfs setup_scripts setup_basesdistseggssargsskeysdist_dirsall_eggs((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pysbuild_and_install›s& $  $   cCsÊ|itjodSnxƒ|i|iD]q}|ip|i|ijoNti d|ƒ|ii |ƒ|i|i jo|i i |iƒqšq)q)W|i ox|i|ii joti d|ƒq!ti d|ƒ|ii |ƒ|i|i jo|i i|iƒq!n|i oš|iiƒ|idjoytii|idƒ}tii|ƒoti|ƒnt|dƒ}|i|ii|iƒdƒ|iƒqÆndS(Ns&Removing %s from easy-install.pth files4%s is already the active version in easy-install.pths"Adding %s to easy-install.pth files setuptoolsssetuptools.pthswts (sselfspth_filesNonesdistskeysds multi_versionslocationslogsinfosremoves shadow_pathspathssaddsappendsdry_runssavesosspathsjoins install_dirsfilenamesislinksunlinksopensfswrites make_relativesclose(sselfsdistsfsfilenamesd((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pys update_pth°s4      cCstid||ƒ|SdS(NsUnpacking %s to %s(slogsdebugssrcsdst(sselfssrcsdst((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pysunpack_progressÔsc s°g‰g‰‡‡‡d†}t|||ƒˆiˆƒˆi oft i t i B}xSˆD]G}t i |ƒt idBd@}tid||ƒt i||ƒq]WndS(Ncsi|idƒo|idƒ oˆi|ƒnˆi||ƒˆi|ƒˆi o|pt SdS(Ns.pys EGG-INFO/( sdstsendswithssrcs startswiths to_compilesappendsselfsunpack_progresssto_chmodsdry_runsNone(ssrcsdst(s to_compilesto_chmodsself(s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pyspfÜs!imiÿschanging mode of %s to %o(s to_compilesto_chmodspfsunpack_archivesegg_paths destinationsselfs byte_compilesdry_runsstatsS_IXGRPsflagssfsossST_MODEsmodeslogsdebugschmod( sselfsegg_paths destinations to_compilesfspfsmodesflagssto_chmod((sselfs to_compilesto_chmods_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pysunpack_and_compileÙs   cCsŒdkl}zgti|idƒ||ddddd|iƒ|io&||d|iddd|iƒnWdti|iƒXdS(N(s byte_compileisoptimizeisforcesdry_run( sdistutils.utils byte_compileslogs set_verbositysselfsverboses to_compilesdry_runsoptimize(sselfs to_compiles byte_compile((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pys byte_compileìs  cCs$d|itiiddƒfSdS(Nsßbad install directory or PYTHONPATH You are attempting to install a package to a directory that is not on PYTHONPATH and which Python does not read ".pth" files from. The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was: %s and your PYTHONPATH environment variable currently contains: %r Here are some of your options for correcting the problem: * You can choose a different installation directory, i.e., one that is on PYTHONPATH or supports .pth files * You can add the installation directory to the PYTHONPATH environment variable. (It must then also be on PYTHONPATH whenever you run Python and want to use the package(s) you are installing.) * You can set up the installation directory to support ".pth" files by using one of the approaches described here: http://peak.telecommunity.com/EasyInstall.html#custom-installation-locations Please make the appropriate changes for your system and try again.s PYTHONPATHs(sselfs install_dirsossenvironsget(sself((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pysno_default_version_msgscCs)|iodSntii|idƒ}tti dƒdƒ}d}tii |ƒoQt id|iƒt|dƒiƒ}|idƒ otd|ƒ‚q¬n||joct id |ƒ|i o4t|ƒt|d ƒ}|i|ƒ|iƒn|i|gƒnt|_dS( s8Make sure there's a site.py in the target dir, if neededNssite.pys setuptoolsssChecking existing site.py in %ssrbs def __boot():s;%s is not a setuptools-generated site.py; please remove it.s Creating %sswb(sselfssitepy_installedsosspathsjoins install_dirssitepysresource_strings Requirementsparsessourcescurrentsexistsslogsdebugsopensreads startswithsDistutilsErrorsinfosdry_runsensure_directorysfswritescloses byte_compilesTrue(sselfsfscurrentssourcessitepy((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pysinstall_site_py+s(     sposixs install_dirs/$base/lib/python$py_version_short/site-packagess script_dirs $base/bins$base/Lib/site-packagess $base/ScriptscGs%|idƒi}|io‚|iƒ}|i|d<|iiti|i ƒ}xK|i ƒD]9\}}t||tƒtjot|||ƒq]q]Wndkl}xs|D]k}t||ƒ}|tj oI|||ƒ}tidjotii|ƒ}nt|||ƒq²q²WdS(Nsinstallsbase(s subst_varssposix(sselfsget_finalized_commands config_varssprefixscopysINSTALL_SCHEMESsgetsossnamesDEFAULT_SCHEMEsschemesitemssattrsvalsgetattrsNonessetattrsdistutils.utils subst_varssattrsspaths expanduser(sselfsattrssattrsvals subst_varss config_varssscheme((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pys_expand`s$      (7s__name__s __module__s__doc__s descriptionsTruescommand_consumes_argumentssNones user_optionssboolean_optionss negative_opts PackageIndexs create_indexsinitialize_optionssdelete_blockerssfinalize_optionssrunspseudo_tempnameswarn_deprecated_optionsscheck_site_dirscant_write_to_targetscheck_pth_processingsinstall_egg_scriptss add_outputs not_editablescheck_editablesFalses easy_installs install_itemsprocess_distributions should_unzips maybe_movesinstall_wrapper_scriptssinstall_scripts write_scripts install_eggssegg_distributions install_eggs install_exes exe_to_eggscheck_conflictssfound_conflictssinstallation_reportsreport_editables run_setupsbuild_and_installs update_pthsunpack_progresssunpack_and_compiles byte_compilesno_default_version_msgsinstall_site_pysdictsINSTALL_SCHEMESsDEFAULT_SCHEMEs_expand(((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pys easy_install*sf ÿ$  R   ) ) )    ) ) ,    )  " ) / # )    $    ) )  cCsötttiiddƒitiƒƒ}ti g}ti ti jo|i ti ƒnx>|D]6}|o)ti ddfjo#|i tii|ddƒƒntidjoI|itii|dd tid dƒtii|dd ƒgƒn&|i|tii|ddƒgƒti d jo^d |joMtiidƒ}|o0|i tii|ddtid dƒƒq’q–qšqdqdWx>ddfD]0}t|ƒ}||jo|i |ƒq«q«Wtt|ƒ}|SdS(Ns PYTHONPATHssos2emxsriscossLibs site-packagess/slibspythonis site-pythonsdarwinsPython.frameworksHOMEsLibrarysPythonii(sfiltersNonesossenvironsgetssplitspathsepssitedirsssyssprefixsprefixess exec_prefixsappendsplatformspathsjoinssepsextendsversionshomes plat_specificsget_python_libssite_libsmapsnormalize_path(sprefixess plat_specificssitedirssprefixshomessite_lib((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pys get_site_dirs}s>* #&%     ccsth}xg|D]_}t|ƒ}||joq nd||egg path translations for a given .exe filesPURELIB/ssPLATLIB/sSCRIPTS/sEGG-INFO/scripts/s/iisPKG-INFOis .egg-infois EGG-INFO/s.pths -nspkg.pthsPURELIBsPLATLIBs\simports%s/%s/N(sprefixesszipfilesZipFiles exe_filenameszsinfolistsinfosfilenamesnamessplitspartsslensendswithsinsertsjoins yield_linessreadspthsstripsreplaces startswithsappendsclosessortsreverse(s exe_filenamesinfosnamespthsprefixesspartssz((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pysget_exe_prefixesøs4!  $# $5 cCs>yti|ƒSWn&tj otd|fƒ‚nXdS(Ns1Not a URL, existing file, or requirement spec: %r(s Requirementsparsesspecs ValueErrorsDistutilsError(sspec((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pysparse_requirement_argscBsJtZdZeZd„Zd„Zd„Zd„Zd„Z d„Z RS(s)A .pth file with Distribution paths in itcCs~||_ttii|iƒƒ|_|iƒti |gt t ƒx0t |i ƒD]}t |it|tƒƒqWWdS(N(sfilenamesselfsnormalize_pathsosspathsdirnamesbasedirs_loads Environments__init__sNones yield_linesspathssmapsaddsfind_distributionssTrue(sselfsfilenamespath((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pys__init__&s   cCsxg|_t}h}tii|iƒoöxót |idƒD]Û}|i dƒo t }q>n|i ƒ}|ii|ƒ|iƒ p|iƒi dƒoq>nttii|i|ƒƒ}|idnd||Wn|io| o t |_nx1|io|idiƒ o|iiƒqCWdS(Nsrtsimports#iÿÿÿÿi(sselfspathssFalses saw_importsseensosspathsisfilesfilenamesopenslines startswithsTruesrstripsappendsstripsnormalize_pathsjoinsbasedirsexistsspopsdirty(sselfs saw_importspathsseensline((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pys_load-s0  $)!   cCsö|i odSndit|i|iƒƒ}|ottid|i ƒd|}t i i |i ƒot i |i ƒnt|i dƒ}|i|ƒ|iƒn>t i i|i ƒo'tid|i ƒt i |i ƒnt|_dS(s$Write changed .pth file back to diskNs s Saving %ss¼import sys; sys.__plen = len(sys.path) %s import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new) swbsDeleting empty %s(sselfsdirtysjoinsmaps make_relativespathssdataslogsdebugsfilenamesosspathsislinksunlinksopensfswritesclosesexistssFalse(sselfsfsdata((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pyssaveJs  cCsG|i|ijo |ii|iƒt|_nti||ƒdS(s"Add `dist` to the distribution mapN( sdistslocationsselfspathssappendsTruesdirtys Environmentsadd(sselfsdist((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pysaddfs cCsKx4|i|ijo |ii|iƒt|_qWti||ƒdS(s'Remove `dist` from the distribution mapN(sdistslocationsselfspathssremovesTruesdirtys Environment(sselfsdist((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pysremovels !cCsÙtiit|ƒƒ\}}t|iƒ}|g}ti djodpti }x|t|ƒ|jod||ijo+|i tiƒ|iƒ|i|ƒSntii|ƒ\}}|i |ƒqYW|SdS(Ns/(sosspathssplitsnormalize_pathsnpathslastslensselfsbasedirsbaselenspartssaltsepssepsappendscurdirsreversesjoin(sselfspathslastsnpathssepspartssbaselen((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pys make_relativess   ( s__name__s __module__s__doc__sFalsesdirtys__init__s_loadssavesaddsremoves make_relative(((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pysPthDistributions!s      cCsdkl}|diƒd}|i|ƒ}d}|o/|idƒpd}|od|}qln|o d}n t |ƒ}dt ƒ}t |d d ƒid ƒ|joP|o2|iƒid ƒod |iƒd}q÷nd }dt ƒ}n|Sd S(s;Create a #! line, getting options (if any) from script_text(s first_line_res isis s python.exes#!%(executable)s%(options)s sasciisignores-s -xN(sdistutils.command.build_scriptss first_line_res script_texts splitlinessfirstsmatchsoptionssgroupswininsts executables nt_quote_argslocalsshdrsunicodesencodesstrips startswith(s script_texts executableswininstshdrs first_line_resoptionssmatchsfirst((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pysget_script_header‚s(    "cCs‚|tijo tidjo!ti|tiƒ||ƒSnti ƒ}|d|dd|ddd||ff‚dS(Nsntiis %s %s( sfuncsossremovesnameschmodsargsstatsS_IWRITEssyssexc_infosexc(sfuncsargsexc((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pys auto_chmodœs   cCs.dkl}t||ƒt|tiƒdS(s?Ensure that the importer caches dont have stale info for `path`(s_zip_directory_cacheN(s zipimports_zip_directory_cacheszdcs_uncachespathssysspath_importer_cache(spathszdc((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pysuncache_zipdir£s  cCs[||jo ||=n@t|ƒ}x0|D](}t|ƒ|jo||=dSq+q+WdS(N(spathscachesnormalize_pathsp(spathscachesp((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pys_uncache©s   scCs<yt||dƒWnttfj o tSnXtSdS(s%Is this string a valid Python script?sexecN(scompilestextsfilenames SyntaxErrors TypeErrorsFalsesTrue(stextsfilename((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pys is_python³s  cCs$g}t}d}d|jp d|j}|o|idƒnxˆ|D]€}|djo|d7}qJ|djo#|id|ddƒd}qJ|o|id|ƒd}n|i|ƒqJW|o|id|ƒn|o"|id|ƒ|idƒnd i|ƒSd S( s@Quote a command line argument according to Windows parsing rulesis s s"s\iis\"sN(sresultsFalses needquotesnbsargsappendscsjoin(sargscs needquotesnbsresult((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pys nt_quote_argÅs0    cCsv|idƒp |idƒotSnt||ƒotSn|idƒod|iƒdiƒjSntSdS(sMIs this text, as a whole, a Python script? (as opposed to shell/bat/etc. s.pys.pyws#!spythoniN( sfilenamesendswithsTrues is_pythons script_texts startswiths splitlinesslowersFalse(s script_textsfilename((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pysis_python_scriptîs c cs£t|iƒƒ}td||ƒ}xxddfD]j}xa|i |ƒi ƒD]J\} }dt ƒ}tidjp|o |djo4ddf\} } dg}tid d |ƒ}n7d d f\} } d ddg}tidd|ƒ}tii|dd!ƒp tidjo |} n|} | | | |dgi} |D]}| | |ƒqM~ fV| dtd| ƒdfVqM| ||fVqMWq1WdS(sEYield write_script() argument tuples for a distribution's entrypointsssconsole_scriptss gui_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)() ) swin32s -script.pywsgui.exes.pyws(?i)python.exes pythonw.exes -script.pyscli.exes.pys.pycs.pyos(?i)pythonw.exes python.exeiiÿÿÿÿsts.exes setuptoolssbN(sstrsdistsas_requirementsspecsget_script_headers executableswininstsheadersgroups get_entry_mapsitemssnamesepslocalss script_textssyssplatformsextslaunchersoldsressubs new_headersosspathsexistsshdrsappends_[1]sxsresource_string(sdists executableswininsts new_headersheadersoldsepsgroupsspecshdrsnameslaunchers_[1]sextsxs script_text((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pysget_script_argss,     * =cCs†|o d„}n|tjo d„}ng}yti|ƒ}Wn1tij o"}|ti|t i ƒƒnXxÁ|D]¹}tii ||ƒ}yti|ƒi}Wntij o d}nXti|ƒot|||ƒq‚yti|ƒWq‚tij o"}|ti|t i ƒƒq‚Xq‚Wyti|ƒWn/tij o |ti|t i ƒƒnXdS(s¡Recursively delete a directory tree. This code is taken from the Python 2.4 version of 'shutil', because the 2.3 version doesn't really work right. cGsdS(N((sargs((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pysonerrorGscGs‚dS(N((sargs((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pysonerrorJsiN(s ignore_errorssonerrorsNonesnamessosslistdirspathserrorserrssyssexc_infosnamesjoinsfullnameslstatsst_modesmodesstatsS_ISDIRsrmtreesremovesrmdir(spaths ignore_errorssonerrorsnameserrsnamessfullnamesmode((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pysrmtree@s6    "cCsJdk}tii|idƒ}|tids(s with_ei_usage(sselfsargsskw(s with_ei_usages Distribution(sselfsargsskws_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pys _show_help€s(s__name__s __module__s _show_help((s Distributions with_ei_usage(s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pysDistributionWithoutHelpCommandssics7ˆddddgˆdtidpddˆˆS(Ns script_argss-qs easy_installs-vs script_nameis distclass(ssetupsargvssyssDistributionWithoutHelpCommandsskw((ssetupskwsDistributionWithoutHelpCommandssargv(s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pys†s( s setuptoolsssetupssetuptools.dists Distributionsdistutils.cores distutilssUSAGEs gen_usages with_ei_usagesDistributionWithoutHelpCommandssargvsNonessys( sargvskws gen_usages distutilsssetupsUSAGEs Distributions with_ei_usagesDistributionWithoutHelpCommands(( sargvskws gen_usages distutilsssetupsUSAGEs Distributions with_ei_usagesDistributionWithoutHelpCommandss_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pysmainis     (>s__doc__ssyssos.pathsoss zipimportsshutilstempfileszipfilesresstatsrandomsglobs setuptoolssCommandssetuptools.sandboxs run_setups distutilsslogsdir_utilsdistutils.sysconfigsget_python_libsdistutils.errorssDistutilsArgErrorsDistutilsOptionErrorsDistutilsErrorssetuptools.archive_utilsunpack_archivessetuptools.package_indexs PackageIndexsparse_bdist_wininsts URL_SCHEMEssetuptools.commands bdist_eggsegg_infos pkg_resourcesspathsnormpaths executablessys_executables__all__ssamefiles easy_installs get_site_dirss expand_pathssextract_wininst_cfgsget_exe_prefixessparse_requirement_args EnvironmentsPthDistributionssFalsesget_script_headers auto_chmodsuncache_zipdirs_uncaches is_pythons nt_quote_argsis_python_scriptsget_script_argssrmtrees bootstrapsNonesmain(-srandoms get_site_dirssdir_utilsshutilsDistutilsArgErrorslogs__all__stempfilesis_python_scriptsparse_bdist_wininstsPthDistributionssres is_pythonsextract_wininst_cfgsmains nt_quote_argsget_script_headerssamefilesstats zipimportsunpack_archives PackageIndexs auto_chmodsglobszipfilesparse_requirement_argssyssuncache_zipdirsCommandsrmtreessys_executablesDistutilsOptionErrorsDistutilsErrorsget_script_argssget_exe_prefixess URL_SCHEMEsegg_infos bootstraps run_setups easy_installs bdist_eggs_uncaches expand_pathssossget_python_lib((s_/mnt/gmirror/ports/devel/py-setuptools/work/setuptools-0.6c7/setuptools/command/easy_install.pys? sJQ       ÿÿÿÿW ) ) ) ! a    ) ))#