³ò
&e|Mc           @   s–   d  d k  Z  d  d k Z d  d k l Z d  d k l Z d Z d Z d d e e e e	 d „ Z
 e d j o& d  d k Z e i e
 d e ƒ ƒ n d S(   iÿÿÿÿN(   t   fnmatchcase(   t   convert_paths   *.pys   *.pycs
   *$py.classs   *~s   .*s   *.bakt   CVSt   _darcss   ./builds   ./dists   EGG-INFOs
   *.egg-infot   .t    c         C   sB  h  } t  |  ƒ d | | f g } x| o| i d ƒ \ }  } } } xðt i |  ƒ D]ß}	 t i i |  |	 ƒ }
 t i i |
 ƒ ot } xd | D]\ } t |	 | ƒ p |
 i	 ƒ  | i	 ƒ  j o- t
 } | o t i d |
 | f IJn Pq‘ q‘ W| o qV n t i i t i i |
 d ƒ ƒ oD | o< | p
 |	 } n | d |	 } | i |
 d | t f ƒ q5| i |
 | |	 d | | f ƒ qV | p | oœ t } xd | D]\ } t |	 | ƒ p |
 i	 ƒ  | i	 ƒ  j o- t
 } | o t i d |
 | f IJn Pq¦q¦W| o qV n | i | g  ƒ i | |	 ƒ qV qV Wq$ W| S(   sj  
    Return a dictionary suitable for use in ``package_data``
    in a distutils ``setup.py`` file.

    The dictionary looks like::

        {'package': [files]}

    Where ``files`` is a list of all the files in that package that
    don't match anything in ``exclude``.

    If ``only_in_packages`` is true, then top-level directories that
    are not packages won't be included (but directories under packages
    will).

    Directories matching any pattern in ``exclude_directories`` will
    be ignored; by default directories with leading ``.``, ``CVS``,
    and ``_darcs`` will be ignored.

    If ``show_ignored`` is true, then all the files that aren't
    included in package data are shown on stderr (for debugging
    purposes).

    Note patterns use wildcards, or can be exact paths (including
    leading ``./``), and all searching is case-insensitive.
    R   i    s"   Directory %s ignored by pattern %ss   __init__.pyR   t   /s   File %s ignored by pattern %s(   R   t   popt   ost   listdirt   patht   joint   isdirt   FalseR    t   lowert   Truet   syst   stderrt   isfilet   appendt
   setdefault(   t   wheret   packaget   excludet   exclude_directoriest   only_in_packagest   show_ignoredt   outt   stackt   prefixt   namet   fnt   bad_namet   patternt   new_package(    (    sa   /afs/athena.mit.edu/user/x/a/xavid/Public/bazki/lib/PasteDeploy-1.3.4-py2.5.egg/tests/finddata.pyt   find_package_data   sZ    !   	"
% 	*t   __main__R   (   s   *.pys   *.pycs
   *$py.classs   *~s   .*s   *.bak(   s   .*s   CVSs   _darcss   ./builds   ./dists   EGG-INFOs
   *.egg-info(   R   R   t   fnmatchR    t   distutils.utilR   t   standard_excludet   standard_exclude_directoriesR   R   R#   t   __name__t   pprint(    (    (    sa   /afs/athena.mit.edu/user/x/a/xavid/Public/bazki/lib/PasteDeploy-1.3.4-py2.5.egg/tests/finddata.pys   <module>   s    I