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/lib/python3.9/site-packages/pip/_internal/commands/__pycache__/download.cpython-39.pyc
a

?�f6�@s�ddlmZddlZddlZddlmZddlmZddlm	Z	m
Z
ddlmZddl
mZddlmZmZmZdd	lmZdd
lmZer�ddlmZddlmZe�e�ZGd
d�de	�ZdS)�)�absolute_importN)�
cmdoptions)�make_target_python)�RequirementCommand�with_cleanup)�SUCCESS)�get_requirement_tracker)�
ensure_dir�normalize_path�write_output)�
TempDirectory)�MYPY_CHECK_RUNNING)�Values)�Listc@s(eZdZdZdZdd�Zedd��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> ...c
CsL|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)Zcmd_optsZ
add_optionr�constraints�requirements�	build_dirZno_depsZglobal_optionsZ	no_binaryZonly_binaryZ
prefer_binary�srcZpreZrequire_hashesZprogress_barZno_build_isolationZ
use_pep517Z
no_use_pep517�os�curdirZadd_target_python_optionsZmake_option_groupZindex_group�parserZinsert_option_group)�selfZ
index_opts�r�C/usr/lib/python3.9/site-packages/pip/_internal/commands/download.py�add_options*s:��zDownloadCommand.add_optionsc	Cs�d|_g|_t�|�t|j�|_t|j�|�|�}t|�}|j	|||d�}|j
pX|j}|�t
��}t|j|ddd�}|�||||�}	|j||||||jdd�}
|j|
|||jd�}|�|�|j|	dd�}d	�d
d�|j��D��}
|
r�td|
�tS)
NT)�options�session�
target_pythonZdownload)�delete�kindZglobally_managedF)Ztemp_build_dirr"�req_trackerr#�finderrZ
use_user_site)�preparerr(r"Zpy_version_info)Zcheck_supported_wheels� cSsg|]}|jr|j�qSr)Zsuccessfully_downloaded�name)�.0Zreqrrr �
<listcomp>�s�z'DownloadCommand.run.<locals>.<listcomp>zSuccessfully downloaded %s)Zignore_installedZ	editablesrZcheck_dist_restrictionr
rr	Zget_default_sessionrZ_build_package_finderZno_cleanr�
enter_contextrrZget_requirementsZmake_requirement_preparerZ
make_resolverZpython_versionZtrace_basic_info�resolve�joinr�valuesrr)rr"�argsr#r$r(Zbuild_deleter'Z	directoryZreqsr)ZresolverZrequirement_setZ
downloadedrrr �runNs\


���
�
�
�
zDownloadCommand.runN)�__name__�
__module__�__qualname__�__doc__Zusager!rr3rrrr rs
$r)Z
__future__rZloggingrZpip._internal.clirZpip._internal.cli.cmdoptionsrZpip._internal.cli.req_commandrrZpip._internal.cli.status_codesrZpip._internal.req.req_trackerrZpip._internal.utils.miscr	r
rZpip._internal.utils.temp_dirrZpip._internal.utils.typingr
Zoptparser�typingrZ	getLoggerr4Zloggerrrrrr �<module>s