Qc@sdZddlmZmZddlmZmZmZddlZ ddl Z ddl m Z ddlmZddlmZddlZddlZdZd d d d d ddgZdZeZdgZdddZe jjZeeZd efdYZddlZ ee j_ejdZddl Z ee j!_e"edrbej#se"ed rej$j%dreZ&ne'Z&dS(s@Extensions to the 'distutils' for large or complex distributionsi(t ExtensiontLibrary(t DistributiontFeaturet_get_unpatchedN(tRequire(tCommand(t convert_paths0.9.8tsetupRRRRRt find_packagess lib2to3.fixest.c Cs4g}t|dfg}x|r|jd\}}xtj|D]}tjj||}d|krItjj|rItjjtjj|drI|j|||j|||dfqIqIWqWxSt |dgD]>}ddl m }g|D]} || |s | ^q }qW|S(sReturn 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). tiR s __init__.pytez_setupi(t fnmatchcase( RtpoptostlistdirtpathtjointisdirtisfiletappendtlisttfnmatchR ( twheretexcludetouttstacktprefixtnametfntpatR titem((s7/usr/lib/python2.7/site-packages/setuptools/__init__.pyR s  !&,cBs,eZejZeZdZddZRS(cKsAtj||x*|jD]\}}t|||qWdS(N(t_Commandt__init__titemstsetattr(tselftdisttkwtktv((s7/usr/lib/python2.7/site-packages/setuptools/__init__.pyR":sicKsFtj|||}x*|jD]\}}t|||q"W|S(N(R!treinitialize_commandR#R$(R%tcommandtreinit_subcommandsR'tcmdR(R)((s7/usr/lib/python2.7/site-packages/setuptools/__init__.pyR*@s(t__name__t __module__R!t__doc__tFalsetcommand_consumes_argumentsR"R*(((s7/usr/lib/python2.7/site-packages/setuptools/__init__.pyR5s  cCsg}xtj|D]\}}}|tjksM|jtjtjrZ|d}n|rg|D]}tjj||^qg}n|jttjj |qW|S(s^Find all files under 'dir' and return the list of full filenames (relative to 'dir'). i( Rtwalktcurdirt startswithtsepRRtextendtfilterR(tdirt all_filestbasetdirstfilestf((s7/usr/lib/python2.7/site-packages/setuptools/__init__.pytfindallIs( + tdont_write_bytecodetPYTHONDONTWRITEBYTECODE(((R0tsetuptools.extensionRRtsetuptools.distRRRtdistutils.coret distutilstsetuptools.commandt setuptoolstsetuptools.dependsRRR!tdistutils.utilRRtsyst __version__t__all__tNonetbootstrap_install_fromtTruetrun_2to3_on_docteststlib2to3_fixer_packagesR tcoreRR4R?tdistutils.filelisttfilelistthasattrR@tenvirontgett_dont_write_bytecodeR1(((s7/usr/lib/python2.7/site-packages/setuptools/__init__.pyts6          "