U QabU@s4dZddlmZddlmZddlmZmZddlmZmZm Z m Z ddl m 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%dd l&m'Z'm(Z(dd l)m*Z*dd l+m,Z,ddl-m.Z.m/Z/ddl)m0Z0ddl1m2Z2ddl3m4Z4ddl5m6Z6ddl7m8Z8ddl9m:Z:m;Z;mZ>ddl?m@Z@ddlAmBZBmCZCmDZDmEZEmFZFmGZGmHZHmIZImJZJmKZKmLZLmMZMmNZNmOZOmPZPdd lQZAeRZSejTdeAjUdddddddgZVd d!ZWd"dZXe,jYrBd#d$ZZd%d&Z[nd'd$ZZd(d&Z[d)d*Z\Gd+dde0Z]d,d-Z^d.d/Z_d0d1Z`d2dZad3dZbGd4ddeHZcGd5d6d6ecZdejefd7d8d9kredZcd:d;Zgdd?Zid@dAZjdsdBdCZkdDdEZldFdGZmdHejnkremZondIdJZodtdLdMZpdNdOZqdPdQZrdRdSZszddTlmtZuWnevk rndUdVZuYnXdWdXZtGdYdZdZewZxexyZzGd[d\d\exZ{Gd]d^d^Z|Gd_d`d`e|Z}Gdadbdbe}Z~e|jZe|jZdcddZdedfZdgehfdhdiZdjdkZdldmZdudndZe"jdodpZGdqdrdre*Zd S)va% 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 )glob) get_platform) convert_path subst_vars)DistutilsArgErrorDistutilsOptionErrorDistutilsErrorDistutilsPlatformError)INSTALL_SCHEMES SCHEME_KEYS)logdir_util) first_line_re)find_executableN)get_config_varsget_path)SetuptoolsDeprecationWarning)six) configparsermap)Command) run_setup) rmtree_safe)setopt)unpack_archive) PackageIndexparse_requirement_arg URL_SCHEME) bdist_eggegg_info)Wheel) yield_linesnormalize_pathresource_stringensure_directoryget_distributionfind_distributions Environment Requirement Distribution PathMetadata EggMetadata WorkingSetDistributionNotFoundVersionConflict DEVELOP_DISTdefault)categorysamefile easy_installPthDistributionsextract_wininst_cfgmainget_exe_prefixescCstddkS)NP)structcalcsizer<r<C/usr/lib/python3.8/site-packages/setuptools/command/easy_install.pyis_64bitOsr>cCsjtj|otj|}ttjdo&|}|r:tj||Stjtj|}tjtj|}||kS)z 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. r2)ospathexistshasattrr2normpathnormcase)Zp1Zp2Z both_existZ use_samefileZnorm_p1Znorm_p2r<r<r=r2SscCs|SNr<sr<r<r= _to_bytesesrHcCs.zt|dWdStk r(YdSXdSNasciiTF)rZ text_type UnicodeErrorrFr<r<r=isasciihs  rLcCs |dS)Nutf8)encoderFr<r<r=rHpscCs,z|dWdStk r&YdSXdSrI)rNrKrFr<r<r=rLss  cCst|ddS)N z; )textwrapdedentstripreplace)textr<r<r={rUc@seZdZdZdZdZdddddd d d d d dddddddddddgZdddddddd d!g Zej rd"ej Z e d#d$e fe d#d%diZ eZd&d'Zd(d)Zd*d+Zed,d-Zd.d/Zd0d1Zd2d3Zd4d5Zd6d7Zd8d9Zd:d;Zdd?Zed@ Z!edA Z"edB Z#dCdDZ$dEdFZ%dGdHZ&dIdJZ'dKdLZ(dMdNZ)e*j+dOdPZ,ddRdSZ-ddTdUZ.dVdWZ/ddXdYZ0dZd[Z1d\d]Z2d^d_Z3dd`daZ4edbdcZ5ddfdgZ6dhdiZ7djdkZ8dldmZ9dndoZ:dpdqZ;drdsZddwdxZ?edy Z@dzd{ZAd|d}ZBd~dZCddZDddZEddZFddZGddZHed ZIddZJddZKddZLeMeMddddZNeMdddZOddZPd$S)r3z'Manage a download/build/install processz Find/get/install Python packagesT)zprefix=Nzinstallation prefix)zip-okzzinstall package as a zipfile) multi-versionmz%make apps have to require() a version)upgradeUz1force upgrade (searches PyPI for latest versions))z install-dir=dzinstall package to DIR)z script-dir=rGzinstall scripts to DIR)exclude-scriptsxzDon't install scripts) always-copyaz'Copy all needed packages to install dir)z index-url=iz base URL of Python Package Index)z find-links=fz(additional URL(s) to search for packages)zbuild-directory=bz/download/extract/build in DIR; keep the results)z optimize=Ozlalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0])zrecord=Nz3filename in which to record list of installed files) always-unzipZz*don't install as a zipfile, no matter what)z site-dirs=Sz)list of directories where .pth files work)editableez+Install specified packages in editable form)no-depsNzdon't install dependencies)z allow-hosts=Hz$pattern(s) that hostnames must match)local-snapshots-oklz(allow building eggs from local checkouts)versionNz"print version information and exit)z no-find-linksNz9Don't load find-links defined in packages being installedrWrYr^r[r`rirkrnrpz!install in user site-package '%s'userNrfcCs,d|_d|_|_d|_|_|_d|_d|_d|_d|_ d|_ |_ d|_ |_ |_d|_|_|_d|_|_|_d|_d|_d|_d|_d|_d|_d|_d|_d|_tjrtj |_!tj"|_#n d|_!d|_#d|_$d|_%d|_&|_'d|_(i|_)d|_*d|_+|j,j-|_-|j,.||j,/ddS)NrFr3)0rqzip_oklocal_snapshots_ok install_dir script_direxclude_scripts index_url find_linksbuild_directoryargsoptimizerecordr[ always_copy multi_versionrino_deps allow_hostsrootprefix no_reportrpinstall_purelibinstall_platlibinstall_headers install_libinstall_scripts install_data install_baseinstall_platbasesiteENABLE_USER_SITE USER_BASEinstall_userbase USER_SITEinstall_usersite no_find_links package_indexpth_filealways_copy_from site_dirsinstalled_projectssitepy_installedZ_dry_run distributionverboseZ_set_command_optionsget_option_dictselfr<r<r=initialize_optionssJ      zeasy_install.initialize_optionscCs"dd|D}tt|j|dS)Ncss*|]"}tj|stj|r|VqdSrE)r?r@rAislink).0filenamer<r<r= s z/easy_install.delete_blockers..)listr _delete_path)rblockersZextant_blockersr<r<r=delete_blockersszeasy_install.delete_blockerscCsJtd||jrdStj|o.tj| }|r8tntj}||dS)Nz Deleting %s) r infodry_runr?r@isdirrrmtreeunlink)rr@Zis_treeZremoverr<r<r=rs  zeasy_install._delete_pathcCs4djtj}td}d}t|jfttdS)zT Render the Setuptools version and installation details, then exit. {}.{} setuptoolsz=setuptools {dist.version} from {dist.location} (Python {ver})N)formatsys version_infor%printlocals SystemExit)Zverdisttmplr<r<r=_render_versions  zeasy_install._render_versionc Csh|jo |tjd}tdd\}}|j|j|j||dd|d|d||||t tddd |_ t j r|j |j d <|j|j d <||||d d d d|jdkr|j|_|jdkrd|_|dd|dd|jr|jr|j|_|j|_|ddtttj}t|_|jdk rdd|jdD}|D]N}t j!|s|t"#d|n,t||krt$|dn|j%t|q\|j&s|'|j(pd|_(|jdd|_)|jt|jfD] }||j)kr|j)*d|q|j+dk r0dd|j+dD}ndg}|j,dkrX|j-|j(|j)|d|_,t.|j)tj|_/|j0dk rt1|j0t2j3r|j0|_0ng|_0|j4r|j,5|j)tj|js|j,6|j0|ddt1|j7t8s6z0t8|j7|_7d|j7krdksnt9Wnt9k r4t$d YnX|j&rN|j:sNt;d!|j<s^t;d"g|_=dS)#Nrr exec_prefixabiflags) Z dist_nameZ dist_versionZ dist_fullname py_versionZpy_version_shortZpy_version_nodotZ sys_prefixrZsys_exec_prefixrruserbaseZusersitertruryrFr)rtrtrrtruinstall)r|r|cSsg|]}tj|qSr<)r?r@ expanduserrRrrGr<r<r= 8sz1easy_install.finalize_options..,z"%s (in --site-dirs) does not existz$ (in --site-dirs) is not on sys.pathzhttps://pypi.org/simple/cSsg|] }|qSr<)rRrr<r<r=rNs*)Z search_pathhosts)r{r{z--optimize must be 0, 1, or 2z9Must specify a build directory (-b) when using --editablez:No urls, filenames, or requirements specified (see --help))>rprrsplitrrZget_nameZ get_versionZ get_fullnamegetattr config_varsrrrr_fix_install_dir_for_user_siteexpand_basedirs expand_dirs_expandrurtrZset_undefined_optionsrqrrrr"r@ get_site_dirs all_site_dirsrr?rr warnrappendricheck_site_dirrw shadow_pathinsertrr create_indexr' local_indexrx isinstancerZ string_typesrsZscan_egg_linksadd_find_linksr{int ValueErrorryrrzoutputs) rrrrrCrr]Z path_itemrr<r<r=finalize_optionss                zeasy_install.finalize_optionscCs\|jr tjsdS||jdkr.d}t||j|_|_tj ddd}| |dS)z; Fix the install_dir if "--user" was used. Nz$User base directory is not specifiedposixZunixZ_user) rqrrcreate_home_pathrr rrr?namerS select_scheme)rmsgZ scheme_namer<r<r=rss  z+easy_install._fix_install_dir_for_user_sitecCsX|D]N}t||}|dk rtjdks.tjdkr:tj|}t||j}t|||qdS)Nrnt)rr?rr@rrrsetattr)rattrsattrvalr<r<r= _expand_attrss   zeasy_install._expand_attrscCs|dddgdS)zNCalls `os.path.expanduser` on install_base, install_platbase and root.rrrNrrr<r<r=rszeasy_install.expand_basedirscCsddddddg}||dS)z+Calls `os.path.expanduser` on install dirs.rrrrrrNr)rdirsr<r<r=rszeasy_install.expand_dirsc Cs|j|jjkrt|jz|jD]}|||j q"|jr|j}|j rzt |j }t t |D]}|||d||<q`ddl m }||j|j|fd|j|W5t|jjXdS)Nr) file_utilz'writing list of installed files to '%s')rrr set_verbosityrzr3rr|rrlenrange distutilsrexecuteZ write_filewarn_deprecated_options)rspecrZroot_lenZcounterrr<r<r=runs*     zeasy_install.runcCsDz t}Wn"tk r.tdtj}YnXtj|j d|S)zReturn 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. rztest-easy-install-%s) r?getpid ExceptionrandomZrandintrmaxsizer@joinrt)rpidr<r<r=pseudo_tempnames  zeasy_install.pseudo_tempnamecCsdSrEr<rr<r<r=rsz$easy_install.warn_deprecated_optionsc CsZt|j}tj|d}tj|sTzt|Wn ttfk rR| YnX||j k}|sr|j sr| }nd| d}tj|}z*|rt|t|dt|Wn ttfk r| YnX|s|j st||r|jdkrt||j |_nd|_|tttkr.d|_n"|j rPtj|sPd|_d|_||_dS)z;Verify that self.install_dir is .pth-capable dir, if neededeasy-install.pthz .write-testwNT)r"rtr?r@rrAmakedirsOSErrorIOErrorcant_write_to_targetrr~check_pth_processingrropencloserno_default_version_msgrr4r _pythonpathr)rinstdirrZ is_site_dirZtestfileZ test_existsr<r<r=rs>           zeasy_install.check_site_diraS 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 z 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). a 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. cCsP|jtd|jf}tj|js6|d|j7}n|d|j7}t |dS)NrO) _easy_install__cant_write_msgrexc_infortr?r@rA_easy_install__not_exists_id_easy_install__access_msgr)rrr<r<r=rs z!easy_install.cant_write_to_targetc Cs|j}td||d}|d}tj|}tdd}z8|rNt|tj |}t j j |ddt |d}Wn ttfk r|YnXz||jft|d }tj}tjd krtj|\}} tj|d } | d kotj| } | r| }d dlm} | |dddgd tj|rNtd|WdSW5|r`|tj|rxt|tj|rt|X|jstd|dS)z@Empirically verify whether .pth files are supported in inst. dirz Checking .pth file support in %s.pthz.okzz import os f = open({ok_file!r}, 'w') f.write('OK') f.close() rOT)exist_okrNr pythonw.exe python.exer)spawnz-Ez-cpassz-TEST PASSED: %s appears to support .pth filesz+TEST FAILED: %s does NOT support .pth filesF)rtr rrr?r@rA _one_linerrdirname pkg_resourcesZ py31compatrrrrrrwriterrr executablerrrlowerdistutils.spawnrr~r) rrrZok_fileZ ok_existsrrrcrbasenameZaltZuse_altrr<r<r=rs\            z!easy_install.check_pth_processingc CsV|jsH|drH|dD],}|d|r.q||||d|q||dS)z=Write all the scripts for `dist`, unless scripts are excludedscriptszscripts/N)rvZmetadata_isdirZmetadata_listdirinstall_scriptZ get_metadatainstall_wrapper_scripts)rr script_namer<r<r=install_egg_scriptsYs z easy_install.install_egg_scriptscCsTtj|rDt|D]*\}}}|D]}|jtj||q$qn |j|dSrE)r?r@rwalkrrr)rr@baserfilesrr<r<r= add_outputgs  zeasy_install.add_outputcCs|jrtd|fdS)NzjInvalid argument %r: you can't use filenames or URLs with --editable (except via the --find-links option).)rirrrr<r<r= not_editableos zeasy_install.not_editablecCs<|js dStjtj|j|jr8td|j|jfdS)Nz2%r already exists in %s; can't do a checkout there)rir?r@rArrykeyrr!r<r<r=check_editablews zeasy_install.check_editablec cs:tjdd}zt|VW5tj|o2tt|XdS)Nz easy_install-)r)tempfilemkdtempr?r@rArrstr)rtmpdirr<r<r=_tmpdirs zeasy_install._tmpdirFc CsH|js||&}t|tst|rb|||j||}| d|||dW5QRSt j |r||| d|||dW5QRSt |}|||j|||j|j|j |j}|dkrd|}|jr|d7}t|nJ|jtkr||||d|W5QRS| ||j||W5QRSW5QRXdS)NTz+Could not find suitable distribution for %rz2 (--always-copy skips system and development eggs)Using)riinstall_site_pyr)rr(rr"rdownload install_itemr?r@rArr$Zfetch_distributionr[r}rrZ precedencer/process_distributionlocation)rrdepsr(dlrrr<r<r=r3s<        zeasy_install.easy_installcCs |p|j}|ptj||k}|p,|d }|pT|jdk oTtjt|t|jk}|r|s|j|jD]}|j |krjqqjd}t dtj ||r| |||}|D]}||||qn ||g}|||d|d|dk r|D]}||kr|SqdS)N.eggTz Processing %srr*)r}r?r@rendswithrr"r project_namer/r rr install_eggsr.egg_distribution)rrr,r(r0Zinstall_neededrZdistsr<r<r=r-s2     zeasy_install.install_itemcCs<t|}tD]*}d|}t||dkr t||||q dS)z=Sets the install directories by applying the install schemes.Zinstall_N)r r rr)rrschemer#attrnamer<r<r=rs zeasy_install.select_schemec Gs|||j|||j|jkr2|j||j|||||j|j<t |j ||f|| dr|j s|j |d|s|jsdS|dk r|j|jkrtd|dS|dks||kr|}tt|}t d|ztg|g|j|j}Wn^tk r<}ztt|W5d}~XYn0tk rj}zt|W5d}~XYnX|js||jr|D]"}|j|jkr||qt d|dS)Nzdependency_links.txtzSkipping dependencies for %szProcessing dependencies for %sz'Finished processing dependencies for %s) update_pthraddrr#removerrr rinstallation_report has_metadatarrZget_metadata_linesr}ras_requirementr(r'r,Zresolver3r-rr.Zreportr)rZ requirementrr0rZdistreqZdistrosrjr<r<r=r.sL           z!easy_install.process_distributioncCs2|jdk r|j S|dr dS|ds.dSdS)Nz not-zip-safeTzzip-safeF)rrr=rrr<r<r= should_unzips   zeasy_install.should_unzipcCstj|j|j}tj|r:d}t||j|j||Stj|rL|}nRtj ||krft |t |}t |dkrtj||d}tj|r|}t |t|||S)Nz<%r already exists in %s; build directory %s will not be keptrr)r?r@rryr#rAr rrrrlistdirrr$shutilmove)rr dist_filename setup_basedstrcontentsr<r<r= maybe_move s$       zeasy_install.maybe_movecCs,|jr dSt|D]}|j|qdSrE)rv ScriptWriterbestget_args write_script)rrrzr<r<r=r"sz$easy_install.install_wrapper_scriptscCsNt|}t||}|r8||t}t||}||t|ddS)z/Generate a legacy script wrapper and install itrdN) r'r>is_python_script_load_templaterrI get_headerrLrH)rrr script_textdev_pathrZ is_scriptZbodyr<r<r=r(s   zeasy_install.install_scriptcCs(d}|r|dd}td|}|dS)z There are a couple of template scripts in the package. This function loads one of them and prepares it for use. z script.tmplz.tmplz (dev).tmplrutf-8)rSr#decode)rQrZ raw_bytesr<r<r=rN2s   zeasy_install._load_templatetr<c sfdd|Dtd|jtjj|}|jrLdSt }t |tj |rpt |t |d|}||W5QRXt|d|dS)z1Write an executable file to the scripts directorycsg|]}tjj|qSr<)r?r@rrurr_rr<r=rDsz-easy_install.write_script..zInstalling %s script to %sNri)rr rrur?r@rr r current_umaskr$rArrrchmod)rrrGmodertargetmaskrcr<rr=rLAs   zeasy_install.write_scriptcCs^|dr|||gS|dr8|||gS|drT|||gS|}tj|r~|ds~t|||j ntj |rtj |}| |r|j r|dk r||||}tj|d}tj|s0ttj|dd}|stdtj |t|dkr(td tj ||d }|jrNt|||gS|||SdS) Nr2.exez.whl.pyzsetup.pyrz"Couldn't find a setup script in %srzMultiple setup scripts in %sr)rr3 install_egg install_exe install_wheelr?r@isfilerunpack_progressrabspath startswithryrHrrArrrrir rreport_editablebuild_and_install)rrrDr(rE setup_scriptZsetupsr<r<r=r5UsJ     zeasy_install.install_eggscCs>tj|r"t|tj|d}ntt|}tj ||dS)NEGG-INFO)metadata) r?r@rr*rr+ zipimport zipimporterr)Z from_filename)regg_pathrhr<r<r=r6s   zeasy_install.egg_distributionc Cstj|jtj|}tj|}|js2t|||}t ||sztj |rrtj |srt j ||jdn"tj|r|tj|fd|zd}tj |r||rtjd}}n tjd}}nL||r|||jd}}n*d}||r tjd}}n tjd}}||||f|dtj|tj|ft||d Wn$tk rxt|dd YnX||||S) Nr Removing FZMovingZCopyingZ ExtractingTz %s to %sfix_zipimporter_caches)r?r@rrtrrbrr$r6r2rrr remove_treerArrrcrBrCZcopytreer@Zmkpathunpack_and_compileZcopy2rupdate_dist_cachesrr )rrkr( destinationrZnew_dist_is_zippedrcrZr<r<r=r]s^                zeasy_install.install_eggc sPt|}|dkrtd|td|dd|ddtd}tj||d}||_ |d}tj|d}tj|d }t |t |||_ | ||tj|st|d } | d |dD].\} } | d kr| d | dd| fq| tj|d|fddt|Dtj|||j|jd|||S)Nz(%s is not a valid distutils Windows .exerhrrp)r4rpplatformr2z.tmprgPKG-INFOrzMetadata-Version: 1.0 target_versionz%s: %s _-rcsg|]}tj|dqS)r)r?r@r)rrzrur<r=rsz,easy_install.install_exe..)rr)r5rr)getrr?r@regg_namer/r$r*Z _provider exe_to_eggrArritemsrStitlerrrIrKrZ make_zipfilerrr]) rrDr(cfgrrkegg_tmpZ _egg_infoZpkg_infrckvr<ryr=r^sJ       zeasy_install.install_exec s6t|ggifdd}t||g}D]l}|dr<|d}|d}t|dd|d<tjj f|} || |t ||q<| t tj dt|dD]Z} t| rtj d| d } tj| st| d } | d t| d | qd S) z;Extract a bdist_wininst to the directories an egg would usecs|}D]\}}||r ||t|d}|d}tjjf|}|}|dsj|drt |d|d<dtj |dd< |n4|dr|dkrdtj |dd< ||Sq |d st d |dS) N/.pyd.dllrrr\SCRIPTS/r zWARNING: can't process %s)rrcrrr?r@rr3r strip_modulesplitextrr r)srcrFrGoldnewpartsr1r native_libsprefixes to_compile top_levelr<r=processs$        z(easy_install.exe_to_egg..processrrrr\rg)rrz.txtrrON)r7rrr3rrrr?r@rrZ write_stub byte_compileZwrite_safety_flagZ analyze_eggrrArrr) rrDrrZstubsresrresourceZpyfilerZtxtrcr<rr=r|s8          zeasy_install.exe_to_eggc Cst|}|sttj|j|}tj|}|j sBt |tj |rltj |slt j||j dn"tj|r|tj|fd|z.||j|fdtj|tj|fW5t|ddX||||S)NrlrmFrnzInstalling %s to %s)r Z is_compatibleAssertionErrorr?r@rrtr{rbrr$rrr rprArrrrZinstall_as_eggrrr r6)rZ wheel_pathr(Zwheelrsr<r<r=r_!s4       zeasy_install.install_wheela( 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 z 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.) Installedc Cs^d}|jr>|js>|d|j7}|jtttjkr>|d|j7}|j }|j }|j }d}|t S)z9Helpful installation message for display to package usersz %(what)s %(eggloc)s%(extras)srOr) r~r_easy_install__mv_warningrtrr"rr@_easy_install__id_warningr/r4rpr) rZreqrZwhatrZegglocrrpZextrasr<r<r=r<Os z easy_install.installation_reportaR 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"tj|}tj}d|jtS)NrO)r?r@rrr_easy_install__editable_msgr)rrrfrpythonr<r<r=rdhs zeasy_install.report_editablec Cstjdttjdtt|}|jdkrNd|jd}|dd|n|jdkrd|dd|jrv|dd t d |t |ddd |zt ||Wn6tk r}ztd |jdfW5d}~XYnXdS) Nzdistutils.command.bdist_eggzdistutils.command.egg_inforrrrrx-qz-nz Running %s %s zSetup script exited with %s)rmodules setdefaultrrrrrrr rrrrrrrz)rrfrErzrr<r<r=rms&    zeasy_install.run_setupc Csddg}tjdtj|d}z| tj|| || |||t |g}g}|D]&}||D]}| | |j|qhq\|s|jstd||WSt|t|jXdS)Nrz --dist-dirz egg-dist-tmp-)rdirz+No eggs found in %s (setup script problem?))r%r&r?r@rrr rr_set_fetcher_optionsrrr'r]r/rr) rrfrErzZdist_dirZall_eggsZeggsr#rr<r<r=res*     zeasy_install.build_and_installc Csp|jd}d}i}|D]&\}}||kr2q |d||dd<q t|d}tj|d}t ||dS) a 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. r3)rxrrwr{rrrwrx)r3z setup.cfgN) rrcopyr}rSdictr?r@rrZ edit_config) rrZei_optsZfetch_directivesZ fetch_optionsr#rZsettingsZ cfg_filenamer<r<r=rs  z!easy_install._set_fetcher_optionscCs*|jdkrdS|j|jD]H}|js0|j|jkrtd||j||j|jkr|j|jq|js|j|jjkrtd|n2td||j ||j|jkr|j |j|j s&|j |jdkr&t j|jd}t j|rt |t|d}||j|jd|dS)Nz&Removing %s from easy-install.pth filez4%s is already the active version in easy-install.pthz"Adding %s to easy-install.pth filersetuptools.pthwtrO)rr#r~r/r rr;rpathsr:rrsaver?r@rrtrrrr make_relativer)rrr]rrcr<r<r=r9s6            zeasy_install.update_pthcCstd|||S)NzUnpacking %s to %s)r debug)rrrFr<r<r=raszeasy_install.unpack_progresscsdggfdd}t|||js`D]&}t|tjdBd@}t||q8dS)NcsZ|dr |ds |n|ds4|dr>|||j rV|pXdS)Nr\ EGG-INFO/rz.so)r3rcrrar)rrFrZto_chmodrr<r=pfs    z+easy_install.unpack_and_compile..pfimi)rrrr?statST_MODErW)rrkrsrrcrXr<rr=rqs  zeasy_install.unpack_and_compilec Csjtjr dSddlm}z@t|jd||dd|jd|jrT|||jd|jdW5t|jXdS)Nr)rr)r{forcer) rdont_write_bytecodedistutils.utilrr rrrr{)rrrr<r<r=rs  zeasy_install.byte_compilea 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}||jtjddfSNZ PYTHONPATHr)_easy_install__no_default_msgrtr?environrz)rtemplater<r<r=rsz#easy_install.no_default_version_msgc Cs|jr dStj|jd}tdd}|d}d}tj|rt d|jt |}| }W5QRX| dstd |||krtd ||jst|t j |d dd }||W5QRX||gd |_dS)z8Make sure there's a site.py in the target dir, if neededNzsite.pyrz site-patch.pyrRrzChecking existing site.py in %sz def __boot():z;%s is not a setuptools-generated site.py; please remove it.z Creating %srencodingT)rr?r@rrtr#rSrAr riorreadrcrrrr$rr)rZsitepysourceZcurrentZstrmr<r<r=r+#s0       zeasy_install.install_site_pycCsd|js dSttjd}t|jD]8\}}||r&tj |s&| d|t |dq&dS)zCreate directories under ~.N~zos.makedirs('%s', 0o700)i) rqrr?r@rrZ iteritemsrrcrZ debug_printr)rhomerr@r<r<r=rCszeasy_install.create_home_pathz/$base/lib/python$py_version_short/site-packagesz $base/binrrz$base/Lib/site-packagesz $base/ScriptscGs|dj}|jrd|}|j|d<|jtj|j}| D]$\}}t ||ddkr>t |||q>ddl m }|D]B}t ||}|dk rt|||}tjdkrtj|}t |||qtdS)Nrrr)rr)Zget_finalized_commandrrrr rzr?rDEFAULT_SCHEMEr}rrrrr@r)rrrr7rrrr<r<r=rYs        zeasy_install._expand)F)F)T)N)rTr<)r)Q__name__ __module__ __qualname____doc__ descriptionZcommand_consumes_argumentsZ user_optionsZboolean_optionsrrrZhelp_msgrZ negative_optrrrrr staticmethodrrrrrrrrrrrPrQlstriprrr rrrr r"r$ contextlibcontextmanagerr)r3r-rr.r@rHrrrNrLr5r6r]r^r|r_rrr<rrdrrerr9rarqrrrr+rrr rrr<r<r<r=r3~s  0  z   0 ;   $ $ '    ,6-5   %  cCs tjddtj}td|Sr)r?rrzrpathsepfilter)r}r<r<r=rpsrc Cs~g}|ttjg}tjtjkr0|tj|D]}|r4tjdkr^|tj |ddnVtj dkr|tj |ddj tj dtj |ddgn||tj |ddgtjdkr4d |kr4tj d }|r4tj |d d d j tj d}||q4tdtdf}|D]}||kr||qtjrB|tjz|tWntk rjYnXttt|}|S)z& Return a list of 'site' dirs )Zos2emxZriscosZLibz site-packagesrlibz python{}.{}z site-pythondarwinzPython.frameworkHOMELibraryPythonrZpurelibZplatlib)extendrrrrrrtr?r@rseprrrrzrrrrgetsitepackagesAttributeErrorrrr")sitedirsrrrZhome_spZ lib_pathsZsite_libr<r<r=rus^             rccsi}|D]}t|}||krqd||<tj|s4qt|}||fV|D]}|ds\qL|dkrfqLttj||}tt |}| |D]H}| dst| }||krd||<tj|sq|t|fVqqLqdS)zBYield sys.path directories that might contain "old-style" packagesrr )rrimportN) r"r?r@rrAr3rrrr!rrcrstrip)Zinputsseenrrrrclinesliner<r<r= expand_pathss4        rc Cs@t|d}z$t|}|dkr*W dS|d|d|d}|dkrRWdS||dtd|d\}}}|dkrWdS||d|d d d }t |}z<||} | d d d } | t } |t| Wntjk rYW.dSX|dr"|ds*W dS|WS|XdS)znExtract configuration data from a bdist_wininst .exe Returns a configparser.RawConfigParser, or None rbN  zegg path translations for a given .exe file)zPURELIB/r)zPLATLIB/pywin32_system32r)zPLATLIB/r)rzEGG-INFO/scripts/)zDATA/lib/site-packagesrrrrrurz .egg-inforNrr z -nspkg.pth)ZPURELIBZPLATLIB\rz%s/%s/rcSsg|]\}}||fqSr<)r)rr_yr<r<r=r)sz$get_exe_prefixes..)rZZipFilerZinfolistrrrr3rrupperrrZPY3rSr!rRrSrcrsortreverse)Z exe_filenamerrXrrrrGZpthr<r<r=r7s@       " c@sReZdZdZdZdddZddZdd Zed d Z d d Z ddZ ddZ dS)r4z)A .pth file with Distribution paths in itFr<cCsl||_ttt||_ttj|j|_| t |gddt |j D]}tt|jt|dqLdS)NT)rrrr"rr?r@rbasedir_loadr'__init__r!rr:r&)rrrr@r<r<r=r4szPthDistributions.__init__cCsg|_d}t|j}tj|jrt|jd}|D]}| drHd}q4| }|j || r4| drtq4t tj|j|}|jd<tj|r||kr|jd|_q4d||<q4||jr|sd|_|jr|jd s|jqdS)NFZrtrT#rr)rrfromkeysrr?r@r`rrrcrrrRr"rrrApopdirtyr)rZ saw_importrrcrr@r<r<r=r=s4       zPthDistributions._loadc Cs|js dStt|j|j}|rtd|j||}d |d}t j |jr`t |jt|jd}||W5QRXn(t j |jrtd|jt |jd|_dS)z$Write changed .pth file back to diskNz Saving %srOrzDeleting empty %sF)rrrrrr rr _wrap_linesrr?r@rrrrrA)rZ rel_pathsrdatarcr<r<r=r\s   zPthDistributions.savecCs|SrEr<)rr<r<r=rrszPthDistributions._wrap_linescCsN|j|jko$|j|jkp$|jtk}|r>|j|jd|_t||dS)z"Add `dist` to the distribution mapTN) r/rrr?getcwdrrr'r:)rrnew_pathr<r<r=r:vs   zPthDistributions.addcCs2|j|jkr"|j|jd|_qt||dS)z'Remove `dist` from the distribution mapTN)r/rr;rr'r?r<r<r=r;s zPthDistributions.removecCstjt|\}}t|j}|g}tjdkr2dp6tj}t||kr||jkrl|tj | | |Stj|\}}||q8|S)Nr) r?r@rr"rraltseprrcurdirrr)rr@ZnpathZlastZbaselenrrr<r<r=rs      zPthDistributions.make_relativeN)r<) rrrrrrrrrrr:r;rr<r<r<r=r4/s  c@s(eZdZeddZedZedZdS)RewritePthDistributionsccs$|jV|D] }|Vq |jVdSrE)preludepostlude)clsrrr<r<r=rsz#RewritePthDistributions._wrap_linesz? import sys sys.__plen = len(sys.path) z 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) N)rrr classmethodrrrrr<r<r<r=rs rZSETUPTOOLS_SYS_PATH_TECHNIQUErawZrewritecCs ttjtrtSttjS)z_ Return a regular expression based on first_line_re suitable for matching strings. )rrpatternr'recompilerSr<r<r<r=_first_line_res rcCsd|tjtjfkr.tjdkr.t|tj||St\}}}t ||d|dd||ffdS)Nrrrz %s %s) r?rr;rrWrS_IWRITErrrZreraise)funcargexcZetZevrwr<r<r= auto_chmods  r cCs.t|}t|tj|r"t|nt|dS)aa 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)r"_uncacherpath_importer_cache!_replace_zip_directory_cache_data*_remove_and_clear_zip_directory_cache_data)Z dist_pathronormalized_pathr<r<r=rrs <  rrcCsPg}t|}|D]:}t|}||r|||dtjdfkr||q|S)ap 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. rr)rr"rcr?rr)rcacheresult prefix_lenpZnpr<r<r="_collect_zipimporter_cache_entriess   rcCs@t||D]0}||}||=|o(|||}|dk r |||<q dS)a 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)r)rrupdaterr old_entryZ new_entryr<r<r=_update_zipimporter_cache/s  rcCst||dSrE)r)rrr<r<r=r Osr cCsdd}t|tj|ddS)NcSs |dSrE)clearr@rr<r<r=2clear_and_remove_cached_zip_archive_directory_dataTszf_remove_and_clear_zip_directory_cache_data..clear_and_remove_cached_zip_archive_directory_datarrri_zip_directory_cache)rrr<r<r=r Ss r Z__pypy__cCsdd}t|tj|ddS)NcSs&|t||tj||SrE)rrirjupdaterrr<r<r=)replace_cached_zip_archive_directory_datajs zT_replace_zip_directory_cache_data..replace_cached_zip_archive_directory_datarr)rrr<r<r=r is  r c Cs4zt||dWnttfk r*YdSXdSdS)z%Is this string a valid Python script?execFTN)r SyntaxError TypeError)rTrr<r<r= is_python|s r#c CsNz(tj|dd}|d}W5QRXWnttfk rD|YSX|dkS)zCDetermine if the specified executable is a .sh (contains a #! line)zlatin-1rr#!)rrrrr)rfpmagicr<r<r=is_shs  r'cCs t|gS)z@Quote a command line argument according to Windows parsing rules subprocess list2cmdline)rr<r<r= nt_quote_argsr+cCsH|ds|drdSt||r&dS|drDd|dkSdS)zMIs this text, as a whole, a Python script? (as opposed to shell/bat/etc. r\.pywTr$rrF)r3r#rc splitlinesr)rPrr<r<r=rMs  rM)rWcGsdSrEr<)rzr<r<r=_chmodsr.c CsRtd||zt||Wn0tjk rL}ztd|W5d}~XYnXdS)Nzchanging mode of %s to %ozchmod failed: %s)r rr.r?error)r@rXrjr<r<r=rWs rWc@seZdZdZgZeZeddZeddZ eddZ edd Z ed d Z d d Z eddZddZeddZeddZdS) CommandSpeczm A command spec for a #! header, specified as a list of arguments akin to those passed to Popen. cCs|S)zV Choose the best CommandSpec class based on environmental conditions. r<rr<r<r=rJszCommandSpec.bestcCstjtj}tjd|S)N__PYVENV_LAUNCHER__)r?r@rCrrrrz)rZ_defaultr<r<r=_sys_executableszCommandSpec._sys_executablecCs:t||r|St|tr ||S|dkr0|S||S)zg Construct a CommandSpec from a parameter to build_scripts, which may be None. N)rrfrom_environment from_string)rZparamr<r<r= from_params  zCommandSpec.from_paramcCs||gSrE)r3r1r<r<r=r4szCommandSpec.from_environmentcCstj|f|j}||S)z} Construct a command spec from a simple string representing a command line parseable by shlex.split. )shlexr split_args)rstringr}r<r<r=r5szCommandSpec.from_stringcCs8t|||_t|}t|s4dg|jdd<dS)Nz-xr)r7r_extract_optionsoptionsr)r*rL)rrPcmdliner<r<r=install_optionss zCommandSpec.install_optionscCs:|dd}t|}|r.|dp0dnd}|S)zH Extract any options from the first line of the script. rOrrr)r-rmatchgrouprR)Z orig_scriptfirstr>r;r<r<r=r:s zCommandSpec._extract_optionscCs||t|jSrE)_renderrr;rr<r<r= as_headerszCommandSpec.as_headercCs6d}|D](}||r||r|ddSq|S)Nz"'rr)rcr3)itemZ_QUOTESqr<r<r= _strip_quotess zCommandSpec._strip_quotescCs tdd|D}d|dS)Ncss|]}t|VqdSrE)r0rErR)rrCr<r<r=rsz&CommandSpec._render..r$rOr()r}r<r<r<r=rAs zCommandSpec._renderN)rrrrr;rr8rrJr3r6r4r5r=rr:rBrErAr<r<r<r=r0s*       r0c@seZdZeddZdS)WindowsCommandSpecFrN)rrrrr8r<r<r<r=rF srFc@seZdZdZedZeZ e dddZ e dddZ e dd d Z ed d Ze d dZe ddZe ddZe dddZdS)rIz` Encapsulates behavior around writing entry point scripts for console and gui apps. a # 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)() ) NFcCs6tdt|rtnt}|d||}|||S)Nz Use get_argsr)warningsrEasyInstallDeprecationWarningWindowsScriptWriterrIrJget_script_headerrK)rrrwininstwriterheaderr<r<r=get_script_args$s zScriptWriter.get_script_argscCs$tjdtdd|rd}|||S)NzUse get_headerr) stacklevelr )rGrrHrO)rrPrrKr<r<r=rJ,szScriptWriter.get_script_headerc cs|dkr|}t|}dD]Z}|d}||D]>\}}|||jt}|||||} | D] } | Vqlq:q dS)z Yield write_script() argument tuples for a distribution's console_scripts and gui_scripts entry points. NZconsoleguiZ_scripts) rOr'r>Z get_entry_mapr}_ensure_safe_namerr_get_script_args) rrrMrtype_r?rZeprPrzrr<r<r=rK4s   zScriptWriter.get_argscCstd|}|rtddS)z? Prevent paths in *_scripts entry point names. z[\\/]z+Path separators not allowed in script namesN)rsearchr)rZ has_path_sepr<r<r=rRFs zScriptWriter._ensure_safe_namecCs tdt|rtS|SNzUse best)rGrrHrIrJ)rZ force_windowsr<r<r= get_writerOs zScriptWriter.get_writercCs.tjdkstjdkr&tjdkr&tS|SdS)zD Select the best ScriptWriter for this environment. win32javarN)rrtr?r_namerIrJr1r<r<r=rJUszScriptWriter.bestccs|||fVdSrEr<)rrTrrMrPr<r<r=rS_szScriptWriter._get_script_argsrcCs"|j|}|||S)z;Create a #! line, getting options (if any) from script_text)command_spec_classrJr6r=rB)rrPrcmdr<r<r=rOds zScriptWriter.get_header)NF)NF)N)rN)rrrrrPrQrrr0r[rrNrJrKrrRrWrJrSrOr<r<r<r=rIs&       rIc@sLeZdZeZeddZeddZeddZeddZ e d d Z d S) rIcCstdt|SrV)rGrrHrJr1r<r<r=rWos zWindowsScriptWriter.get_writercCs"tt|d}tjdd}||S)zC Select the best ScriptWriter suitable for Windows )rZnaturalZSETUPTOOLS_LAUNCHERr)rWindowsExecutableLauncherWriterr?rrz)rZ writer_lookupZlauncherr<r<r=rJus zWindowsScriptWriter.bestc #stddd|}|tjddkrBdjft}t|t dddd d dd g}| || ||}fd d |D}|||d|fVdS)z For Windows, add a .py extensionz.pyar,rPZPATHEXT;zK{ext} not listed in PATHEXT; scripts will not be recognized as executables.r\ -script.py.pyc.pyor[csg|] }|qSr<r<rUrr<r=rsz8WindowsScriptWriter._get_script_args..rTN) rr?rrrrrrGr UserWarningr;_adjust_header) rrTrrMrPextrrrr<rbr=rSs   z$WindowsScriptWriter._get_script_argscCsNd}d}|dkr||}}tt|tj}|j||d}||rJ|S|S)z Make sure 'pythonw' is used for gui and and 'python' is used for console (regardless of what sys.executable is). r r rQ)r9repl)rrescape IGNORECASEsub _use_header)rrTZ orig_headerrrfZ pattern_ob new_headerr<r<r=rds z"WindowsScriptWriter._adjust_headercCs$|ddd}tjdkp"t|S)z 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. rr"rX)rRrrtr)rkZ clean_headerr<r<r=rjs zWindowsScriptWriter._use_headerN) rrrrFr[rrWrJrSrdrrjr<r<r<r=rIls    rIc@seZdZeddZdS)r]c #s|dkrd}d}dg}nd}d}dddg}|||}fd d |D} |||d | fVd t|d fVtsd} | td fVdS)zG For Windows, add a .py extension and an .exe launcher rQz -script.pywr,Zclir_r\r`racsg|] }|qSr<r<rUrbr<r=rszDWindowsExecutableLauncherWriter._get_script_args..rTr[rdz .exe.manifestN)rdget_win_launcherr>load_launcher_manifest) rrTrrMrPZ launcher_typererZhdrrZm_namer<rbr=rSs"  z0WindowsExecutableLauncherWriter._get_script_argsN)rrrrrSr<r<r<r=r]sr]cCs2d|}tr|dd}n |dd}td|S)z Load the Windows launcher (executable) suitable for launching a script. `type` should be either 'cli' or 'gui' Returns the executable as a byte string. z%s.exe.z-64.z-32.r)r>rSr#)typeZ launcher_fnr<r<r=rms  rmcCs0ttd}tjr|tS|dtSdS)Nzlauncher manifest.xmlrR)rr#rrPY2varsrS)rZmanifestr<r<r=rns  rnFcCst|||SrE)rBr)r@ ignore_errorsonerrorr<r<r=rsrcCstd}t||S)N)r?umask)Ztmpr<r<r=rVs  rVcCs:ddl}tj|jd}|tjd<tj|tdS)Nr) rr?r@r__path__rargvrr6)rZargv0r<r<r= bootstraps   ryc sddlm}ddlmGfddd}|dkrBtjdd}t0|fddd g|tjdpfd|d |W5QRXdS) Nr)setupr)cseZdZdZfddZdS)z-main..DistributionWithoutHelpCommandsrc s(tj|f||W5QRXdSrE) _patch_usage _show_help)rrzkwr{r<r=r} sz8main..DistributionWithoutHelpCommands._show_helpN)rrrZ common_usager}r<r{r<r=DistributionWithoutHelpCommands srrrr3z-v)Z script_argsrZ distclass)rrzZsetuptools.distr)rrxr|)rxr~rzrr<r{r=r6s    c#sLddl}tdfdd}|jj}||j_z dVW5||j_XdS)Nrze usage: %(script)s [options] requirement_or_url ... or: %(script)s --help csttj|dS)N)Zscript)rr?r@r)rZUSAGEr<r= gen_usage s z_patch_usage..gen_usage)Zdistutils.corerPrQrZcorer)rrZsavedr<rr=r| s  r|c@seZdZdZdS)rHzuClass for warning about deprecations in EasyInstall in SetupTools. Not ignored by default, unlike DeprecationWarning.N)rrrrr<r<r<r=rH( srH)N)r)N)rrrrrrZdistutils.errorsrrrr Zdistutils.command.installr r rr r Zdistutils.command.build_scriptsrrrrr?rirBr%rrrrrPrGrr:rr)r7rZ sysconfigrrrrZsetuptools.externrZsetuptools.extern.six.movesrrrZsetuptools.sandboxrZsetuptools.py27compatrZsetuptools.commandrZsetuptools.archive_utilrZsetuptools.package_indexrrrrrZsetuptools.wheelr rr!r"r#r$r%r&r'r(r)r*r+r,r-r.r/Zpkg_resources.py31compatrpZ __metaclass__filterwarningsZ PEP440Warning__all__r>r2rqrHrLrr3rrrr5r7r4rrrzrr rrrrr r builtin_module_namesr r#r'r+rMrWr. ImportErrorrr0r3Zsys_executablerFrIrIr]rNrJrmrnrrVryr6rr|rHr<r<r<r=s            D {A))'l R    T^A