File: //opt/alt/python27/lib/python2.7/site-packages/paste/util/finddata.pyo
�
b�Nc @ s� d d l Z d d l Z d d l m Z d d l m Z d Z d Z d d e e e e d � Z
e d k r� d d l Z e j 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 s( i } t | � d | | f g } x | r#| j d � \ } } } } x�t j | � D]�} t j j | | � }
t j j |
� r{t } x_ | D]W } t | | � s� |
j � | j � k r� t
} | r� t j d |
| f IJn Pq� q� W| r� qU n t j j
t j j |
d � � rW| rW| s-| }
n | d | }
| j |
d |
t f � q| j |
| | d | | f � qU | s�| rU t } x_ | D]W } t | | � s�|
j � | j � k r�t
} | r�t j d |
| f IJn Pq�q�W| r�qU n | j | g � j | | � qU qU 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"