3 ”Reã@sâddlmZddlZddlZddlZddlmZddlmZddl m Z m Z ddl m Z ddlmZddlmZdd lmZmZdd lmZdd lmZdd lmZmZerÄdd lmZddlmZej e!ƒZ"Gdd„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(eZdZdZdZdd„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] ...cCs||jjddddtjdd�|jjtjƒƒ|jjtjƒƒ|jjtjƒƒ|jjddd d d d �|jjtjƒƒ|jjtj ƒƒ|jjtj ƒƒ|jjtj ƒƒ|jjtj ƒƒ|jjtj ƒƒ|jjtjƒƒ|jjtjƒƒ|jjtjƒƒ|jjtjƒƒ|jjtjƒƒ|jjd dd d dd�|jjddddd�|jjtjƒƒtjtj|jƒ}|jjd|ƒ|jjd|jƒdS)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'.)rrÚactionrz--global-optionÚglobal_optionszZExtra global options to be supplied to the setup.py call before the 'bdist_wheel' command.)rrrrz--preÚ store_trueFzYInclude pre-release and development versions. By default, pip only finds stable versions.)rrrr)Ú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-python36-pip-20.2.4-5.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/commands/wheel.pyÚ add_options2sVzWheelCommand.add_optionscCs tj|ƒ|j|ƒ}|j||ƒ}|jp*|j }t|j|jƒ}t |j ƒ|_ t |j ƒ|j t ƒƒ}t|j|ddd�}|j||||ƒ} |j||||||j dd�} |j| ||||j|jd�} |j|ƒ| j| dd�} dd „| jjƒDƒ} t| ||jpîg|jpögd �\}}x„|D]|}|j�r|jj�s t‚|j�s,t‚ytj |j|j ƒWn>t!k �r~}z t"j#d |j$|ƒ|j%|ƒWYdd}~XnX�qWt&|ƒ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)ÚpreparerrBrÚ wheel_cacher-r')Úcheck_supported_wheelscSsg|]}t|ƒr|‘qSr8)r)Ú.0Úrr8r8r9ú  sz$WheelCommand.run..)rFrrz Building wheel for %s failed: %srz"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 rr Ú enter_contextr r Úget_requirementsÚmake_requirement_preparerÚ make_resolverr-r'Útrace_basic_infoÚresolver+ÚvaluesrrrÚlinkÚis_wheelÚAssertionErrorÚlocal_file_pathÚshutilÚcopyÚOSErrorÚloggerÚwarningÚnamerÚlenrr)r6rÚargsrArBÚ build_deleterFr@Ú directoryÚreqsrEÚresolverÚrequirement_setÚ reqs_to_buildÚbuild_successesÚbuild_failuresÚreqÚer8r8r9Úrunmsh            "zWheelCommand.runN)Ú__name__Ú __module__Ú __qualname__Ú__doc__Úusager:rrnr8r8r8r9rs ;r)$Ú __future__rÚloggingr!r\Úpip._internal.cacherZpip._internal.clirÚpip._internal.cli.req_commandrrÚ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_builderrrÚoptparserÚtypingrÚ getLoggerror_rr8r8r8r9Ús$