관리-도구
편집 파일: bundle.cpython-38.pyc
U *�eG � @ s\ d dl mZ d dlmZ ddlmZ ddlmZmZmZ dd� Z dd � Z d d� Zd dgZdS ) � )�annotations)�get_embed_wheel� )�periodic_update)�Version�Wheel�discover_wheelsc C st t �|�}t|| ||�}|t jkrp|jrB|} t| |||||| |�}t| |||�} | dk rp|dksl| j|jkrp| }|S )z,Load the bundled wheel to a cache directory.N)r � of_version�load_embed_wheel�embedZ can_updater �from_dir� version_tuple)�distribution�version�for_py_versionZsearch_dirs�app_dataZdo_periodic_update�envr �wheelZperZfound_wheel� r �K/opt/hc_python/lib/python3.8/site-packages/virtualenv/seed/wheels/bundle.py�from_bundle s r c s\ t ||�}|d k rX||jk}|d ks(|rT� �|j� fdd���}t|�}W 5 Q R X nd }|S )Nc s � j S )N)�houser �r r r �<lambda> � z"load_embed_wheel.<locals>.<lambda>)r r Zensure_extracted�pathr )r r r r r Z version_match� wheel_pathr r r r s r c C s, |D ]"}t || ||�D ]}| S qdS )z,Load a compatible wheel from a given folder.N)r )r r r �directories�folderr r r r r '