ó k޹Sc@s¬dZddlZddlZddlZddlZddlmZddlm Z ddl m Z ddl Z ddlmZddlmZmZmZddlmZdd lmZd d d d dddgZe jjZdZeZdgZde fd„ƒYZ!de!fd„ƒYZ"e!j#Z$ej%j&Z&eeƒZd efd„ƒYZeej%_ej'd„Z(e(ej)_(e*ede+ej,j-dƒƒƒZ.dS(s@Extensions to the 'distutils' for large or complex distributionsiÿÿÿÿN(tCommand(t convert_path(t fnmatchcase(t Extension(t DistributiontFeaturet_get_unpatched(tRequire(t filterfalsetsetupRRRRRt find_packagess lib2to3.fixest PackageFindercBskeZeddd d„ƒZed„ƒZed„ƒZed„ƒZed„ƒZed„ƒZ RS( t.t*cCsp|jt|ƒƒ}|j|ƒ}|j|Œ}|jdd|Œ}t||ƒ}t||ƒ}t|ƒS(sAReturn a list all Python packages found within directory 'where' 'where' 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'. The list of included packages is built up first and then any explicitly excluded packages are removed from it. tez_setups *__pycache__(t_find_packages_iterRtrequire_parentst _build_filtertfilterRtlist(tclstwheretexcludetincludetouttincludestexcludes((s=/usr/local/lib/python2.7/site-packages/setuptools/__init__.pytfind"sccs]g}xP|D]H}|jdƒ\}}}|rC||krCq n|j|ƒ|Vq WdS(s£ Exclude any apparent package that apparently doesn't include its parent. For example, exclude 'foo.bar' if 'foo' is not present. R N(t rpartitiontappend(tpackagestfoundtpkgtbasetseptchild((s=/usr/local/lib/python2.7/site-packages/setuptools/__init__.pyR<s  ccsaxZtj|dtƒD]C\}}}x1|D])}tjjtjj||ƒ|ƒVq,WqWdS(sE Return all dirs in base_path, relative to base_path t followlinksN(tostwalktTruetpathtrelpathtjoin(t base_pathtroottdirstfilestdir((s=/usr/local/lib/python2.7/site-packages/setuptools/__init__.pyt _all_dirsLs% cs8ˆjˆƒ}td„|ƒ}‡‡fd†|DƒS(NcSs d|kS(NR ((tn((s=/usr/local/lib/python2.7/site-packages/setuptools/__init__.pytXsc3sE|];}ˆjtjjˆ|ƒƒr|jtjjdƒVqdS(R N(t_looks_like_packageR%R(R*treplaceR"(t.0R((R+R(s=/usr/local/lib/python2.7/site-packages/setuptools/__init__.pys Zs(R0R(RR+R-tsuitable((R+Rs=/usr/local/lib/python2.7/site-packages/setuptools/__init__.pyRUscCstjjtjj|dƒƒS(Ns __init__.py(R%R(tisfileR*(R(((s=/usr/local/lib/python2.7/site-packages/setuptools/__init__.pyR3_scs ‡fd†S(s† Given a list of patterns, return a callable that will be true only if the input matches one of the patterns. cst‡fd†ˆDƒƒS(Nc3s!|]}tˆd|ƒVqdS(tpatN(R(R5R8(tname(s=/usr/local/lib/python2.7/site-packages/setuptools/__init__.pys is(tany(R9(tpatterns(R9s=/usr/local/lib/python2.7/site-packages/setuptools/__init__.pyR2is((R;((R;s=/usr/local/lib/python2.7/site-packages/setuptools/__init__.pyRcs((R ( t__name__t __module__t classmethodRt staticmethodRR0RR3R(((s=/usr/local/lib/python2.7/site-packages/setuptools/__init__.pyR !s  tPEP420PackageFindercBseZed„ƒZRS(cCstS(N(R'(R(((s=/usr/local/lib/python2.7/site-packages/setuptools/__init__.pyR3ls(R<R=R?R3(((s=/usr/local/lib/python2.7/site-packages/setuptools/__init__.pyR@kscBs,eZejZeZd„Zdd„ZRS(cKsAtj||ƒx*|jƒD]\}}t|||ƒqWdS(N(t_Commandt__init__titemstsetattr(tselftdisttkwtktv((s=/usr/local/lib/python2.7/site-packages/setuptools/__init__.pyRB{sicKsFtj|||ƒ}x*|jƒD]\}}t|||ƒq"W|S(N(RAtreinitialize_commandRCRD(REtcommandtreinit_subcommandsRGtcmdRHRI((s=/usr/local/lib/python2.7/site-packages/setuptools/__init__.pyRJs(R<R=RAt__doc__tFalsetcommand_consumes_argumentsRBRJ(((s=/usr/local/lib/python2.7/site-packages/setuptools/__init__.pyRvs  cCs¯g}x¢tj|ƒD]‘\}}}|tjksM|jtjtjƒrZ|d}n|r‹g|D]}tjj||ƒ^qg}n|jttjj |ƒƒqW|S(s^Find all files under 'dir' and return the list of full filenames (relative to 'dir'). i( R%R&tcurdirt startswithR"R(R*textendRR7(R/t all_filesR!R-R.tf((s=/usr/local/lib/python2.7/site-packages/setuptools/__init__.pytfindall‰s( + tdont_write_bytecodetPYTHONDONTWRITEBYTECODE(/RNR%tsystdistutils.coret distutilstdistutils.filelistRRAtdistutils.utilRtfnmatchRtsetuptools.versiont setuptoolstsetuptools.extensionRtsetuptools.distRRRtsetuptools.dependsRtsetuptools.compatRt__all__tversiont __version__tNonetbootstrap_install_fromR'trun_2to3_on_docteststlib2to3_fixer_packagestobjectR R@RR tcoreR RQRVtfilelisttgetattrtbooltenvirontgett_dont_write_bytecode(((s=/usr/local/lib/python2.7/site-packages/setuptools/__init__.pyts:        J