Warning: Cannot modify header information - headers already sent by (output started at /var/www/jonas-eriksen.dk/pic/private/index.php:1) in /var/www/jonas-eriksen.dk/pic/private/index.php on line 215
abc @ s d Z d d l 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 e j d
Z d e f d YZ d S( su
Class representing the list of files in a distribution.
Equivalent to distutils.filelist, but fixes some problems.
iNi ( t DistlibException( t fsdecode( t convert_patht Manifests \\w*
s #.*?(?=
)|
(?=$)i c B s e Z d Z d
d Z d Z d Z d Z e d Z d Z
d Z d Z e
d
e d Z e
d
e d
Z e
d
e d Z 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.
c C sY t j j t j j | p! t j | _ | j t j | _ d | _ t
| _ d S( sd
Initialise an instance.
:param base: The base directory to explore under.
N( t ost patht abspatht normpatht getcwdt baset sept prefixt Nonet allfilest sett files( t selfR ( ( s@ /usr/lib/python2.7/site-packages/pip/_vendor/distlib/manifest.pyt __init__* s - 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( sm Find all files under the base and set ``allfiles`` to the absolute
pathnames of files found.
i( t S_ISREGt S_ISDIRt S_ISLNKN( t statR R R R
R t popt appendR t listdirR t joint st_modeR ( R R R R R
t roott stackR t pusht namest namet fullnameR t mode( ( s@ /usr/lib/python2.7/site-packages/pip/_vendor/distlib/manifest.pyt findall9 s"
c C sM | j | j s- t j j | j | } n | j j t j j | d S( sz
Add a file to the manifest.
:param item: The pathname to add. This can be relative to the base.
N( t
startswithR R R R R R t addR ( R t item( ( s@ /usr/lib/python2.7/site-packages/pip/_vendor/distlib/manifest.pyR$ T s c C s" x | D] } | j | q Wd S( s
Add a list of files to the manifest.
:param items: The pathnames to add. These can be relative to the base.
N( R$ ( R t itemsR% ( ( s@ /usr/lib/python2.7/site-packages/pip/_vendor/distlib/manifest.pyt add_many^ s
c s f d t j } | rg t } x' | D] } | t j j | q7 W| | O} n g t d | D D] } t j j | ^ q~ S( s8
Return sorted files in directory order
c sX | j | t j d | | j k rT t j j | \ } } | | n d S( Ns add_dir added %s( R$ t loggert debugR R R t split( t dirst dt parentt _( t add_dirR ( s@ /usr/lib/python2.7/site-packages/pip/_vendor/distlib/manifest.pyR/ l s
c s s! | ] } t j j | Vq d S( N( R R R* ( t .0R ( ( s@ /usr/lib/python2.7/site-packages/pip/_vendor/distlib/manifest.pys { s ( R R R R t dirnamet sortedR ( R t wantdirst resultR+ t ft
path_tuple( ( R/ R s@ /usr/lib/python2.7/site-packages/pip/_vendor/distlib/manifest.pyR2 g s
c C s t | _ g | _ d S( s Clear all collected files.N( R R R
( R ( ( s@ /usr/lib/python2.7/site-packages/pip/_vendor/distlib/manifest.pyt clear} s c C s | j | \ } } } } | d k rc x| D]. } | j | d t s. t j d | q. q. Wn| d k r x| D] } | j | d t } qv Wn{| d k r xl| D]. } | j | d t s t j d | q q Wn3| d k rx$| D] } | j | d t } q Wn | d k r`x | D]1 } | j | d | s(t j d
| | q(q(Wn | d k rx | D] } | j | d | } qsWn~ | d k r| j d d | st j d
| qnG | d k r| j d d | st j d | qn t d | d S( sv
Process a directive which either adds some files from ``allfiles`` to
``files``, or removes some files from ``files``.
:param directive: The directive to process. This should be in a format
compatible with distutils ``MANIFEST.in`` files:
http://docs.python.org/distutils/sourcedist.html#commands
t includet anchors no files found matching %rt excludes global-includes3 no files found matching %r anywhere in distributions global-excludes recursive-includeR s- no files found matching %r under directory %rs recursive-excludet grafts no directories found matching %rt prunes4 no previously-included directories found matching %rs invalid action %rN( t _parse_directivet _include_patternt TrueR( t warningt _exclude_patternt FalseR R ( R t directivet actiont patternst thedirt
dirpatternt patternt found( ( s@ /usr/lib/python2.7/site-packages/pip/_vendor/distlib/manifest.pyt process_directive sD
c C s{ | j } t | d k rA | d d k rA | j d d n | d } d } } } | d k r t | d k r t d | n g | d D] } t | ^ q } n | d k rt | d
k r t d | n t | d } g | d D] } t | ^ q } nT | d k r[t | d k rHt d | n t | d } n t d | | | | | f S( s
Validate a directive.
:param directive: The directive to validate.
:return: A tuple of action, patterns, thedir, dir_patterns
i i R8 R: s global-includes global-excludes recursive-includes recursive-excludeR; R<