File: //usr/lib/python3.5/distutils/__pycache__/dep_util.cpython-35.pyc
Fa
@ sM d Z d d l Z d d l m Z d d Z d d Z d d d
Z d S)zdistutils.dep_util
Utility functions for simple, timestamp-based dependency of files
and groups of files; also, function based entirely on such
timestamp dependency analysis. N)DistutilsFileErrorc C s t j j | s. t d t j j | t j j | sD d Sd d l m } t j | | } t j | | } | | k S)a Return 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.
zfile '%s' does not exist r )ST_MTIME)ospathexistsr abspathstatr )sourcetargetr Zmtime1Zmtime2 r (/usr/lib/python3.5/distutils/dep_util.pynewer s r c C s t | t | k r$ t d g } g } xS t t | D]? } t | | | | rC | j | | | j | | qC W| | f S)zWalk 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()'.
z+'sources' and 'targets' must be same length)len
ValueErrorranger append)sourcesZtargetsZ n_sourcesZ n_targetsir r r
newer_pairwise s r errorc C s t j j | s d Sd d l m } t j | | } xx | D]l } t j j | s | d k rg n"