<!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>
U
    ÀÒ.e  ã                   @   sÊ   d dl mZ d dlZd dl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 d d
lmZ d dlmZ er¬d dlmZ d dlmZmZ e e¡ZG dd„ de	ƒZdS )é    )Úabsolute_importN)Ú
WheelCache)Ú
cmdoptions)ÚRequirementCommand)ÚCommandErrorÚPreviousBuildDirError)ÚRequirementSet)ÚRequirementTracker)ÚTempDirectory)ÚMYPY_CHECK_RUNNING)ÚWheelBuilder)ÚValues)ÚAnyÚListc                       s,   e Zd ZdZdZ‡ fdd„Zdd„ Z‡  Z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                    sz  t t| ƒj||Ž | j}|jddddtjdd | t ¡ ¡ | t 	¡ ¡ | t 
¡ ¡ |jddd	d
dd | t ¡ ¡ | t ¡ ¡ | t ¡ ¡ | t ¡ ¡ | t ¡ ¡ | t ¡ ¡ | t ¡ ¡ | t ¡ ¡ | t ¡ ¡ | t ¡ ¡ | t ¡ ¡ |jddd
d	dd |jddddd | t ¡ ¡ | t ¡ ¡ t tj| j¡}| j d|¡ | j d|¡ 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   )Úsuperr   Ú__init__Úcmd_optsZ
add_optionÚosÚcurdirr   Z	no_binaryZonly_binaryZprefer_binaryZno_build_isolationÚ
use_pep517Zno_use_pep517ZconstraintsZeditableÚrequirementsÚsrcÚignore_requires_pythonZno_depsÚ	build_dirZprogress_barÚno_cleanÚrequire_hashesZmake_option_groupZindex_groupÚparserZinsert_option_group)ÚselfÚargsÚkwr   Z
index_opts©Ú	__class__© ú@/usr/lib/python3.8/site-packages/pip/_internal/commands/wheel.pyr   3   sh     ûûûüþzWheelCommand.__init__c                 C   sz  t  |¡ |jr tj |j¡|_tj |j¡|_|  |¡}|  ||¡}|j	pP|j }t
|j|jƒ}tƒ }t|j|ddê}t|jd}	z¼z˜|  |	|||||¡ | j||||jd}
| j|
|||||j|jd}| |	¡ t|
||jpêg |jpòg |j	d}| |	j ¡ ¡}t |ƒdkr"t!dƒ‚W n t"k
rB   d	|_	‚ Y nX W 5 |j	s`|	 ¡  | ¡  X W 5 Q R X W 5 Q R X d S )
NZwheel)ÚdeleteZkind)r(   )Ztemp_build_dirr   Úreq_trackerZwheel_download_dir)ÚpreparerÚfinderÚsessionr   Úwheel_cacher%   r"   )r   r   r'   r   z"Failed to build one or more wheelsT)#r   Zcheck_install_build_globalr&   r    ÚpathÚabspathZsrc_dirZget_default_sessionZ_build_package_finderr'   r   Ú	cache_dirZformat_controlr	   r
   r   r(   Zcleanup_filesZcleanupZpopulate_requirement_setZmake_requirement_preparerr   Zmake_resolverr%   r"   Zresolver   r   r   Zbuildr#   ÚvaluesÚlenr   r   )r*   r   r+   r5   r4   Zbuild_deleter6   r2   Z	directoryZrequirement_setr3   ZresolverÚwbZbuild_failuresr/   r/   r0   Úrunq   s|    

  ÿÿ    þüù	
 üÿÿzWheelCommand.run)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Zusager   r=   Ú__classcell__r/   r/   r-   r0   r      s   >r   ) Z
__future__r   Zloggingr    Zpip._internal.cacher   Zpip._internal.clir   Zpip._internal.cli.req_commandr   Zpip._internal.exceptionsr   r   Zpip._internal.reqr   Zpip._internal.req.req_trackerr	   Zpip._internal.utils.temp_dirr
   Zpip._internal.utils.typingr   Zpip._internal.wheelr   Zoptparser   Útypingr   r   Z	getLoggerr>   Zloggerr   r/   r/   r/   r0   Ú<module>   s    
