/usr/lib64/python3.9/distutils/__pycache__
NameSizeModeActions
archive_util.cpython-39.opt-1.pyc65870644editdlrm
archive_util.cpython-39.opt-2.pyc45450644editdlrm
archive_util.cpython-39.pyc65870644editdlrm
bcppcompiler.cpython-39.opt-1.pyc64980644editdlrm
bcppcompiler.cpython-39.opt-2.pyc62100644editdlrm
bcppcompiler.cpython-39.pyc64980644editdlrm
ccompiler.cpython-39.opt-1.pyc330970644editdlrm
ccompiler.cpython-39.opt-2.pyc167900644editdlrm
ccompiler.cpython-39.pyc331880644editdlrm
cmd.cpython-39.opt-1.pyc139260644editdlrm
cmd.cpython-39.opt-2.pyc80600644editdlrm
cmd.cpython-39.pyc139260644editdlrm
config.cpython-39.opt-1.pyc35290644editdlrm
config.cpython-39.opt-2.pyc31380644editdlrm
config.cpython-39.pyc35290644editdlrm
core.cpython-39.opt-1.pyc66540644editdlrm
core.cpython-39.opt-2.pyc32670644editdlrm
core.cpython-39.pyc66540644editdlrm
cygwinccompiler.cpython-39.opt-1.pyc85030644editdlrm
cygwinccompiler.cpython-39.opt-2.pyc68730644editdlrm
cygwinccompiler.cpython-39.pyc85030644editdlrm
debug.cpython-39.opt-1.pyc1960644editdlrm
debug.cpython-39.opt-2.pyc1960644editdlrm
debug.cpython-39.pyc1960644editdlrm
dep_util.cpython-39.opt-1.pyc27160644editdlrm
dep_util.cpython-39.opt-2.pyc12720644editdlrm
dep_util.cpython-39.pyc27160644editdlrm
dir_util.cpython-39.opt-1.pyc58170644editdlrm
dir_util.cpython-39.opt-2.pyc34390644editdlrm
dir_util.cpython-39.pyc58170644editdlrm
dist.cpython-39.opt-1.pyc343480644editdlrm
dist.cpython-39.opt-2.pyc250570644editdlrm
dist.cpython-39.pyc343480644editdlrm
errors.cpython-39.opt-1.pyc52520644editdlrm
errors.cpython-39.opt-2.pyc27040644editdlrm
errors.cpython-39.pyc52520644editdlrm
extension.cpython-39.opt-1.pyc69170644editdlrm
extension.cpython-39.opt-2.pyc34270644editdlrm
extension.cpython-39.pyc69170644editdlrm
fancy_getopt.cpython-39.opt-1.pyc105020644editdlrm
fancy_getopt.cpython-39.opt-2.pyc76990644editdlrm
fancy_getopt.cpython-39.pyc106250644editdlrm
filelist.cpython-39.opt-1.pyc97610644editdlrm
filelist.cpython-39.opt-2.pyc68900644editdlrm
filelist.cpython-39.pyc98350644editdlrm
file_util.cpython-39.opt-1.pyc59830644editdlrm
file_util.cpython-39.opt-2.pyc38460644editdlrm
file_util.cpython-39.pyc59830644editdlrm
log.cpython-39.opt-1.pyc23150644editdlrm
log.cpython-39.opt-2.pyc22540644editdlrm
log.cpython-39.pyc23150644editdlrm
msvc9compiler.cpython-39.opt-1.pyc174690644editdlrm
msvc9compiler.cpython-39.opt-2.pyc158480644editdlrm
msvc9compiler.cpython-39.pyc175120644editdlrm
msvccompiler.cpython-39.opt-1.pyc147070644editdlrm
msvccompiler.cpython-39.opt-2.pyc131340644editdlrm
msvccompiler.cpython-39.pyc147070644editdlrm
spawn.cpython-39.opt-1.pyc34410644editdlrm
spawn.cpython-39.opt-2.pyc23080644editdlrm
spawn.cpython-39.pyc34410644editdlrm
sysconfig.cpython-39.opt-1.pyc120640644editdlrm
sysconfig.cpython-39.opt-2.pyc85770644editdlrm
sysconfig.cpython-39.pyc120640644editdlrm
text_file.cpython-39.opt-1.pyc84410644editdlrm
text_file.cpython-39.opt-2.pyc33430644editdlrm
text_file.cpython-39.pyc84410644editdlrm
unixccompiler.cpython-39.opt-1.pyc71320644editdlrm
unixccompiler.cpython-39.opt-2.pyc65030644editdlrm
unixccompiler.cpython-39.pyc71320644editdlrm
util.cpython-39.opt-1.pyc155900644editdlrm
util.cpython-39.opt-2.pyc97060644editdlrm
util.cpython-39.pyc155900644editdlrm
version.cpython-39.opt-1.pyc73120644editdlrm
version.cpython-39.opt-2.pyc40270644editdlrm
version.cpython-39.pyc73410644editdlrm
versionpredicate.cpython-39.opt-1.pyc51250644editdlrm
versionpredicate.cpython-39.opt-2.pyc26450644editdlrm
versionpredicate.cpython-39.pyc51250644editdlrm
_msvccompiler.cpython-39.opt-1.pyc127840644editdlrm
_msvccompiler.cpython-39.opt-2.pyc116350644editdlrm
_msvccompiler.cpython-39.pyc128270644editdlrm
__init__.cpython-39.opt-1.pyc3860644editdlrm
__init__.cpython-39.opt-2.pyc2040644editdlrm
__init__.cpython-39.pyc3860644editdlrm
Edit: /usr/lib64/python3.9/distutils/__pycache__/filelist.cpython-39.pyc (9835B)
a ´i 2ã@s†dZddlZddlZddlZddlZddlmZddlmZm Z ddl m Z Gdd„dƒZ dd „Z ejfd d „Zd d „Zddd„ZdS)zsdistutils.filelist Provides the FileList class, used for poking about the filesystem and building lists of files. éN©Ú convert_path)ÚDistutilsTemplateErrorÚDistutilsInternalError)Úlogc@s|eZdZdZddd„Zdd„Zejfdd„Zd d „Z d d „Z d d„Z dd„Z dd„Z dd„Zdd„Zddd„Zddd„ZdS) ÚFileListaÑ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) NcCsd|_g|_dS©N)ÚallfilesÚfiles)ÚselfÚwarnÚ debug_print©rú*/usr/lib64/python3.9/distutils/filelist.pyÚ__init__szFileList.__init__cCs ||_dSr)r )r r rrrÚ set_allfiles#szFileList.set_allfilescCst|ƒ|_dSr)Úfindallr )r Údirrrrr&szFileList.findallcCsddlm}|rt|ƒdS)z~Print 'msg' to stdout if the global DEBUG (taken from the DISTUTILS_DEBUG environment variable) flag is true. r)ÚDEBUGN)Zdistutils.debugrÚprint)r Úmsgrrrrr )s zFileList.debug_printcCs|j |¡dSr)r Úappend)r Úitemrrrr3szFileList.appendcCs|j |¡dSr)r Úextend)r Úitemsrrrr6szFileList.extendcCs<tttjj|jƒƒ}g|_|D]}|j tjj|Ž¡qdSr)ÚsortedÚmapÚosÚpathÚsplitr rÚjoin)r Zsortable_filesZ sort_tuplerrrÚsort9sz FileList.sortcCs@tt|jƒdddƒD]$}|j||j|dkr|j|=qdS)Néréÿÿÿÿ)ÚrangeÚlenr )r ÚirrrÚremove_duplicatesCszFileList.remove_duplicatescCsÞ| ¡}|d}d}}}|dvrTt|ƒdkr ...cSsg|] }t|ƒ‘qSrr©Ú.0ÚwrrrÚ Wóz1FileList._parse_template_line..r")úrecursive-includeúrecursive-excludeéz,'%s' expects ...cSsg|] }t|ƒ‘qSrrr-rrrr0]r1)ÚgraftÚprunez#'%s' expects a single zunknown action '%s')rr%rr)r ÚlineÚwordsÚactionÚpatternsrÚ dir_patternrrrÚ_parse_template_lineLs0  ÿ ÿ  ÿ zFileList._parse_template_linecCs@| |¡\}}}}|dkrV| dd |¡¡|D]}|j|dd�s2t d|¡q2�næ|dkrš| dd |¡¡|D]}|j|dd�svt d |¡qv�n¢|d krÞ| d d |¡¡|D]}|j|d d�sºt d |¡qº�n^|dk�r(| dd |¡¡|D]"}|j|d d��st d|¡�q�n|dk�rv| d|d |¡f¡|D]$}|j||d��sNt d||¡�qNnÆ|dk�rÄ| d|d |¡f¡|D]$}|j||d��sœt d||¡�qœnx|dk�rú| d|¡|jd|d��swarning: no files found matching '%s' anywhere in distributionr+zglobal-exclude zRwarning: no previously-included files matching '%s' found anywhere in distributionr2zrecursive-include %s %s)Úprefixz:warning: no files found matching '%s' under directory '%s'r3zrecursive-exclude %s %szNwarning: no previously-included files matching '%s' found under directory '%s'r5zgraft z+warning: no directories found matching '%s'r6zprune z6no previously-included directories found matching '%s'z'this cannot happen: invalid action '%s')r<r r Úinclude_patternrr Úexclude_patternr)r r7r9r:rr;ÚpatternrrrÚprocess_template_linehs|ÿ ÿ ÿ  þ   ÿþ   ÿþ  ÿ ÿÿzFileList.process_template_liner"rcCsld}t||||ƒ}| d|j¡|jdur4| ¡|jD],}| |¡r:| d|¡|j |¡d}q:|S)a—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 True if files are found, False otherwise. Fz%include_pattern: applying regex r'%s'Nz adding T)Útranslate_patternr rBr rÚsearchr r)r rBr>r?Úis_regexÚ files_foundÚ pattern_reÚnamerrrr@´sÿ    zFileList.include_patterncCsrd}t||||ƒ}| d|j¡tt|jƒdddƒD]4}| |j|¡r8| d|j|¡|j|=d}q8|S)aRemove 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 True if files are found, False otherwise. Fz%exclude_pattern: applying regex r'%s'r"r#z removing T)rDr rBr$r%r rE)r rBr>r?rFrGrHr&rrrrAßsÿzFileList.exclude_pattern)NN)r"Nr)r"Nr)Ú__name__Ú __module__Ú __qualname__Ú__doc__rrrÚcurdirrr rrr!r'r<rCr@rArrrrrs    L ,ÿrcCs&dd„tj|dd�Dƒ}ttjj|ƒS)z% Find all files under 'path' css,|]$\}}}|D]}tj ||¡VqqdSr)rrr )r.ÚbaseÚdirsr ÚfilerrrÚ úsþz#_find_all_simple..T)Ú followlinks)rÚwalkÚfilterrÚisfile)rÚresultsrrrÚ_find_all_simpleös þrXcCs6t|ƒ}|tjkr.tjtjj|d�}t||ƒ}t|ƒS)zŒ Find all files under 'dir' and return the list of full filenames. Unless dir is '.', return full filenames with dir prepended. )Ústart) rXrrNÚ functoolsÚpartialrÚrelpathrÚlist)rr Zmake_relrrrrs   rcCs8t |¡}tj}tjdkrd}d|}t d||¡}|S)zæ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). ú\z\\\\z\1[^%s]z((?r?rFrYrfÚendrHZ prefix_rerarrrrD%s*   rD)r"Nr)rMrrbr_rZZdistutils.utilrZdistutils.errorsrrZ distutilsrrrXrNrrerDrrrrÚs  i