Re@s5ddlmZddlZddlZddlZddlmZddlmZddl m Z m Z ddl m Z ddlmZddlmZdd lmZmZdd lmZdd lmZdd lmZmZer dd lmZddlmZej e!Z"Gddde Z#dS))absolute_importN) WheelCache) cmdoptions)RequirementCommand with_cleanup)SUCCESS) CommandError)get_requirement_tracker) ensure_dirnormalize_path) TempDirectory)MYPY_CHECK_RUNNING)buildshould_build_for_wheel_command)Values)Listc@s:eZdZdZdZddZeddZdS) 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 Cs/|jjdddddddtjdd |jjtj|jjtj|jjtj|jjd dd dd d ddd|jjtj|jjtj |jjtj |jjtj |jjtj |jjtj |jjtj|jjtj|jjtj|jjtj|jjtj|jjdddd ddd dd|jjdd ddddd|jjtjtjtj|j}|jjd||jjd|jdS)Nz-wz --wheel-dirdest wheel_dirmetavardirdefaulthelpzLBuild wheels into , where the default is the current working directory.z--build-option build_optionsoptionsactionappendz9Extra arguments to be supplied to 'setup.py bdist_wheel'.z--global-optionglobal_optionszZExtra global options to be supplied to the setup.py call before the 'bdist_wheel' command.z--pre store_trueFzYInclude pre-release and development versions. By default, pip only finds stable versions.r)cmd_opts add_optionoscurdirr no_binary only_binary prefer_binaryno_build_isolation use_pep517 no_use_pep517 constraintseditable requirementssrcignore_requires_pythonno_deps build_dir progress_barrequire_hashesmake_option_group index_groupparserinsert_option_group)self index_optsr8/builddir/build/BUILDROOT/alt-python35-pip-20.2.4-5.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/pip/_internal/commands/wheel.py add_options2sV       zWheelCommand.add_optionscCsetj||j|}|j||}|jp=|j }t|j|j}t |j |_ t |j |j t }t|jd|dddd}|j||||} |jd|d|d|d |d |d |j d d } |jd| d |d|d|d|jd|j} |j|| j| dd} dd| jjD} t| d|d|jpgd|jpg\}}x|D]}|jr|jjst|jstytj |j|j Wqt!k r>}z(t"j#d|j$||j%|WYdd}~XqXqWt&|dkrat'dt(S)Ndeletekindwheelglobally_managedTtemp_build_dirr req_trackersessionfinderwheel_download_dir use_user_siteFpreparer wheel_cacher-r'check_supported_wheelscSs"g|]}t|r|qSr8)r).0rr8r8r9 s z$WheelCommand.run..rrz Building wheel for %s failed: %srz"Failed to build one or more wheels))rcheck_install_build_globalget_default_session_build_package_finderno_cleanr/r cache_dirformat_controlr rr enter_contextr r get_requirementsmake_requirement_preparer make_resolverr-r'trace_basic_inforesolver+valuesrrrlinkis_wheelAssertionErrorlocal_file_pathshutilcopyOSErrorloggerwarningnamerlenrr)r6rargsrArB build_deleterFr@ directoryreqsrEresolverrequirement_set reqs_to_buildbuild_successesbuild_failuresreqer8r8r9runmsh             $ zWheelCommand.runN)__name__ __module__ __qualname____doc__usager:rrnr8r8r8r9rs  ;r)$ __future__rloggingr!r\pip._internal.cacherZpip._internal.clirpip._internal.cli.req_commandrrpip._internal.cli.status_codesrpip._internal.exceptionsrpip._internal.req.req_trackerr pip._internal.utils.miscr r pip._internal.utils.temp_dirr pip._internal.utils.typingr pip._internal.wheel_builderrroptparsertypingr getLoggerror_rr8r8r8r9s$