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.7/site-packages/pip/_internal/commands/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.7/site-packages/pip/_internal/commands/__pycache__/install.cpython-37.pyc
B

�N�a�l�@sHddlZddlZddlZddlZddlZddlmZmZddlm	Z	m
Z
mZddlm
Z
ddlmZddlmZddlmZddlmZmZmZdd	lmZmZdd
lmZmZddlmZddl m!Z!dd
l"m#Z#ddl$m%Z%m&Z&ddl'm(Z(ddl)m*Z*ddl+m,Z,ddl-m.Z.ddl/m0Z0ddl1m2Z2ddl3m4Z4ddl5m6Z6m7Z7m8Z8m9Z9ddl:m;Z;ddl<m=Z=m>Z>ddl?m@Z@mAZAmBZBe4eC�ZDe#e@d�dd�ZEGdd�de�ZFd/eGeeHeeHeGeeHe
eHd �d!d"�ZIeeHeGeGd#�d$d%�ZJd0eeGeeHeeHeeHeGeGd&�d'd(�ZKe
e*ee
eHdd)�d*d+�ZLeMeGeGeHd,�d-d.�ZNdS)1�N)�
SUPPRESS_HELP�Values)�Iterable�List�Optional)�canonicalize_name)�
WheelCache)�
cmdoptions)�make_target_python)�RequirementCommand�warn_if_run_as_root�with_cleanup)�ERROR�SUCCESS)�CommandError�InstallationError)�
get_scheme)�get_environment)�
FormatControl)�ConflictDetails�check_install_conflicts)�install_given_reqs)�InstallRequirement)�get_requirement_tracker)�WINDOWS)�parse_distutils_args)�test_writable_dir)�	getLogger)�
ensure_dir�get_pip_version�(protect_pip_from_modification_on_windows�write_output)�
TempDirectory)�running_under_virtualenv�virtualenv_no_global)�BinaryAllowedPredicate�build� should_build_for_install_command)�format_control�returncsttd��fdd�}|S)N)�reqr)cs t|jp
d�}��|�}d|kS)N�Zbinary)r�nameZget_allowed_formats)r*Zcanonical_nameZallowed_formats)r(��B/usr/lib/python3.7/site-packages/pip/_internal/commands/install.py�check_binary_allowed5s
z6get_check_binary_allowed.<locals>.check_binary_allowed)r�bool)r(r/r-)r(r.�get_check_binary_allowed4sr1c@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)r)cCsj|j�t���|j�t���|j�t���|j�t���|j�t���|jjddddddd�t�|j�|jjddd	d
d�|jjddd
t	d�|jjdddddd�|jjdddddd�|j�t�
��|jjdddd	dd�|jjdddddgdd�|jjddd	d d�|jjd!d"d#d	d$d�|j�t���|j�t���|j�t�
��|j�t���|j�t���|j�t���|jjd%d	d&d'd(d)�|jjd*d
d&d+d,�|jjd-d
d.d'd/d)�|jjd0d
d1d'd2d)�|j�t���|j�t���|j�t���|j�t���|j�t���t�tj|j�}|j�d3|�|j�d3|j�dS)4Nz-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.)�dest�metavar�default�helpz--user�
use_user_site�
store_truez�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.))r5�actionr8z	--no-user�store_falsez--root�	root_pathz=Install everything relative to this alternate root directory.z--prefix�prefix_pathzIInstallation prefix where lib, bin and other top-level folders are placedz-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).)r5r7�choicesr8z--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 bytecode)r;r5r7r8z--no-compilez.Do not compile Python source files to bytecode)r;r5r8z--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 dependenciesr)Zcmd_optsZ
add_optionr	�requirementsZconstraintsZno_depsZpreZeditableZadd_target_python_optionsr�src�ignore_requires_pythonZno_build_isolation�
use_pep517Z
no_use_pep517�install_options�global_optionsZ	no_binaryZonly_binaryZ
prefer_binaryZrequire_hashesZprogress_barZmake_option_groupZindex_group�parserZinsert_option_group)�selfZ
index_optsr-r-r.�add_optionsQs�
zInstallCommand.add_options)�options�argsr)c)s8|jr|jdk	rtd��t�|�d}|jr2|j}tj|dd�|jpHg}t	�
dt��t|j|j
|j|j|jd�|_d}d}|jr�d|_tj�|j�|_tj�|j�r�tj�|j�s�td��tdd	�}|j}|�|�|jp�g}|�|�}t|�}	|j|||	|jd
�}
t|j|j�}|�t ��}t|j!ddd�}
�y�|�"|||
|�}x|D]}d|_#�qNWt$||j�|j%|
||||
|jd
�}|j&||
|||j|j|j|j'||j(d�
}|�)|
�|j*||jd�}y|�+d�}Wnt,k
�r�d}YnX|j-dk}t.|d�t/|
j���fdd�|j0�1�D�}t2||dggd�\}}dd�|D�}|�rdt3d�4d�5|����x|D]}|j(�sjd|_6�qjW|�7|�}d}|j8�o�|j9}|�r�|�:|�}|j;}|j�s�|j
�r�d}t<||||j||j
||j|j=d�	}t>|j||j|j
|jd�}t?|�} |j@tA�Bd�d�g}!x^|D]V}"|"jC}#y(| �D|#�}$|$dk	�rZ|#�d|$jE��}#WntFk
�rrYnX|!�G|#��q*W|dk	�r�|jH||�I|�d�d �5|!�}%|%�r�tJd!|%�WnJtKk
�r}&z*|jLd"k}'tM|&|'|j�}(t	jN|(|'d#�tOSd}&~&XYnX|j�r.|�stP�|�Q|j||j�tR�tSS)$Nz'Can not combine '--user' and '--target'zto-satisfy-onlyT)Zcheck_targetzUsing %s)r>r3r=�
isolated_modez=Target path exists but is not a directory, will not continue.�target)�kind)rP�session�
target_pythonrI�install)�deleterTZglobally_managed)Ztemp_build_dirrP�req_trackerrU�finderr9)
�preparerrZrP�wheel_cacher9rCrIrBr@rJ)Zcheck_supported_wheelsZpipF)�
modifying_pipcsg|]}t|��r|�qSr-)r')�.0�r)r/r-r.�
<listcomp>csz&InstallCommand.run.<locals>.<listcomp>)r\ZverifyZ
build_optionsrLcSsg|]}|jr|j�qSr-)rJr,)r^r_r-r-r.r`sszYCould not build wheels for {}, which is required to install pyproject.toml-based projectsz, i� )�root�home�prefixrEr9Z	pycompile)�userrbrarc�isolatedr,)�key�-)�resolver_variant� zSuccessfully installed %s�)�exc_info)Tr9r3rr	Zcheck_install_build_globalr?r@Zcheck_dist_restrictionrK�logger�verboser�decide_user_installr>r=rRrC�os�path�abspath�exists�isdirr"�
enter_contextrLZget_default_sessionr
Z_build_package_finderrIr�	cache_dirr(rZno_cleanZget_requirementsZpermit_editable_wheels�'reject_location_related_install_optionsZmake_requirement_preparerZ
make_resolverrBrJZtrace_basic_infoZresolveZget_requirement�KeyErrorZsatisfied_byr r1rG�valuesr&r�format�joinZlegacy_install_reasonZget_installation_orderZignore_dependenciesrF�_determine_conflictsrErrD�get_lib_location_guessesr�sort�operator�
attrgetterr,Zget_distribution�version�	Exception�append�_warn_about_conflictsZdetermine_resolver_variantr!�OSError�	verbosity�create_os_error_message�errorr�AssertionError�_handle_target_dirrr))rNrPrQr@rK�target_temp_dirZtarget_temp_dir_pathrLrUrVrZr\rYZ	directoryZreqsr*r[ZresolverZrequirement_setZpip_reqr]Z
reqs_to_build�_Zbuild_failuresZpep517_build_failure_namesr_�
to_install�	conflictsZshould_warn_about_conflictsrEZ	installedZ
lib_locations�env�items�result�itemZinstalled_distZinstalled_descr��show_traceback�messager-)r/r.�run�s*




























zInstallCommand.run)r3r�r?r)csVt|�g}td|jd�}|j}|j}|j}tj�|�rB|�|�tj�|�r`||kr`|�|�tj�|�rv|�|�x�|D]�}	x�t�	|	�D]�}
|	|kr�tj�
||
��t�fdd�|dd�D��r�q�tj�
||
�}tj�|��r4|s�t�
d|�q�tj�|��rt�
d|�q�tj�|��r*t�|�n
t�|�t�tj�
|	|
�|�q�Wq|WdS)Nr+)rbc3s|]}|���VqdS)N)�
startswith)r^�s)�ddirr-r.�	<genexpr>�sz4InstallCommand._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.)rrrp�purelib�platlib�datarorrr��listdirrz�anyrlZwarning�islinkrs�shutilZrmtree�removeZmove)rNr3r�r?Zlib_dir_list�schemeZpurelib_dirZplatlib_dirZdata_dirZlib_dirr�Ztarget_item_dirr-)r�r.r��sD




z!InstallCommand._handle_target_dir)r�r)cCs,yt|�Stk
r&t�d�dSXdS)NzwError while checking for conflicts. Please file an issue on pip's issue tracker: https://github.com/pypa/pip/issues/new)rr�rlZ	exception)rNr�r-r-r.r{sz#InstallCommand._determine_conflicts)�conflict_detailsrhr)c
Cs|\}\}}|s|sdSg}|dkr0|�d�n|dks<t�|�d�xH|D]@}||d}x.||D]"}	dj|||	dd�}
|�|
�qfWqLWx\|D]T}||d}xB||D]6\}}}
d	j|||
|||dkr�d
ndd�}
|�|
�q�Wq�Wt�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
2020-resolverz�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.rz@{name} {version} requires {requirement}, which is not installed.rj)r,r��requirementzg{name} {version} requires {requirement}, but {you} have {dep_name} {dep_version} which is incompatible.�youzyou'll)r,r�r��dep_name�dep_versionr��
)r�r�ryrlZcriticalrz)rNr�rhZpackage_set�missingZconflicting�partsZproject_namer�Z
dependencyr�r�r�r*r-r-r.r�s<

z$InstallCommand._warn_about_conflicts)�__name__�
__module__�__qualname__�__doc__�usagerOr
rr�str�intr�r"r0r�rrrr{r�r-r-r-r.r2=s g5r2F)rdrbrarercr)cCs td|||||d�}|j|jgS)Nr+)rdrbrarerc)rr�r�)rdrbrarercr�r-r-r.r|Osr|)rarer)cCstdd�tt||d��D��S)Ncss|]}t|�VqdS)N)r)r^�dr-r-r.r�csz)site_packages_writable.<locals>.<genexpr>)rare)�all�setr|)rarer-r-r.�site_packages_writableasr�)r9r>r3r=rRr)cCs�|dk	r|st�d�dS|rF|r*td��t�r8td��t�d�dS|dksRt�|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 disabled)rarez0Non-user install because site-packages writeablezMDefaulting to user installation because normal site-packages is not writeable)
rl�debugrr$rr��site�ENABLE_USER_SITEr��info)r9r>r3r=rRr-r-r.rnhs2




rn)rGrPr)cCs�ttttd�dd�}g}x8|D]0}|j}t|�}|r"|�d�||���|��q"W|r~t|�}|r~|�d�||�����|s�dStd�d�	|����dS)	z�If any location-changing --install-option arguments were passed for
    requirements or on the command-line, then show a deprecation warning.
    )�option_namesr)cSsdd�|D�S)NcSsg|]}d�|�dd���qS)z--{}r�rg)ry�replace)r^r,r-r-r.r`�szSreject_location_related_install_options.<locals>.format_options.<locals>.<listcomp>r-)r�r-r-r.�format_options�sz?reject_location_related_install_options.<locals>.format_optionsz{!r} from {}z{!r} from command lineNz�Location-changing options found in --install-option: {}. This is unsupported, use pip-level options like --user, --prefix, --root, and --target instead.z; )
rr�rrKrr�ry�keysrrz)rGrPr�Z	offendersr�rKZlocation_optionsr-r-r.rv�s&
rv)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�lenrz�strip)r�r�r�r�Zuser_option_partZpermissions_partr-r-r.r��s0





r�)FNNFN)NNNF)Or�r~ror�r�Zoptparserr�typingrrrZpip._vendor.packaging.utilsrZpip._internal.cacherZpip._internal.clir	Zpip._internal.cli.cmdoptionsr
Zpip._internal.cli.req_commandrrr
Zpip._internal.cli.status_codesrrZpip._internal.exceptionsrrZpip._internal.locationsrZpip._internal.metadatarZ#pip._internal.models.format_controlrZpip._internal.operations.checkrrZpip._internal.reqrZpip._internal.req.req_installrZpip._internal.req.req_trackerrZpip._internal.utils.compatrZ"pip._internal.utils.distutils_argsrZpip._internal.utils.filesystemrZpip._internal.utils.loggingrZpip._internal.utils.miscrrr r!Zpip._internal.utils.temp_dirr"Zpip._internal.utils.virtualenvr#r$Zpip._internal.wheel_builderr%r&r'r�rlr1r2r0r�r|r�rnrvr�r�r-r-r-r.�<module>sf		8&

Youez - 2016 - github.com/yon3zu
LinuXploit