ó þ¾v]c@s dZddlZddlZddlZddlZddlZddlZddlm Z ddl m Z ddl m Z ddlmZddlmZmZdd lmZmZddlZdd lmZdd lmZmZdd lmZdd lm Z e!Z"ddddddddgZ#erFe#j$dƒnej%j&Z&dZ(e)Z*dgZ+dd!d„ƒYZ,de,fd„ƒYZ-e,j.Z/er«e-j.Z0nd„Z1d„Z2ej3j2je2_e j4ej3j5ƒZ6de6fd„ƒYZ5d„Z7ej8d „Z9e j:ƒdS("s@Extensions to the 'distutils' for large or complex distributionsiÿÿÿÿN(tDistutilsOptionError(t convert_path(t fnmatchcasei(tSetuptoolsDeprecationWarning(tPY3t string_types(tfiltertmap(t Extension(t DistributiontFeature(tRequire(tmonkeytsetupR R tCommandRR Rt find_packagestfind_namespace_packagess lib2to3.fixest PackageFindercBsSeZdZedddd„ƒZed„ƒZed„ƒZed„ƒZRS( sI Generate a list of all Python packages found within a directory t.t*cCs7t|jt|ƒ|jdd|Œ|j|ŒƒƒS(s Return a list all Python packages found within directory 'where' 'where' is the root directory which will be searched for packages. It should be supplied as a "cross-platform" (i.e. URL-style) path; it will be converted to the appropriate local path syntax. 'exclude' is a sequence of package names to exclude; '*' can be used as a wildcard in the names, such that 'foo.*' will exclude all subpackages of 'foo' (but not 'foo' itself). 'include' is a sequence of package names to include. If it's specified, only the named packages will be included. If it's not specified, all found packages will be included. 'include' can contain shell style wildcard patterns just like 'exclude'. tez_setups *__pycache__(tlistt_find_packages_iterRt _build_filter(tclstwheretexcludetinclude((s9/tmp/pip-install-vZZv26/setuptools/setuptools/__init__.pytfind4s  c csÞx×tj|dtƒD]À\}}}|}g|(x |D]˜}tjj||ƒ} tjj| |ƒ} | jtjjdƒ} d|ks:|j| ƒ r¤q:n|| ƒrÅ|| ƒ rÅ| Vn|j |ƒq:WqWdS(sy All the packages found in 'where' that pass the 'include' filter, but not the 'exclude' filter. t followlinksRN( tostwalktTruetpathtjointrelpathtreplacetsept_looks_like_packagetappend( RRRRtroottdirstfilestall_dirstdirt full_pathtrel_pathtpackage((s9/tmp/pip-install-vZZv26/setuptools/setuptools/__init__.pyRKs% cCstjjtjj|dƒƒS(s%Does a directory look like a package?s __init__.py(RR!tisfileR"(R!((s9/tmp/pip-install-vZZv26/setuptools/setuptools/__init__.pyR&gscs ‡fd†S(s Given a list of patterns, return a callable that will be true only if the input matches at least one of the patterns. cst‡fd†ˆDƒƒS(Nc3s!|]}tˆd|ƒVqdS(tpatN(R(t.0R1(tname(s9/tmp/pip-install-vZZv26/setuptools/setuptools/__init__.pys rs(tany(R3(tpatterns(R3s9/tmp/pip-install-vZZv26/setuptools/setuptools/__init__.pytrt((R5((R5s9/tmp/pip-install-vZZv26/setuptools/setuptools/__init__.pyRls((R( t__name__t __module__t__doc__t classmethodRRt staticmethodR&R(((s9/tmp/pip-install-vZZv26/setuptools/setuptools/__init__.pyR/s tPEP420PackageFindercBseZed„ƒZRS(cCstS(N(R (R!((s9/tmp/pip-install-vZZv26/setuptools/setuptools/__init__.pyR&vs(R8R9R<R&(((s9/tmp/pip-install-vZZv26/setuptools/setuptools/__init__.pyR=uscCsXtjjtd„|jƒDƒƒƒ}|jdtƒ|jrT|j|jƒndS(Ncss-|]#\}}|dkr||fVqdS(tdependency_linkstsetup_requiresN(R>R?((R2tktv((s9/tmp/pip-install-vZZv26/setuptools/setuptools/__init__.pys …s tignore_option_errors( t distutilstcoreR tdicttitemstparse_config_filesR R?tfetch_build_eggs(tattrstdist((s9/tmp/pip-install-vZZv26/setuptools/setuptools/__init__.pyt_install_setup_requiress   cKst|ƒtjj|S(N(RKRCRDR (RI((s9/tmp/pip-install-vZZv26/setuptools/setuptools/__init__.pyR Žs cBsAeZejZeZd„Zdd„Zd„Z dd„Z RS(cKs'tj||ƒt|ƒj|ƒdS(sj Construct the command for dist, updating vars(self) with any keyword parameters. N(t_Commandt__init__tvarstupdate(tselfRJtkw((s9/tmp/pip-install-vZZv26/setuptools/setuptools/__init__.pyRMžscCs^t||ƒ}|dkr/t|||ƒ|St|tƒsZtd|||fƒ‚n|S(Ns'%s' must be a %s (got `%s`)(tgetattrtNonetsetattrt isinstanceRR(RPtoptiontwhattdefaulttval((s9/tmp/pip-install-vZZv26/setuptools/setuptools/__init__.pyt_ensure_stringlike¦s cCsžt||ƒ}|dkrdSt|tƒrMt||tjd|ƒƒnMt|tƒrutd„|Dƒƒ}nt }|sšt d||fƒ‚ndS(sîEnsure that 'option' is a list of strings. If 'option' is currently a string, we split it either on /,\s*/ or /\s+/, so "foo bar baz", "foo,bar,baz", and "foo, bar baz" all become ["foo", "bar", "baz"]. Ns,\s*|\s+css|]}t|tƒVqdS(N(RUR(R2RA((s9/tmp/pip-install-vZZv26/setuptools/setuptools/__init__.pys ½ss''%s' must be a list of strings (got %r)( RRRSRURRTtretsplitRtalltFalseR(RPRVRYtok((s9/tmp/pip-install-vZZv26/setuptools/setuptools/__init__.pytensure_string_list°s icKs,tj|||ƒ}t|ƒj|ƒ|S(N(RLtreinitialize_commandRNRO(RPtcommandtreinit_subcommandsRQtcmd((s9/tmp/pip-install-vZZv26/setuptools/setuptools/__init__.pyRaÅsN( R8R9RLR:R^tcommand_consumes_argumentsRMRSRZR`Ra(((s9/tmp/pip-install-vZZv26/setuptools/setuptools/__init__.pyR™s    cCs2d„tj|dtƒDƒ}ttjj|ƒS(s% Find all files under 'path' css:|]0\}}}|D]}tjj||ƒVqqdS(N(RR!R"(R2tbaseR)R*tfile((s9/tmp/pip-install-vZZv26/setuptools/setuptools/__init__.pys Ðs R(RRR RR!R0(R!tresults((s9/tmp/pip-install-vZZv26/setuptools/setuptools/__init__.pyt_find_all_simpleËscCsRt|ƒ}|tjkrHtjtjjd|ƒ}t||ƒ}nt|ƒS(sŒ Find all files under 'dir' and return the list of full filenames. Unless dir is '.', return full filenames with dir prepended. tstart( RiRtcurdirt functoolstpartialR!R#RR(R,R*tmake_rel((s9/tmp/pip-install-vZZv26/setuptools/setuptools/__init__.pytfindall×s  ((;R:RtsysRltdistutils.coreRCtdistutils.filelistR[tdistutils.errorsRtdistutils.utilRtfnmatchRt_deprecation_warningRtsetuptools.extern.sixRRtsetuptools.extern.six.movesRRtsetuptools.versiont setuptoolstsetuptools.extensionRtsetuptools.distR R tsetuptools.dependsR R7R ttypet __metaclass__t__all__R'tversiont __version__RStbootstrap_install_fromR trun_2to3_on_docteststlib2to3_fixer_packagesRR=RRRRKR RDt get_unpatchedRRLRiRkRot patch_all(((s9/tmp/pip-install-vZZv26/setuptools/setuptools/__init__.pytsP          F   2