/opt/alt/python27/lib64/python2.7/distutils
NameSizeModeActions
command/-0755rm
archive_util.py82190644editdlrm
archive_util.pyc77050644editdlrm
archive_util.pyo77050644editdlrm
bcppcompiler.py149410644editdlrm
bcppcompiler.pyc79990644editdlrm
bcppcompiler.pyo79990644editdlrm
ccompiler.py467260644editdlrm
ccompiler.pyc375970644editdlrm
ccompiler.pyo374560644editdlrm
cmd.py192700644editdlrm
cmd.pyc172850644editdlrm
cmd.pyo172850644editdlrm
config.py41340644editdlrm
config.pyc36560644editdlrm
config.pyo36560644editdlrm
core.py90190644editdlrm
core.pyc75880644editdlrm
core.pyo75880644editdlrm
cygwinccompiler.py177350644editdlrm
cygwinccompiler.pyc99810644editdlrm
cygwinccompiler.pyo99810644editdlrm
debug.py1620644editdlrm
debug.pyc2670644editdlrm
debug.pyo2670644editdlrm
dep_util.py35090644editdlrm
dep_util.pyc32320644editdlrm
dep_util.pyo32320644editdlrm
dir_util.py78680644editdlrm
dir_util.pyc68770644editdlrm
dir_util.pyo68770644editdlrm
dist.py500490644editdlrm
dist.pyc400470644editdlrm
dist.pyo400470644editdlrm
emxccompiler.py119310644editdlrm
emxccompiler.pyc75840644editdlrm
emxccompiler.pyo75840644editdlrm
errors.py34940644editdlrm
errors.pyc65450644editdlrm
errors.pyo65450644editdlrm
extension.py109040644editdlrm
extension.pyc74640644editdlrm
extension.pyo72380644editdlrm
fancy_getopt.py179480644editdlrm
fancy_getopt.pyc122310644editdlrm
fancy_getopt.pyo120540644editdlrm
filelist.py126890644editdlrm
filelist.pyc109770644editdlrm
filelist.pyo109770644editdlrm
file_util.py81310644editdlrm
file_util.pyc68150644editdlrm
file_util.pyo68150644editdlrm
log.py16860644editdlrm
log.pyc29420644editdlrm
log.pyo29420644editdlrm
msvc9compiler.py310040644editdlrm
msvc9compiler.pyc219000644editdlrm
msvc9compiler.pyo218270644editdlrm
msvccompiler.py236370644editdlrm
msvccompiler.pyc178630644editdlrm
msvccompiler.pyo178630644editdlrm
README2950644editdlrm
spawn.py86480644editdlrm
spawn.pyc65180644editdlrm
spawn.pyo65180644editdlrm
sysconfig.py177070644editdlrm
sysconfig.py.debug-build176220644editdlrm
sysconfig.pyc136090644editdlrm
sysconfig.pyo136090644editdlrm
text_file.py124280644editdlrm
text_file.pyc94020644editdlrm
text_file.pyo94020644editdlrm
unixccompiler.py142220644editdlrm
unixccompiler.py.distutils-rpath136770644editdlrm
unixccompiler.pyc83850644editdlrm
unixccompiler.pyo83850644editdlrm
util.py182360644editdlrm
util.pyc145680644editdlrm
util.pyo145680644editdlrm
version.py114330644editdlrm
version.pyc74030644editdlrm
version.pyo74030644editdlrm
versionpredicate.py50950644editdlrm
versionpredicate.pyc56330644editdlrm
versionpredicate.pyo56330644editdlrm
__init__.py2360644editdlrm
__init__.pyc4280644editdlrm
__init__.pyo4280644editdlrm
Edit: /opt/alt/python27/lib64/python2.7/distutils/filelist.pyc (10977B)
ó Þ[ bc@s§dZdZddlZddlZddlZddlmZddlmZm Z ddl m Z ddd„ƒYZ ej d „Zd „Zd dd d „ZdS(ssdistutils.filelist Provides the FileList class, used for poking about the filesystem and building lists of files. s$Id$iÿÿÿÿN(t convert_path(tDistutilsTemplateErrortDistutilsInternalError(tlogtFileListcBs˜eZdZddd„Zd„Zejd„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((s7/opt/alt/python27/lib64/python2.7/distutils/filelist.pyt__init__s cCs ||_dS(N(R(RR((s7/opt/alt/python27/lib64/python2.7/distutils/filelist.pyt set_allfiles$scCst|ƒ|_dS(N(tfindallR(Rtdir((s7/opt/alt/python27/lib64/python2.7/distutils/filelist.pyR 'scCs"ddlm}|r|GHndS(s~Print 'msg' to stdout if the global DEBUG (taken from the DISTUTILS_DEBUG environment variable) flag is true. iÿÿÿÿ(tDEBUGN(tdistutils.debugR(RtmsgR((s7/opt/alt/python27/lib64/python2.7/distutils/filelist.pyR *scCs|jj|ƒdS(N(Rtappend(Rtitem((s7/opt/alt/python27/lib64/python2.7/distutils/filelist.pyR4scCs|jj|ƒdS(N(Rtextend(Rtitems((s7/opt/alt/python27/lib64/python2.7/distutils/filelist.pyR7scCs\ttjj|jƒ}|jƒg|_x*|D]"}|jjtjj|Œƒq2WdS(N(tmaptostpathtsplitRtsortRtjoin(Rtsortable_filest sort_tuple((s7/opt/alt/python27/lib64/python2.7/distutils/filelist.pyR:s    cCsYxRtt|jƒdddƒD]1}|j||j|dkr |j|=q q WdS(Niiiÿÿÿÿ(trangetlenR(Rti((s7/opt/alt/python27/lib64/python2.7/distutils/filelist.pytremove_duplicatesEs&cCs|jƒ}|d}d}}}|dkrht|ƒdkrRtd|‚ntt|dƒ}n¢|dkr¼t|ƒd kr–td |‚nt|dƒ}tt|dƒ}nN|dkrýt|ƒdkrêtd|‚nt|dƒ}n td|‚||||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%(RRRRRR(RtlinetwordstactiontpatternsRt dir_pattern((s7/opt/alt/python27/lib64/python2.7/distutils/filelist.pyt_parse_template_lineNs,         cCs&|j|ƒ\}}}}|dkr}|jddj|ƒƒxÞ|D].}|j|ddƒsHtjd|ƒqHqHWn¥|dkrß|jddj|ƒƒx||D].}|j|ddƒsªtjd |ƒqªqªWnC|d krE|jd dj|ƒƒx|D]2}|j|dd ƒs tjd d|ƒq q WnÝ|dkr§|jddj|ƒƒx´|D].}|j|dd ƒsrtjd|ƒqrqrWn{|dkr|jd|dj|ƒfƒxL|D]5}|j|d|ƒsÚtjd d||ƒqÚqÚWn |dkr|jd|dj|ƒfƒxÝ|D]1}|j|d|ƒsItjd||ƒqIqIWn¡|dkrÉ|jd|ƒ|jdd|ƒs"tjd|ƒq"nY|dkr|jd|ƒ|jdd|ƒs"tjdd|ƒq"n td |‚dS(!NR"sinclude t 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 Rtinclude_patternRR texclude_patternRR(RR&R(R)RR*tpattern((s7/opt/alt/python27/lib64/python2.7/distutils/filelist.pytprocess_template_linepsh                         iicCsœd}t||||ƒ}|jd|jƒ|jdkrK|jƒnxJ|jD]?}|j|ƒrU|jd|ƒ|jj|ƒd}qUqUW|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 R1RRR tsearchRR(RR1R-R.tis_regext files_foundt pattern_retname((s7/opt/alt/python27/lib64/python2.7/distutils/filelist.pyR/»s    cCsžd}t||||ƒ}|jd|jƒxhtt|jƒdddƒD]G}|j|j|ƒrO|jd|j|ƒ|j|=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 (R3R R1RRRR4(RR1R-R.R5R6R7R ((s7/opt/alt/python27/lib64/python2.7/distutils/filelist.pyR0ès  &  N(t__name__t __module__t__doc__RR R RtcurdirR R RRRR!R+R2R/R0(((s7/opt/alt/python27/lib64/python2.7/distutils/filelist.pyRs     " K-cCsddlm}m}m}m}g}|g}|j}|j}x»|r|ƒ}tj|ƒ} x–| D]Ž} |tj kr˜tj j || ƒ} n| } tj| ƒ} | |} || ƒrÓ|j| ƒqk|| ƒrk|| ƒ rk|| ƒqkqkWqFW|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?R@tpopRRtlistdirR<RR(RR=R>R?R@tlisttstackRBtpushtnamesR8tfullnameRAtmode((s7/opt/alt/python27/lib64/python2.7/distutils/filelist.pyR s&"        cCsStj|ƒ}tj}tjdkr0d}nd|}tjd||ƒ}|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\\\\s\1[^%s]s((?t|ƒ}nd}|dk r´tdƒ}t|ƒt|ƒ }tj}tjdkr”d}nd|j |d|fƒ}n|rÇd|}ntj|ƒS(sTranslate a shell-like wildcard pattern to a compiled regular expression. Return the compiled regex. If 'is_regex' true, then 'pattern' is directly compiled to a regex (if it's a string) or just returned as-is (assumes it's a regex object). ts\s\\t^s.*N( t isinstancetstrRMtcompileRPRRRRLR(R1R-R.R5R7t empty_patternt prefix_reRL((s7/opt/alt/python27/lib64/python2.7/distutils/filelist.pyR38s"       ((R;t __revision__RRMRJtdistutils.utilRtdistutils.errorsRRt distutilsRRR<R RPRR3(((s7/opt/alt/python27/lib64/python2.7/distutils/filelist.pyts ñ