U
ÀÒ.e ã @ sÊ d dl mZ d dlZd dlZd dlmZ d dlmZ d dlm Z d dl
mZmZ d dl
mZ d dlmZ d d lmZ d d
lmZ d dlmZ er¬d dlmZ d d
lmZmZ e e¡ZG dd„ de ƒZdS )é )Úabsolute_importN)Ú
WheelCache)Ú
cmdoptions)ÚRequirementCommand)ÚCommandErrorÚPreviousBuildDirError)ÚRequirementSet)ÚRequirementTracker)Ú
TempDirectory)ÚMYPY_CHECK_RUNNING)ÚWheelBuilder)ÚValues)ÚAnyÚListc s, e Zd ZdZdZ‡ fdd„Zdd„ Z‡ ZS )Ú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] ...
%prog [options] -r ...
%prog [options] [-e] ...
%prog [options] [-e] ...
%prog [options] ...c sz t t| ƒj||Ž | j}|jddddtjdd | t ¡ ¡ | t ¡ ¡ | t
¡ ¡ |jddd d
dd | t ¡ ¡ | t ¡ ¡ | t
¡ ¡ | t ¡ ¡ | t ¡ ¡ | t ¡ ¡ | t ¡ ¡ | t ¡ ¡ | t ¡ ¡ | t ¡ ¡ | t ¡ ¡ |jd
dd
d dd |jddddd | t ¡ ¡ | t ¡ ¡ t tj| j¡}| j d|¡ | j d|¡ d S )Nz-wz--wheel-dirÚ wheel_dirÚdirzLBuild wheels into , 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_binaryZonly_binaryZ
prefer_binaryZno_build_isolationÚ
use_pep517Z
no_use_pep517ZconstraintsZeditableÚrequirementsÚsrcÚignore_requires_pythonZno_depsÚ build_dirZprogress_barÚno_cleanÚrequire_hashesZmake_option_groupZindex_groupÚparserZinsert_option_group)ÚselfÚargsÚkwr Z
index_opts©Ú __class__© ú@/usr/lib/python3.8/site-packages/pip/_internal/commands/wheel.pyr 3 sh ûûûüþzWheelCommand.__init__c C sz t |¡ |jr tj |j¡|_tj |j¡|_| |¡}| ||¡}|j pP|j }t
|j|jƒ}t
ƒ }t|j|ddê}t|jd} z¼z˜| | |||||¡ | j||||jd}
| j|
|||||j|jd}| | ¡ t|
||jpêg |jpòg |j d}| | j ¡ ¡}
t |
ƒdkr"t!dƒ‚W n t"k
rB d |_ ‚ Y nX W 5 |j s`| ¡ | ¡ X W 5 Q R X W 5 Q R X d S )
NZwheel)ÚdeleteZkind)r( )Ztemp_build_dirr Úreq_trackerZwheel_download_dir)ÚpreparerÚfinderÚsessionr Úwheel_cacher% r" )r r r' r z"Failed to build one or more wheelsT)#r Zcheck_install_build_globalr&