관리-도구
편집 파일: periodic_update.cpython-311.pyc
� �܋f�9 � �� � d Z ddlZddlZddlZddlZddlZddlmZmZ ddlm Z ddl mZ ddlm Z ddlmZmZ ddlmZ dd lmZ dd lmZ ddlmZ ddlmZ dd lmZ ddlmZ ddlm Z ed�� � Z! ed�� � Z" ed�� � Z# ed�� � Z$d� Z%d� Z&d� Z'dZ(d� Z)d� Z* G d� d� � Z+ G d� d� � Z,d � Z-d!� Z.d"� Z/d#� Z0d$� Z1i Z2d%� Z3d&� Z4d'� Z5d(� Z6g d)�Z7dS )*z' Periodically update bundled versions. � N)�datetime� timedelta)�groupby)�Path)�copy2)�PIPE�Popen)�dedent)�Thread)�URLError)�urlopen)�AppDataDiskFolder)�CREATE_NO_WINDOW� )�BUNDLE_SUPPORT)�Wheel� )�hours� )�days� c �( ��� |rt | |||�|� � t j � � ��fd�}t � �| |� � } |��t | j d� �� � D ]�\ } }t |� � }t �fd�|D � � � � } |D ]Q}|�(t |j � � j |j k r|c c S |� �| � � r ||� � c c S �R��n'| j D ]}|j j |k r ||� � c S � |S )Nc �t �� t �j | j z � � }t j d|rdnd|� � |S )Nzusing %supdated wheel %sz periodically � )r �house�filename�logging�debug)�ver� updated_wheel�app_datas ��w/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/virtualenv/seed/wheels/periodic_update.py� _update_wheelz&periodic_update.<locals>._update_wheel'