HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.7/site-packages/pip/_internal/commands/__pycache__/download.cpython-37.pyc
B

L��g��@s�ddlZddlZddlmZddlmZddlmZddlm	Z	ddl
mZmZddl
mZddlmZdd	lmZdd
lmZmZmZddlmZe�e�ZGdd
�d
e�ZdS)�N)�Values)�List)�
cmdoptions)�make_target_python)�RequirementCommand�with_cleanup)�SUCCESS)�get_build_tracker)�check_legacy_setup_py_options)�
ensure_dir�normalize_path�write_output)�
TempDirectoryc@s<eZdZdZdZdd�dd�Zeeee	e
d�dd	��ZdS)
�DownloadCommandaL
    Download packages from:

    - PyPI (and other indexes) using requirement specifiers.
    - VCS project urls.
    - Local project directories.
    - Local or remote source archives.

    pip also supports downloading from "requirements files", which provide
    an easy way to specify a whole environment to be downloaded.
    a
      %prog [options] <requirement specifier> [package-index-options] ...
      %prog [options] -r <requirements file> [package-index-options] ...
      %prog [options] <vcs project url> ...
      %prog [options] <local project path> ...
      %prog [options] <archive url/path> ...N)�returnc
Cs\|j�t���|j�t���|j�t���|j�t���|j�t���|j�t���|j�t�	��|j�t�
��|j�t���|j�t���|j�t�
��|j�t���|j�t���|j�t���|j�t���|j�t���|jjddddddtjdd�t�|j�t�tj|j�}|j�d	|�|j�d	|j�dS)
Nz-dz--destz--destination-dirz--destination-directory�download_dir�dirzDownload packages into <dir>.)�dest�metavar�default�helpr)�cmd_opts�
add_optionr�constraints�requirements�no_deps�global_options�	no_binary�only_binary�
prefer_binary�src�pre�require_hashes�progress_bar�no_build_isolation�
use_pep517�
no_use_pep517Zcheck_build_deps�ignore_requires_python�os�curdir�add_target_python_options�make_option_group�index_group�parser�insert_option_group)�self�
index_opts�r1�C/tmp/pip-unpacked-wheel-hv55ucu3/pip/_internal/commands/download.py�add_options&s>zDownloadCommand.add_options)�options�argsrc
CsVd|_g|_t�|�t|j�|_t|j�|�|�}t|�}|j	||||j
d�}|�t��}t
|jddd�}|�||||�}t||�|j||||||jd|jd�}	|j|	|||j
|j|jd�}
|�|�|
j|dd�}g}xB|j��D]4}
|
jdkr�|
jdk	�s
t�|	�|
�|�|
j�q�W|	�|j���|� �|�rRt!d	d
�"|��t#S)NT)r4�session�
target_pythonr'�download)�delete�kind�globally_managedF)�temp_build_dirr4�
build_trackerr6�finderr�
use_user_site�	verbosity)�preparerr>r4r'r%�py_version_info)�check_supported_wheelszSuccessfully downloaded %s� )$�ignore_installed�	editablesr�check_dist_restrictionrrr�get_default_sessionr�_build_package_finderr'�
enter_contextr	r�no_clean�get_requirementsr
�make_requirement_preparerr@�
make_resolverr%�python_version�trace_basic_info�resolver�values�satisfied_by�name�AssertionErrorZsave_linked_requirement�appendZ prepare_linked_requirements_moreZ#warn_legacy_versions_and_specifiersr
�joinr)r/r4r5r6r7r>r=�	directory�reqsrA�resolver�requirement_set�
downloaded�reqr1r1r2�runMs`









zDownloadCommand.run)�__name__�
__module__�__qualname__�__doc__�usager3rrr�str�intr^r1r1r1r2rs
'r)�loggingr(�optparser�typingrZpip._internal.clirZpip._internal.cli.cmdoptionsr�pip._internal.cli.req_commandrr�pip._internal.cli.status_codesrZ,pip._internal.operations.build.build_trackerr	Zpip._internal.req.req_installr
�pip._internal.utils.miscrrr
�pip._internal.utils.temp_dirr�	getLoggerr_�loggerrr1r1r1r2�<module>s