Your IP : 18.119.119.191


Current Path : /opt/alt/python33/lib64/python3.3/distutils/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/distutils/__pycache__/dep_util.cpython-33.pyc

�
��f�
c@sMdZddlZddlmZdd�Zdd�Zdd	d
�ZdS(u�distutils.dep_util

Utility functions for simple, timestamp-based dependency of files
and groups of files; also, function based entirely on such
timestamp dependency analysis.iN(uDistutilsFileErrorcCs�tjj|�s1tdtjj|���ntjj|�sGdSddlm}tj|�|}tj|�|}||kS(uReturn true if 'source' exists and is more recently modified than
    'target', or if 'source' exists and 'target' doesn't.  Return false if
    both exist and 'target' is the same age or younger than 'source'.
    Raise DistutilsFileError if 'source' does not exist.
    ufile '%s' does not existii(uST_MTIME(uosupathuexistsuDistutilsFileErroruabspathustatuST_MTIME(usourceutargetuST_MTIMEumtime1umtime2((u7/opt/alt/python33/lib64/python3.3/distutils/dep_util.pyunewersunewercCs�t|�t|�kr'td��ng}g}xVtt|��D]B}t||||�rF|j||�|j||�qFqFW||fS(u�Walk two filename lists in parallel, testing if each source is newer
    than its corresponding target.  Return a pair of lists (sources,
    targets) where source is newer than target, according to the semantics
    of 'newer()'.
    u+'sources' and 'targets' must be same length(ulenu
ValueErrorurangeuneweruappend(usourcesutargetsu	n_sourcesu	n_targetsui((u7/opt/alt/python33/lib64/python3.3/distutils/dep_util.pyunewer_pairwise sunewer_pairwiseuerrorcCs�tjj|�sdSddlm}tj|�|}x{|D]o}tjj|�s�|dkrgq�|dkryq@q�|dkr�dSntj|�|}||kr@dSq@WdSdS(u�Return true if 'target' is out-of-date with respect to any file
    listed in 'sources'.  In other words, if 'target' exists and is newer
    than every file in 'sources', return false; otherwise return true.
    'missing' controls what we do when a source file is missing; the
    default ("error") is to blow up with an OSError from inside 'stat()';
    if it is "ignore", we silently drop any missing source files; if it is
    "newer", any missing source files make us assume that 'target' is
    out-of-date (this is handy in "dry-run" mode: it'll make you pretend to
    carry out commands that wouldn't work because inputs are missing, but
    that doesn't matter because you're not actually going to run the
    commands).
    ii(uST_MTIMEuerroruignoreunewerN(uosupathuexistsustatuST_MTIME(usourcesutargetumissinguST_MTIMEutarget_mtimeusourceusource_mtime((u7/opt/alt/python33/lib64/python3.3/distutils/dep_util.pyunewer_group6s 
unewer_group(u__doc__uosudistutils.errorsuDistutilsFileErrorunewerunewer_pairwiseunewer_group(((u7/opt/alt/python33/lib64/python3.3/distutils/dep_util.pyu<module>s


?>