관리-도구
편집 파일: _modified.cpython-312.pyc
� t��ek � � � d Z ddlZddlZddlmZ ddlmZ ddlm Z d� Z d� Zefd �Zdd �Z ej ee �� Zy) z2Timestamp comparison of files and groups of files.� N� )�DistutilsFileError)� zip_strict)�splatc �� � t j j |� xs? t j j | � t j j |� kD S �N)�os�path�exists�getmtime��source�targets ��/builddir/build/BUILDROOT/alt-python312-setuptools-69.0.2-1.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/setuptools/_distutils/_modified.py�_newerr sE � ��w�w�~�~�f�%�%� � ������ �2�7�7�#3�#3�F�#;�;�� c � � t j j | � s+t dt j j | � z � �t | |� S )z� Is source modified more recently than target. Returns True if 'source' is modified more recently than 'target' or if 'target' does not exist. Raises DistutilsFileError if 'source' does not exist. zfile '%s' does not exist)r r r r �abspathr r s r �newerr s? � � �7�7�>�>�&�!� �!;�b�g�g�o�o�f�>U�!U�V�V��&�&�!�!r c � � t t |� t | |� � }t t t t |� � � xs g g fS )a1 Filter filenames where sources are newer than targets. Walk two filename iterables in parallel, testing if each source is newer than its corresponding target. Returns a pair of lists (sources, targets) where source is newer than target, according to the semantics of 'newer()'. )�filterr r �tuple�map�list�zip)�sources�targetsr �newer_pairss r �newer_pairwiser s; � � ��u��z�'�7�'C�D�K���T�3��,�-�.�:�2�r�(�:r c � ���� �fd���dk( rt j j nd}t ��fd�t || � D � � S )a� Is target out-of-date with respect to any file in sources. 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 how to handle a missing source file: - error (default): allow the ``stat()`` call to fail. - ignore: silently disregard any missing source files. - newer: treat missing source files as "target out of date". This mode is handy in "dry-run" mode: it will pretend to carry out commands that wouldn't work because inputs are missing, but that doesn't matter because dry-run won't run the commands. c �R �� �dk( xr t j j | � S )Nr )r r r )r �missings �r �missing_as_newerz%newer_group.<locals>.missing_as_newer>