/usr/lib/python2.6/distutils
NameSizeModeActions
command/-0755rm
archive_util.py63190644editdlrm
archive_util.pyc54870644editdlrm
archive_util.pyo54870644editdlrm
bcppcompiler.py150910644editdlrm
bcppcompiler.pyc80870644editdlrm
bcppcompiler.pyo80870644editdlrm
ccompiler.py488630644editdlrm
ccompiler.pyc377140644editdlrm
ccompiler.pyo375210644editdlrm
cmd.py192530644editdlrm
cmd.pyc168560644editdlrm
cmd.pyo168560644editdlrm
config.py41640644editdlrm
config.pyc36800644editdlrm
config.pyo36800644editdlrm
core.py90810644editdlrm
core.pyc76900644editdlrm
core.pyo76900644editdlrm
cygwinccompiler.py172920644editdlrm
cygwinccompiler.pyc95070644editdlrm
cygwinccompiler.pyo95070644editdlrm
debug.py2650644editdlrm
debug.pyc2970644editdlrm
debug.pyo2970644editdlrm
dep_util.py36320644editdlrm
dep_util.pyc31920644editdlrm
dep_util.pyo31920644editdlrm
dir_util.py81220644editdlrm
dir_util.pyc68900644editdlrm
dir_util.pyo68900644editdlrm
dist.py480070644editdlrm
dist.pyc380360644editdlrm
dist.pyo380360644editdlrm
emxccompiler.py119120644editdlrm
emxccompiler.pyc75320644editdlrm
emxccompiler.pyo75320644editdlrm
errors.py37200644editdlrm
errors.pyc63180644editdlrm
errors.pyo63180644editdlrm
extension.py103250644editdlrm
extension.pyc74000644editdlrm
extension.pyo71750644editdlrm
fancy_getopt.py184270644editdlrm
fancy_getopt.pyc124520644editdlrm
fancy_getopt.pyo122580644editdlrm
filelist.py128720644editdlrm
filelist.pyc107810644editdlrm
filelist.pyo107810644editdlrm
file_util.py83160644editdlrm
file_util.pyc68610644editdlrm
file_util.pyo68610644editdlrm
log.py16060644editdlrm
log.pyc25470644editdlrm
log.pyo25470644editdlrm
msvc9compiler.py287010644editdlrm
msvc9compiler.pyc204490644editdlrm
msvc9compiler.pyo203770644editdlrm
msvccompiler.py237600644editdlrm
msvccompiler.pyc177430644editdlrm
msvccompiler.pyo177430644editdlrm
mwerkscompiler.py103390644editdlrm
mwerkscompiler.pyc76540644editdlrm
mwerkscompiler.pyo76540644editdlrm
README10140644editdlrm
spawn.py69910644editdlrm
spawn.pyc55840644editdlrm
spawn.pyo55840644editdlrm
sysconfig.py227650644editdlrm
sysconfig.pyc159260644editdlrm
sysconfig.pyo159260644editdlrm
text_file.py151450644editdlrm
text_file.pyc112250644editdlrm
text_file.pyo112250644editdlrm
unixccompiler.py144940644editdlrm
unixccompiler.pyc90730644editdlrm
unixccompiler.pyo90730644editdlrm
util.py219780644editdlrm
util.pyc164020644editdlrm
util.pyo164020644editdlrm
version.py114860644editdlrm
version.pyc72140644editdlrm
version.pyo72140644editdlrm
versionpredicate.py50950644editdlrm
versionpredicate.pyc55830644editdlrm
versionpredicate.pyo55830644editdlrm
__init__.py6700644editdlrm
__init__.pyc4370644editdlrm
__init__.pyo4370644editdlrm
Edit: /usr/lib/python2.6/distutils/filelist.pyo (10781B)
Ñò «gc @s½dZdZddkZddkZddkZddkZddkTddklZddk l Z l Z ddk l Z dfd „ƒYZeid „Zd „Zd ed d„ZdS(ssdistutils.filelist Provides the FileList class, used for poking about the filesystem and building lists of files. s:$Id: filelist.py 83648 2010-08-03 07:51:50Z ezio.melotti $iÿÿÿÿN(t*(t convert_path(tDistutilsTemplateErrortDistutilsInternalError(tlogtFileListcBs˜eZdZddd„Zd„Zeid„Zd„Z d„Z d„Z d„Z d„Z d „Zd „Zd dd d „Zd dd d„ZRS(sÑA list of files built by on exploring the filesystem and filtered by applying various patterns to what we find there. Instance attributes: dir directory from which files will be taken -- only used if 'allfiles' not supplied to constructor files list of filenames currently being built/filtered/manipulated allfiles complete list of files under consideration (ie. without any filtering applied) cCsd|_g|_dS(N(tNonetallfilestfiles(tselftwarnt debug_print((s(/usr/lib/python2.6/distutils/filelist.pyt__init__"s cCs ||_dS(N(R(R R((s(/usr/lib/python2.6/distutils/filelist.pyt set_allfiles+scCst|ƒ|_dS(N(tfindallR(R tdir((s(/usr/lib/python2.6/distutils/filelist.pyR.scCs$ddkl}|o |GHndS(s~Print 'msg' to stdout if the global DEBUG (taken from the DISTUTILS_DEBUG environment variable) flag is true. iÿÿÿÿ(tDEBUGN(tdistutils.debugR(R tmsgR((s(/usr/lib/python2.6/distutils/filelist.pyR 1scCs|ii|ƒdS(N(Rtappend(R titem((s(/usr/lib/python2.6/distutils/filelist.pyR;scCs|ii|ƒdS(N(Rtextend(R titems((s(/usr/lib/python2.6/distutils/filelist.pyR>scCs\ttii|iƒ}|iƒg|_x*|D]"}|iitii|Œƒq2WdS(N(tmaptostpathtsplitRtsortRtjoin(R tsortable_filest sort_tuple((s(/usr/lib/python2.6/distutils/filelist.pyRAs   cCs[xTtt|iƒdddƒD]3}|i||i|djo|i|=q q WdS(Niiiÿÿÿÿ(trangetlenR(R ti((s(/usr/lib/python2.6/distutils/filelist.pytremove_duplicatesLs cCs)ti|ƒ}|d}d}}}|djo;t|ƒdjotd|‚ntt|dƒ}n«|djoKt|ƒd jotd |‚nt|dƒ}tt|dƒ}nS|djo8t|ƒdjotd|‚nt|dƒ}ntd|‚||||fS(Nitincludetexcludesglobal-includesglobal-excludeis&'%s' expects ...isrecursive-includesrecursive-excludeis,'%s' expects ...tgrafttprunes#'%s' expects a single sunknown action '%s'(R#R$sglobal-includesglobal-exclude(srecursive-includesrecursive-exclude(R%R&(tstringRRR RRR(R tlinetwordstactiontpatternsRt dir_pattern((s(/usr/lib/python2.6/distutils/filelist.pyt_parse_template_lineUs,     cCsF|i|ƒ\}}}}|djoY|idti|ƒƒxý|D]0}|i|ddƒptid|ƒqIqIWnÂ|djoY|idti|ƒƒx—|D]0}|i|ddƒptid|ƒq¯q¯Wn\|d jo]|id ti|ƒƒx1|D]4}|i|dd ƒptid d |ƒqqWnò|djoY|idti|ƒƒxÇ|D]0}|i|dd ƒptid|ƒqqWnŒ|djof|id|ti|ƒfƒx[|D]7}|i|d|ƒptid d||ƒqëqëWn|djob|id|ti|ƒfƒxè|D]3}|i|d|ƒptid||ƒq^q^Wnª|djo?|id|ƒ|idd|ƒptid|ƒqBn^|djoC|id|ƒ|idd|ƒptidd|ƒqBnt d|‚dS( NR#sinclude tanchoris%warning: no files found matching '%s'R$sexclude s9warning: no previously-included files found matching '%s'sglobal-includesglobal-include is&warning: no files found matching '%s' sanywhere in distributionsglobal-excludesglobal-exclude sRwarning: no previously-included files matching '%s' found anywhere in distributionsrecursive-includesrecursive-include %s %stprefixsunder directory '%s'srecursive-excludesrecursive-exclude %s %ssNwarning: no previously-included files matching '%s' found under directory '%s'R%sgraft s+warning: no directories found matching '%s'R&sprune s)no previously-included directories found s matching '%s's'this cannot happen: invalid action '%s'( R-R R'Rtinclude_patternRR texclude_patternRR(R R(R*R+RR,tpattern((s(/usr/lib/python2.6/distutils/filelist.pytprocess_template_linezst                  iicCs d}t||||ƒ}|id|iƒ|idjo|iƒnxL|iD]A}|i|ƒo+|id|ƒ|ii|ƒd}qWqWW|S(sƒSelect strings (presumably filenames) from 'self.files' that match 'pattern', a Unix-style wildcard (glob) pattern. Patterns are not quite the same as implemented by the 'fnmatch' module: '*' and '?' match non-special characters, where "special" is platform- dependent: slash on Unix; colon, slash, and backslash on DOS/Windows; and colon on Mac OS. If 'anchor' is true (the default), then the pattern match is more stringent: "*.py" will match "foo.py" but not "foo/bar.py". If 'anchor' is false, both of these will match. If 'prefix' is supplied, then only filenames starting with 'prefix' (itself a pattern) and ending with 'pattern', with anything in between them, will match. 'anchor' is ignored in this case. If 'is_regex' is true, 'anchor' and 'prefix' are ignored, and 'pattern' is assumed to be either a string containing a regex or a regex object -- no translation is done, the regex is just compiled and used as-is. Selected strings will be added to self.files. Return 1 if files are found. is%include_pattern: applying regex r'%s's adding iN( ttranslate_patternR R2RRRtsearchRR(R R2R.R/tis_regext files_foundt pattern_retname((s(/usr/lib/python2.6/distutils/filelist.pyR0És   cCs d}t||||ƒ}|id|iƒxjtt|iƒdddƒD]I}|i|i|ƒo,|id|i|ƒ|i|=d}qOqOW|S(süRemove strings (presumably filenames) from 'files' that match 'pattern'. Other parameters are the same as for 'include_pattern()', above. The list 'self.files' is modified in place. Return 1 if files are found. is%exclude_pattern: applying regex r'%s'iiÿÿÿÿs removing (R4R R2RR RR5(R R2R.R/R6R7R8R!((s(/usr/lib/python2.6/distutils/filelist.pyR1÷s    N(t__name__t __module__t__doc__RR R RtcurdirRR RRRR"R-R3R0R1(((s(/usr/lib/python2.6/distutils/filelist.pyRs     % P.cCsddkl}l}l}l}g}|g}|i}|i}xÄ|o¼|ƒ}ti|ƒ} x| D]•} |ti joti i || ƒ} n| } ti| ƒ} | |} || ƒo|i| ƒql|| ƒo|| ƒ o|| ƒqlqlWqFW|S(s^Find all files under 'dir' and return the list of full filenames (relative to 'dir'). iÿÿÿÿ(tST_MODEtS_ISREGtS_ISDIRtS_ISLNK( tstatR>R?R@RAtpopRRtlistdirR=RR(RR>R?R@RAtlisttstackRCtpushtnamesR9tfullnameRBtmode((s(/usr/lib/python2.6/distutils/filelist.pyRs*"      cCs(ti|ƒ}tidd|ƒ}|S(sæTranslate a shell-like glob pattern to a regular expression; return a string containing the regex. Differs from 'fnmatch.translate()' in that '*' does not match "special characters" (which are platform-specific). s((?s$  ÿ