Ñò §ÚêLc @ s½ d Z d Z d d k Z d d k Z d d k Z d d k Z d d k Td d k l Z d d k l Z l Z d d k l Z d f d „ ƒ YZ e i d „ Z d „ Z d e d d „ Z d S( ss distutils.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( t DistutilsTemplateErrort DistutilsInternalError( t logt FileListc B s˜ e Z d Z d d d „ Z d „ Z e i d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d d d d „ Z d d d d „ Z RS( 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) c C s d | _ g | _ d S( N( t Nonet allfilest files( t selft warnt debug_print( ( s* /usr/lib64/python2.6/distutils/filelist.pyt __init__" s c C s | | _ d S( N( R ( R R ( ( s* /usr/lib64/python2.6/distutils/filelist.pyt set_allfiles+ s c C s t | ƒ | _ d S( N( t findallR ( R t dir( ( s* /usr/lib64/python2.6/distutils/filelist.pyR . s c C s$ d d k l } | o | GHn d S( s~ Print 'msg' to stdout if the global DEBUG (taken from the DISTUTILS_DEBUG environment variable) flag is true. iÿÿÿÿ( t DEBUGN( t distutils.debugR ( R t msgR ( ( s* /usr/lib64/python2.6/distutils/filelist.pyR 1 s c C s | i i | ƒ d S( N( R t append( R t item( ( s* /usr/lib64/python2.6/distutils/filelist.pyR ; s c C s | i i | ƒ d S( N( R t extend( R t items( ( s* /usr/lib64/python2.6/distutils/filelist.pyR > s c C s\ t t i i | i ƒ } | i ƒ g | _ x* | D]" } | i i t i i | Œ ƒ q2 Wd S( N( t mapt ost patht splitR t sortR t join( R t sortable_filest sort_tuple( ( s* /usr/lib64/python2.6/distutils/filelist.pyR A s c C s[ xT t t | i ƒ d d d ƒ D]3 } | i | | i | d j o | i | =q q Wd S( Ni i iÿÿÿÿ( t ranget lenR ( R t i( ( s* /usr/lib64/python2.6/distutils/filelist.pyt remove_duplicatesL s c C s) t i | ƒ } | d } d } } } | d j o; t | ƒ d j o t d | ‚ n t t | d ƒ } n« | d j oK t | ƒ d j o t d | ‚ n t | d ƒ } t t | d ƒ } nS | d j o8 t | ƒ d j o t d | ‚ n t | d ƒ } n t d | ‚ | | | | f S( Ni t includet excludes global-includes global-excludei s&