관리-도구
편집 파일: acquire.cpython-311.pyc
� �܋f@ � � � d Z ddlZddlZddlmZmZ ddlmZ ddlm Z m Z mZ ddlm Z ddlmZ dd lmZmZmZ d � Zd� Zd� Zd � Zd� Zg d�ZdS )� Bootstrap� N)�eq�lt)�Path)�PIPE�CalledProcessError�Popen� )�from_bundle)�add_wheel_to_update_log)�Version�Wheel�discover_wheelsc � � d}|r|t j k rt | ||||||� � }|rY|�W|t j k rGt | t j |� � ||||j |�� � }|�|j rt |||� � |S )zw Get a wheel with the given distribution-version-for_py_version trio, by using the extra search dir + download N)�distribution�version_spec�for_py_version�search_dirs�app_data� to_folder�env) r �bundler �embed�download_wheel�as_version_spec�house� can_updater ) r �versionr r �downloadr �do_periodic_updater �wheels �o/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/virtualenv/seed/wheels/acquire.py� get_wheelr# s� � � �E�� s�w�'�.�0�0��L�'�>�;�PX�Zl�nq�r�r��� E�E�M�g���&>�&>��%� �0��9�9�)�#���n�� � � �� ���!4��#�E�>�8�D�D�D��L� c � � | � |pd� �}t j d|||� � t j ddddddd d d|dt |� � |g}t |||� � }t ||t t d d�� � } | � � � \ } }| j dk r| |d�}t | j |fi |���t | |||| � � } t j d| j � � | S )N� zdownload wheel %s %s to %sz-m�pipr z--progress-bar�offz--disable-pip-version-checkz--only-binary=:all:z --no-depsz--python-versionz-dTzutf-8)r �stdout�stderr�universal_newlines�encodingr )�outputr* zdownloaded wheel %s) �logging�debug�sys� executable�str�pip_wheel_env_runr r �communicate� returncoder �_find_downloaded_wheel�name)r r r r r r r �to_download�cmd�process�out�err�kwargs�results r"