U n a@sddlmZddlZddlZddlZddlmZddlmZddl m Z m Z ddl m Z ddlmZddlmZmZdd lmZdd lmZdd lmZmZerdd lmZdd lmZmZee Z!Gddde Z"dS))absolute_importN) WheelCache) cmdoptions)RequirementCommand with_cleanup) CommandError)get_requirement_tracker) ensure_dirnormalize_path) TempDirectory)MYPY_CHECK_RUNNING)buildshould_build_for_wheel_command)Values)AnyListcs0eZdZdZdZfddZeddZZS) 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] ...csltt|j|||j}|jddddtjdd|t|t |t |jddd d d d |t |t |t |t|t|t|t|t|t|t|t|jd dd d dd|jddddd|tttj|j}|jd||jd|dS)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'.)rractionrz--global-optionglobal_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)superr__init__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)selfargskwr! index_opts __class__]C:\Users\vtejo\AppData\Local\Temp\pip-unpacked-wheel-6mt8ur68\pip\_internal\commands\wheel.pyr 4sfzWheelCommand.__init__c Cst|||}|||}|jp*|j }t|j|j}t |j |_ t |j | t }t|j|ddd}|||||} |j||||||j dd} |j| ||||j|jd} ||| j| dd} dd | jD} t| ||jpg|jpgd \}}|D]|}|jr|jjst|js*tzt |j|j Wn>t!k r|}zt"#d |j$||%|W5d}~XYnXqt&|d krt'd dS)NwheelT)deletekindglobally_managedF)temp_build_dirr req_trackersessionfinderwheel_download_dir use_user_site)preparerrGr wheel_cacher/r))check_supported_wheelscSsg|]}t|r|qSr>)r).0rr>r>r? sz$WheelCommand.run..)rKrrz Building wheel for %s failed: %srz"Failed to build one or more wheels)(rcheck_install_build_globalget_default_session_build_package_finderno_cleanr1r cache_dirformat_controlr rr enter_contextrr get_requirementsmake_requirement_preparer make_resolverr/r)trace_basic_inforesolver-valuesr rrlinkis_wheelAssertionErrorlocal_file_pathshutilcopyOSErrorloggerwarningnamerlenr)r8rr9rFrG build_deleterKrE directoryreqsrJresolverrequirement_set reqs_to_buildbuild_successesbuild_failuresreqer>r>r?runqs|           zWheelCommand.run) __name__ __module__ __qualname____doc__usager rrr __classcell__r>r>r<r?rs  =r)# __future__rloggingr#rapip._internal.cacherZpip._internal.clirpip._internal.cli.req_commandrrpip._internal.exceptionsrpip._internal.req.req_trackerrpip._internal.utils.miscr r pip._internal.utils.temp_dirr pip._internal.utils.typingr pip._internal.wheel_builderr roptparsertypingrr getLoggerrsrdrr>r>r>r?s"