B
š•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 erÄd d
lmZ d dlmZ e e!¡Z"G dd„ de
ƒZ#dS )é )Ú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 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 t ¡ ¡ | j t ¡ ¡ | j t ¡ ¡ | j jddd d
dd | j t ¡ ¡ | j t ¡ ¡ | j t
¡ ¡ | j t ¡ ¡ | j t ¡ ¡ | j t
¡ ¡ | j t ¡ ¡ | j t ¡ ¡ | j t ¡ ¡ | j t ¡ ¡ | j t ¡ ¡ | j jd
dd
d dd | j jddddd | j t ¡ ¡ t tj| j¡}| j d|¡ | j d| j ¡ 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 )Ú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 zWheelCommand.add_optionsc C s t |¡ | |¡}| ||¡}|jp*|j }t|j|jƒ}t |j
ƒ|_
t|j
ƒ | t
ƒ ¡}t|j|ddd}| ||||¡} | j||||||j
dd}
| j|
||||j|jd}| |¡ |j| dd}dd „ |j ¡ D ƒ}
t|
||jpîg |jpög d
\}}x„|D ]|}|jr|jjs t‚|js,t‚yt |j|j
¡ W n> t!k
r~ } zt" #d|j$|¡ | %|¡ W d d }~X Y nX qW t&|ƒdkrœ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|‘qS r8 )r )Ú.0Úrr8 r8 r9 ú
s z$WheelCommand.run..)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
"zWheelCommand.runN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úusager: r rn r8 r8 r8 r9 r s
;r )$Ú
__future__r Úloggingr! r\ Úpip._internal.cacher Zpip._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 Ú s$