<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
        integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
        crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
</html>
B
    š•Re  ã               @   sâ   d dl mZ d dlZd dlZd dlZd dlmZ d dlmZ d dl	m
Z
mZ d dlmZ d dlmZ d dlmZ d d	lmZmZ d d
lmZ d dlmZ d dlmZmZ erÄd dlmZ d dlmZ e  e!¡Z"G dd„ de
ƒZ#dS )é    )Úabsolute_importN)Ú
WheelCache)Ú
cmdoptions)ÚRequirementCommandÚwith_cleanup)ÚSUCCESS)ÚCommandError)Úget_requirement_tracker)Ú
ensure_dirÚnormalize_path)ÚTempDirectory)ÚMYPY_CHECK_RUNNING)ÚbuildÚshould_build_for_wheel_command)ÚValues)ÚListc               @   s(   e Zd ZdZdZdd„ Zedd„ ƒZdS )ÚWheelCommanda´  
    Build Wheel archives for your requirements and dependencies.

    Wheel is a built-package format, and offers the advantage of not
    recompiling your software during every install. For more details, see the
    wheel docs: https://wheel.readthedocs.io/en/latest/

    Requirements: setuptools>=0.8, and wheel.

    'pip wheel' uses the bdist_wheel setuptools extension from the wheel
    package to build individual wheels.

    zõ
      %prog [options] <requirement specifier> ...
      %prog [options] -r <requirements file> ...
      %prog [options] [-e] <vcs project url> ...
      %prog [options] [-e] <local project path> ...
      %prog [options] <archive url/path> ...c             C   s|  | j jddddtjdd | j  t ¡ ¡ | j  t ¡ ¡ | j  t ¡ ¡ | j jddd	d
dd | j  t ¡ ¡ | j  t 	¡ ¡ | j  t 
¡ ¡ | j  t ¡ ¡ | j  t ¡ ¡ | j  t ¡ ¡ | j  t ¡ ¡ | j  t ¡ ¡ | j  t ¡ ¡ | j  t ¡ ¡ | j  t ¡ ¡ | j jddd
d	dd | j jddddd | j  t ¡ ¡ t tj| j¡}| j d|¡ | j d| j ¡ d S )Nz-wz--wheel-dirÚ	wheel_dirÚdirzLBuild wheels into <dir>, where the default is the current working directory.)ÚdestÚmetavarÚdefaultÚhelpz--build-optionÚbuild_optionsÚoptionsÚappendz9Extra arguments to be supplied to 'setup.py bdist_wheel'.)r   r   Úactionr   z--global-optionÚglobal_optionszZExtra global options to be supplied to the setup.py call before the 'bdist_wheel' command.)r   r   r   r   z--preÚ
store_trueFzYInclude pre-release and development versions. By default, pip only finds stable versions.)r   r   r   r   )Úcmd_optsÚ
add_optionÚosÚcurdirr   Ú	no_binaryÚonly_binaryÚprefer_binaryÚno_build_isolationÚ
use_pep517Úno_use_pep517ÚconstraintsÚeditableÚrequirementsÚsrcÚignore_requires_pythonÚno_depsÚ	build_dirÚprogress_barÚrequire_hashesÚmake_option_groupÚindex_groupÚparserÚinsert_option_group)ÚselfÚ
index_opts© r8   ú‹/builddir/build/BUILDROOT/alt-python37-pip-20.2.4-6.el8.x86_64/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/commands/wheel.pyÚadd_options2   sV    zWheelCommand.add_optionsc             C   s   t  |¡ |  |¡}|  ||¡}|jp*|j }t|j|jƒ}t	|j
ƒ|_
t|j
ƒ |  tƒ ¡}t|j|ddd}|  ||||¡}	| j||||||j
dd}
| j|
||||j|jd}|  |¡ |j|	dd}dd	„ |j ¡ D ƒ}t|||jpîg |jpög d
\}}x„|D ]|}|jr|jjs t‚|js,t‚yt  |j|j
¡ W n> t!k
r~ } zt" #d|j$|¡ | %|¡ W d d }~X Y nX qW t&|ƒdkrœt'dƒ‚t(S )NÚwheelT)ÚdeleteÚkindÚglobally_managedF)Útemp_build_dirr   Úreq_trackerÚsessionÚfinderÚwheel_download_dirÚuse_user_site)ÚpreparerrB   r   Úwheel_cacher-   r'   )Úcheck_supported_wheelsc             S   s   g | ]}t |ƒr|‘qS r8   )r   )Ú.0Úrr8   r8   r9   ú
<listcomp>    s    z$WheelCommand.run.<locals>.<listcomp>)rF   r   r   z Building wheel for %s failed: %sr   z"Failed to build one or more wheels))r   Úcheck_install_build_globalÚget_default_sessionÚ_build_package_finderÚno_cleanr/   r   Ú	cache_dirÚformat_controlr   r   r
   Úenter_contextr	   r   Úget_requirementsÚmake_requirement_preparerÚmake_resolverr-   r'   Útrace_basic_infoÚresolver+   Úvaluesr   r   r   ÚlinkÚis_wheelÚAssertionErrorÚlocal_file_pathÚshutilÚcopyÚOSErrorÚloggerÚwarningÚnamer   Úlenr   r   )r6   r   ÚargsrA   rB   Úbuild_deleterF   r@   Ú	directoryÚreqsrE   ÚresolverÚrequirement_setÚreqs_to_buildÚbuild_successesÚbuild_failuresÚreqÚer8   r8   r9   Úrunm   sh    







"zWheelCommand.runN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úusager:   r   rn   r8   r8   r8   r9   r      s   ;r   )$Ú
__future__r   Úloggingr!   r\   Úpip._internal.cacher   Zpip._internal.clir   Úpip._internal.cli.req_commandr   r   Úpip._internal.cli.status_codesr   Úpip._internal.exceptionsr   Úpip._internal.req.req_trackerr	   Úpip._internal.utils.miscr
   r   Úpip._internal.utils.temp_dirr   Úpip._internal.utils.typingr   Úpip._internal.wheel_builderr   r   Úoptparser   Útypingr   Ú	getLoggerro   r_   r   r8   r8   r8   r9   Ú<module>   s$   
