3
Re @ s d dl mZ d dlZd dlZd dlZd dlmZ d dlmZ d dl m
Z
mZ d dlm
Z
d dlmZ d dlmZ d d lmZmZ d d
lmZ d dlmZ d dlmZmZ erd d
lmZ d dlmZ ej e!Z"G dd de
Z#dS ) )absolute_importN)
WheelCache)
cmdoptions)RequirementCommandwith_cleanup)SUCCESS)CommandError)get_requirement_tracker)
ensure_dirnormalize_path)
TempDirectory)MYPY_CHECK_RUNNING)buildshould_build_for_wheel_command)Values)Listc @ s( e Zd ZdZdZdd Zedd ZdS )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 C s| | j jddddtjdd | j jtj | j jtj | j jtj | j jddd d
dd | j jtj | j jtj | j jtj
| j jtj | j jtj | j jtj
| j jtj | j jtj | j jtj | j jtj | j jtj | j jd
dd
d dd | j jddddd | j jtj tjtj| j}| jjd| | jjd| j d S )Nz-wz--wheel-dir wheel_dirdirzLBuild wheels into , where the default is the current working directory.)destmetavardefaulthelpz--build-option
build_optionsoptionsappendz9Extra arguments to be supplied to 'setup.py bdist_wheel'.)r r actionr z--global-optionglobal_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_optionoscurdirr no_binaryonly_binary
prefer_binaryno_build_isolation
use_pep517
no_use_pep517constraintseditablerequirementssrcignore_requires_pythonno_deps build_dirprogress_barrequire_hashesmake_option_groupindex_groupparserinsert_option_group)self
index_opts r8 /builddir/build/BUILDROOT/alt-python36-pip-20.2.4-5.el9.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/commands/wheel.pyadd_options2 sV zWheelCommand.add_optionsc C s t j| | j|}| j||}|jp*|j }t|j|j}t |j
|_
t|j
| jt
}t|j|ddd}| j||||} | j||||||j
dd}
| j|
||||j|jd}| j| |j| dd}dd |jj D }
t|
||jpg |jpg d
\}}x|D ]|}|jr|jjs t|js,tytj |j|j
W n> t!k
r~ } z t"j#d|j$| |j%| W Y d d }~X nX qW t&|dkrt'd
t(S )NwheelT)deletekindglobally_managedF)temp_build_dirr req_trackersessionfinderwheel_download_dir
use_user_site)preparerrB r wheel_cacher- r' )check_supported_wheelsc S s g | ]}t |r|qS r8 )r ).0rr8 r8 r9