Ñò
ë{½Jc           @   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   *~s   .*s   *.baks   *.swp*t   CVSt   _darcss   ./builds   ./dists   EGG-INFOs
   *.egg-infot   .t    c         C   s:  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 ƒ ƒ o< | p
 |	 } n | d |	 } | i |
 d | t f ƒ q-| 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(   s£  
    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``,
    ``_darcs``, ``./build``, ``.dist``, ``EGG-INFO`` and ``*.egg-info``
    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(    (    sq   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.6/site-packages/TurboGears-1.1rc1-py2.6.egg/turbogears/finddata.pyt   find_package_data   sX    "   	"
% 	*t   __main__R   (   s   *.pys   *.pycs   *~s   .*s   *.baks   *.swp*(   s   .*R   R   s   ./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(    (    (    sq   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.6/site-packages/TurboGears-1.1rc1-py2.6.egg/turbogears/finddata.pyt   <module>   s    I