403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.9/site-packages/pip/_internal/commands/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/pip/_internal/commands/__pycache__/install.cpython-39.pyc
a

W��enp�@sddlZddlZddlZddlZddlZddlZddlmZmZddl	m
Z
mZddlm
Z
ddlmZddlmZddlmZddlmZmZmZdd	lmZmZdd
lmZmZddlmZddl m!Z!dd
l"m#Z#ddl$m%Z%ddl&m'Z'm(Z(ddl)m*Z*ddl+m,Z,m-Z-ddl.m/Z/ddl0m1Z1ddl2m3Z3ddl4m5Z5m6Z6m7Z7m8Z8m9Z9ddl:m;Z;ddl<m=Z=m>Z>ddl?m@Z@mAZAe3eB�ZCGdd�de�ZDd(eEeeFeeFeEeeFe
eFd�dd�ZGeeFeEeEd�d d!�ZHd)eeEeeFeeFeeFeEeEd"�d#d$�ZIeJeEeEeFd%�d&d'�ZKdS)*�N)�
SUPPRESS_HELP�Values)�List�Optional)�
print_json)�
WheelCache)�
cmdoptions)�make_target_python)�RequirementCommand�warn_if_run_as_root�with_cleanup)�ERROR�SUCCESS)�CommandError�InstallationError)�
get_scheme)�get_environment)�InstallationReport)�get_build_tracker)�ConflictDetails�check_install_conflicts)�install_given_reqs)�InstallRequirement�check_legacy_setup_py_options)�WINDOWS��test_writable_dir)�	getLogger)�check_externally_managed�
ensure_dir�get_pip_version�(protect_pip_from_modification_on_windows�write_output)�
TempDirectory)�running_under_virtualenv�virtualenv_no_global)�build� should_build_for_install_commandc@szeZdZdZdZdd�dd�Zeeee	e
d�dd	��Ze	ee
dd
�dd�Zeeeed
�dd�Zee	dd�dd�ZdS)�InstallCommandaI
    Install packages from:

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

    pip also supports installing from "requirements files", which provide
    an easy way to specify a whole environment to be installed.
    a%
      %prog [options] <requirement specifier> [package-index-options] ...
      %prog [options] -r <requirements file> [package-index-options] ...
      %prog [options] [-e] <vcs project url> ...
      %prog [options] [-e] <local project path> ...
      %prog [options] <archive url/path> ...N)�returncCs�|j�t���|j�t���|j�t���|j�t���|j�t���|jjdddddd�|jjddd	d
ddd�t�|j�|jjd
dddd�|jjdddt	d�|jjddd
ddd�|jjddd
ddd�|j�t�
��|jjdddddd�|jjddddd gd!d"�|jjd#d$dd%d�|jjd&d'd(dd)d�|j�t���|j�t���|j�t�
��|j�t���|j�t���|j�t���|j�t���|j�t���|jjd*dd+d,d-d�|jjd.dd+d/d0�|jjd1dd2d,d3d�|jjd4dd5d,d6d�|j�t���|j�t���|j�t���|j�t���|j�t���|j�t���t�tj|j�}|j�d7|�|j�d7|j�|jjd8d9d:dd;d�dS)<Nz	--dry-run�
store_true�dry_runFz�Don't actually install anything, just print what would be. Can be used in combination with --ignore-installed to 'resolve' the requirements.)�action�dest�default�helpz-tz--target�
target_dir�dirz�Install packages into <dir>. By default this will not replace existing files/folders in <dir>. Use --upgrade to replace existing packages in <dir> with new versions.)r-�metavarr.r/z--user�
use_user_sitez�Install to the Python user install directory for your platform. Typically ~/.local/, or %APPDATA%\Python on Windows. (See the Python documentation for site.USER_BASE for full details.))r-r,r/z	--no-user�store_falsez--root�	root_pathz=Install everything relative to this alternate root directory.z--prefix�prefix_patha[Installation prefix where lib, bin and other top-level folders are placed. Note that the resulting installation may contain scripts and other resources which reference the Python interpreter of pip, and not that of ``--prefix``. See also the ``--python`` option if the intention is to install packages into another (possibly pip-free) environment.z-Uz	--upgrade�upgradez�Upgrade all specified packages to the newest available version. The handling of dependencies depends on the upgrade-strategy used.z--upgrade-strategy�upgrade_strategyzonly-if-neededZeageraGDetermines how dependency upgrading should be handled [default: %default]. "eager" - dependencies are upgraded regardless of whether the currently installed version satisfies the requirements of the upgraded package(s). "only-if-needed" -  are upgraded only when they do not satisfy the requirements of the upgraded package(s).)r-r.�choicesr/z--force-reinstall�force_reinstallz;Reinstall all packages even if they are already up-to-date.z-Iz--ignore-installed�ignore_installedz�Ignore the installed packages, overwriting them. This can break your system if the existing package is of a different version or was installed with a different package manager!z	--compile�compileTz'Compile Python source files to bytecodez--no-compilez.Do not compile Python source files to bytecode)r,r-r/z--no-warn-script-location�warn_script_locationz0Do not warn when installing scripts outside PATHz--no-warn-conflicts�warn_about_conflictsz%Do not warn about broken dependenciesrz--report�json_report_file�fileaWGenerate a JSON file describing what pip did to install the provided requirements. Can be used in combination with --dry-run and --ignore-installed to 'resolve' the requirements. When - is used as file name it writes to stdout. When writing to stdout, please combine with the --quiet option to avoid mixing pip logging output with JSON output.)Zcmd_optsZ
add_optionr�requirements�constraintsZno_depsZpreZeditableZadd_target_python_optionsr�src�ignore_requires_pythonZno_build_isolation�
use_pep517Z
no_use_pep517Zcheck_build_deps�override_externally_managedZconfig_settings�global_optionsZ	no_binaryZonly_binaryZ
prefer_binaryZrequire_hashesZprogress_bar�root_user_actionZmake_option_groupZindex_group�parserZinsert_option_group)�selfZ
index_opts�rK�B/usr/lib/python3.9/site-packages/pip/_internal/commands/install.py�add_optionsHs��
��������
������zInstallCommand.add_options)�options�argsr)c*Cs�|jr|jdurtd��|jo"|joB|jduoB|jduoB|jdu}|rT|jsTt�d}|j	rd|j
}tj|dd�t
�dt��t|j|j|j|j|jd�|_d}d}|j�rd|_tj�|j�|_tj�|j�r�tj�|j�s�td��tdd	�}|j}|�|�|j�pg}|�|�}t|�}	|j|||	|jd
�}
|�t��}t|j ddd�}�z|�!|||
|�}
t"||
�t#|j$�}|
D]}d|_%�q~|j&|||||
|j|j'd
�}|j(||
|||j|j|j|j)||j*d�
}|�+|
�|j,|
|jd�}|j�rbt-|j.�}|jdk�rt/|�0�d�nHt1|jddd��&}t2j3|�0�|ddd�Wd�n1�sX0Y|j�r�|�4�t5dd�|j.D��}|�r�t6dd�7dd�|D���t8WSz|�9d�}Wnt:�y�d}Yn0|j;du}t<|d�dd �|j=�>�D�}t?||dg|d!�\}}|�r6t@d"�Ad#�7d$d�|D�����|�B|�}d}|jC�oR|jD}|�rd|�E|�}|jF}|j�sz|j�r~d}tG|||j||j||j|jHd%�}tI|j||j|j|jd&�} tJ| �}!|jKtL�Md'�d(�g}"|D]T}#|#jN}$z(|!�O|$�}%|%du�r
|$�d|%jP��}$WntQ�y Yn0|"�R|$��q�|du�rN|jS||�T|�d)�d�7|"�}&|&�rht6d*|&�WnPtU�y�}'z6|j'd+k}(tV|'|(|j�})t
jW|)|(d,�tXWYd}'~'Sd}'~'00|j�r�|�s�J�|�Y|j||j	�|jZd-k�r�t[�t8S).Nz'Can not combine '--user' and '--target'zto-satisfy-onlyT)Zcheck_targetzUsing %s)r6r0r5�
isolated_modez=Target path exists but is not a directory, will not continue.�target)�kind)rN�session�
target_pythonrD�install)�deleterRZglobally_managed)Ztemp_build_dirrN�
build_trackerrS�finderr3�	verbosity)
�preparerrXrN�wheel_cacher3r;rDr:r8rE)Zcheck_supported_wheels�-)�data�wzutf-8)�encoding�F)�indentZensure_asciicss"|]}|jd|jdfVqdS)�name�versionN)�metadata��.0�rrKrKrL�	<genexpr>�s�z%InstallCommand.run.<locals>.<genexpr>zWould install %s� css|]}d�|�VqdS)r\N)�join)rf�itemrKrKrLrh��Zpip)�
modifying_pipcSsg|]}t|�r|�qSrK)r'rerKrKrL�
<listcomp>�s�z&InstallCommand.run.<locals>.<listcomp>)r[ZverifyZ
build_optionsrGzYCould not build wheels for {}, which is required to install pyproject.toml-based projectsz, css|]}|jVqdS�N)rbrerKrKrLrh�rl)�root�home�prefixr=r3Z	pycompile)�userrqrprr�isolatedrb)�key)�resolver_variantzSuccessfully installed %s�)�exc_info�warn)\r3r0rr+r?r5r6rFrr7r8rZcheck_dist_restriction�logger�verboser �decide_user_installrPr;�os�path�abspath�exists�isdirr#�
enter_contextrGZget_default_sessionr	Z_build_package_finderrDrZno_cleanZget_requirementsrrZ	cache_dirZpermit_editable_wheelsZmake_requirement_preparerrYZ
make_resolverr:rEZtrace_basic_info�resolverZrequirements_to_installrZto_dict�open�json�dumpZ#warn_legacy_versions_and_specifiers�sortedr"rjrZget_requirement�KeyErrorZsatisfied_byr!rA�valuesr&r�formatZget_installation_orderZignore_dependenciesr>�_determine_conflictsr=rr<�get_lib_location_guessesr�sort�operator�
attrgetterrbZget_distributionrc�	Exception�append�_warn_about_conflictsZdetermine_resolver_variant�OSError�create_os_error_message�errorr
�_handle_target_dirrHr)*rJrNrOZ#installing_into_current_environmentr8�target_temp_dirZtarget_temp_dir_pathrGrSrTrXrWZ	directoryZreqsr[�reqrZZresolverZrequirement_set�report�fZwould_install_itemsZpip_reqrmZ
reqs_to_build�_Zbuild_failures�
to_install�	conflictsZshould_warn_about_conflictsr=Z	installedZ
lib_locations�env�items�resultrkZinstalled_distZinstalled_descr��show_traceback�messagerKrKrL�run	s����������


��


�	�
�
6��


��
��
�
��


�
�
�

�zInstallCommand.run)r0r�r7r)csNt|�g}td|jd�}|j}|j}|j}tj�|�rB|�|�tj�|�r`||kr`|�|�tj�|�rv|�|�|D]�}	t�	|	�D]�}
|	|kr�tj�
||
��t�fdd�|dd�D��r�q�tj�
||
�}tj�|��r0|s�t�
d|�q�tj�|��rt�
d|�q�tj�|��r&t�|�n
t�|�t�tj�
|	|
�|�q�qzdS)N�)rqc3s|]}|���VqdSro)�
startswith)rf�s��ddirrKrLrh rlz4InstallCommand._handle_target_dir.<locals>.<genexpr>���zKTarget directory %s already exists. Specify --upgrade to force replacement.z�Target directory %s already exists and is a link. pip will not automatically replace links, please remove if replacement is desired.)rrr~�purelib�platlibr]r}r�r��listdirrj�anyrzZwarning�islinkr��shutil�rmtree�remove�move)rJr0r�r7Zlib_dir_list�schemeZpurelib_dirZplatlib_dirZdata_dirZlib_dirrkZtarget_item_dirrKr�rLr�sH


��
z!InstallCommand._handle_target_dir)r�r)cCs.z
t|�WSty(t�d�YdS0dS)NzwError while checking for conflicts. Please file an issue on pip's issue tracker: https://github.com/pypa/pip/issues/new)rr�rz�	exception)rJr�rKrKrLr�;s
�z#InstallCommand._determine_conflicts)�conflict_detailsrvr)c
Cs�|\}\}}|s|sdSg}|dkr0|�d�n|dks<J�|�d�|D]B}||d}||D](}	|�d|�d|	d�d	�}
|�|
�qbqJ|D]P}||d}||D]6\}}}
d
j|||
|||dkr�dndd
�}
|�|
�q�q�t�d�|��dS)N�legacyz�pip's legacy dependency resolver does not consider dependency conflicts when selecting packages. This behaviour is the source of the following dependency conflicts.Z
resolvelibz�pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.rriz
 requires rwz, which is not installed.zg{name} {version} requires {requirement}, but {you} have {dep_name} {dep_version} which is incompatible.�youzyou'll)rbrcZrequirement�dep_name�dep_versionr��
)r�r�rzZcriticalrj)rJr�rvZpackage_set�missingZconflicting�partsZproject_namercZ
dependencyr�r�r�r�rKrKrLr�Gs@�����z$InstallCommand._warn_about_conflicts)�__name__�
__module__�__qualname__�__doc__�usagerMrrr�str�intr�r#�boolr�rrrr�r�rKrKrKrLr(4s B}�7�
�r(F)rsrqrprtrrr)cCs td|||||d�}|j|jgS)Nr�)rsrqrprtrr)rr�r�)rsrqrprtrrr�rKrKrLr�zs�r�)rprtr)cCstdd�tt||d��D��S)Ncss|]}t|�VqdSror)rf�drKrKrLrh�s�z)site_packages_writable.<locals>.<genexpr>�rprt)�all�setr�r�rKrKrL�site_packages_writable�s�r�)r3r6r0r5rPr)cCs�|dur|st�d�dS|rF|r*td��t�r8td��t�d�dS|dusRJ�|sZ|rht�d�dStjs|t�d	�dSt||d
�r�t�d�dSt�d�dS)
aZDetermine whether to do a user install based on the input options.

    If use_user_site is False, no additional checks are done.
    If use_user_site is True, it is checked for compatibility with other
    options.
    If use_user_site is None, the default behaviour depends on the environment,
    which is provided by the other arguments.
    Nz$Non-user install by explicit requestFzVCan not combine '--user' and '--prefix' as they imply different installation locationszZCan not perform a '--user' install. User site-packages are not visible in this virtualenv.z User install by explicit requestTz3Non-user install due to --prefix or --target optionz4Non-user install because user site-packages disabledr�z0Non-user install because site-packages writeablezMDefaulting to user installation because normal site-packages is not writeable)	rz�debugrr%r�site�ENABLE_USER_SITEr��info)r3r6r0r5rPrKrKrLr|�s8
��



�r|)r�r��using_user_siter)cCs�g}|�d�|s,|�d�|�t|��n
|�d�|dd7<|jtjkr�d}d}t�sz|sz|�|d|��g�n
|�|�|�d	�tr�|jtjkr�|j	r�t
|j	�d
kr�|�d�d�|���dS)
zrFormat an error message for an OSError

    It may occur anytime during the execution of the install command.
    z,Could not install packages due to an OSErrorz: �.r�r�z"Consider using the `--user` optionzCheck the permissionsz or z.
iz�HINT: This error might have occurred since this system does not have Windows Long Path support enabled. You can find information on how to enable this at https://pip.pypa.io/warnings/enable-long-paths
r�)
r�r��errnoZEACCESr$�extend�lowerr�ENOENT�filename�lenrj�strip)r�r�r�r�Zuser_option_partZpermissions_partrKrKrLr��s>



��

�
����r�)FNNFN)NNNF)Lr�r�r�r}r�r�Zoptparserr�typingrrZpip._vendor.richrZpip._internal.cacherZpip._internal.clirZpip._internal.cli.cmdoptionsr	Zpip._internal.cli.req_commandr
rrZpip._internal.cli.status_codesr
rZpip._internal.exceptionsrrZpip._internal.locationsrZpip._internal.metadatarZ(pip._internal.models.installation_reportrZ,pip._internal.operations.build.build_trackerrZpip._internal.operations.checkrrZpip._internal.reqrZpip._internal.req.req_installrrZpip._internal.utils.compatrZpip._internal.utils.filesystemrZpip._internal.utils.loggingrZpip._internal.utils.miscrrr r!r"Zpip._internal.utils.temp_dirr#Zpip._internal.utils.virtualenvr$r%Zpip._internal.wheel_builderr&r'r�rzr(r�r�r�r�r|r�r�rKrKrKrL�<module>s~K��	��>�

Youez - 2016 - github.com/yon3zu
LinuXploit