Your IP : 18.117.94.221
U
i�f�
� @ s2 d dl Z d dlmZ dd� Zdd� Zd
dd �ZdS )� N)�DistutilsFileErrorc C s` t j�| �s tdt j�| � ��t j�|�s0dS ddlm} t �| �| }t �|�| }||kS )Nzfile '%s' does not exist� r ��ST_MTIME)�os�path�existsr �abspath�statr )�source�targetr Zmtime1Zmtime2� r
�7/opt/alt/python38/lib64/python3.8/distutils/dep_util.py�newer s
�r c C sh t | �t |�krtd��g }g }tt | ��D ]2}t| | || �r,|�| | � |�|| � q,||fS )Nz+'sources' and 'targets' must be same length)�len�
ValueError�ranger �append)�sourcesZtargetsZ n_sourcesZ n_targets�ir
r
r �newer_pairwise s r �errorc C s� t j�|�sdS ddlm} t �|�| }| D ]P}t j�|�sb|dkrHn|dkrTq.n|dkrb dS t �|�| }||kr. dS q.dS )Nr r r r �ignorer )r r r r
r )r r Zmissingr Ztarget_mtimer �source_mtimer
r
r �newer_group6 s r )r )r Zdistutils.errorsr r r r r
r
r
r �<module> s