관리-도구
편집 파일: manifest.cpython-33.pyc
� 7�Re�4 c @ s� d Z d d l Z d d l Z d d l Z d d l Z d d l m Z d d l m Z d d l m Z d g Z e j e � Z e j d e j � Z e j d e j e j B� Z Gd d � d e � Z d S( uu Class representing the list of files in a distribution. Equivalent to distutils.filelist, but fixes some problems. i Ni ( u DistlibException( u fsdecode( u convert_pathu Manifestu \\w* u #.*?(?= )| (?=$)c B s� | Ee Z d Z d Z d d d � Z d d � Z d d � Z d d � Z d d d � Z d d � Z d d � Z d d � Z d d d d d � Z d d d d d � Z d d d d d � Z d d � Z d S( u Manifestu~ A list of files built by on exploring the filesystem and filtered by applying various patterns to what we find there. c C sY t j j t j j | p! t j � � � | _ | j t j | _ d | _ t � | _ d S( ud Initialise an instance. :param base: The base directory to explore under. N( u osu pathu abspathu normpathu getcwdu baseu sepu prefixu Noneu allfilesu setu files( u selfu base( ( u5 /tmp/pip-zej_zi-build/pip/_vendor/distlib/manifest.pyu __init__# s - u Manifest.__init__c C s� d d l m } m } m } g | _ } | j } | g } | j } | j } x� | r� | � } t j | � } x� | D]{ } t j j | | � } t j | � } | j } | | � r� | j t | � � qu | | � ru | | � ru | | � qu qu WqP Wd S( um Find all files under the base and set ``allfiles`` to the absolute pathnames of files found. i ( u S_ISREGu S_ISDIRu S_ISLNKN( u statu S_ISREGu S_ISDIRu S_ISLNKu allfilesu baseu popu appendu osu listdiru pathu joinu st_modeu fsdecode( u selfu S_ISREGu S_ISDIRu S_ISLNKu allfilesu rootu stacku popu pushu namesu nameu fullnameu statu mode( ( u5 /tmp/pip-zej_zi-build/pip/_vendor/distlib/manifest.pyu findall2 s"