B š•Reã@sâddlmZddlZddlZddlZddlmZddlmZddl m Z m Z ddl m Z ddlmZddlmZdd lmZmZdd lmZdd lmZdd lmZmZerÄdd lmZddlmZe  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|j t ¡¡|j t ¡¡|j t ¡¡|jjddd d d d |j t ¡¡|j t  ¡¡|j t  ¡¡|j t  ¡¡|j t  ¡¡|j t  ¡¡|j t ¡¡|j t ¡¡|j t ¡¡|j t ¡¡|j t ¡¡|jjd dd d dd|jjddddd|j t ¡¡t tj|j¡}|j d|¡|j d|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-python37-pip-20.2.4-6.el8.x86_64/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/commands/wheel.pyÚ add_options2sVzWheelCommand.add_optionsc Cs 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ögd \}}x„|D]|}|jr|jjs t‚|js,t‚yt  |j|j ¡Wn>t!k r~}zt" #d |j$|¡| %|¡Wdd}~XYnXqWt&|ƒd krœ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$