U .e@sddlmZddlZddlZddlmZddlmZddlm Z ddl m Z m Z ddl mZddlmZdd lmZdd lmZdd lmZerdd lmZdd lmZmZeeZGddde ZdS))absolute_importN) WheelCache) cmdoptions)RequirementCommand) CommandErrorPreviousBuildDirError)RequirementSet)RequirementTracker) TempDirectory)MYPY_CHECK_RUNNING) WheelBuilder)Values)AnyListcs,eZdZdZdZfddZddZZS) 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] ...csztt|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|t|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_optsZ add_optionoscurdirrZ no_binaryZ only_binaryZ prefer_binaryZno_build_isolation use_pep517Z no_use_pep517Z constraintsZeditable requirementssrcignore_requires_pythonZno_deps build_dirZ progress_barno_cleanrequire_hashesZmake_option_groupZ index_groupparserZinsert_option_group)selfargskwrZ index_opts __class__@/usr/lib/python3.8/site-packages/pip/_internal/commands/wheel.pyr3shzWheelCommand.__init__c Cszt||jr tj|j|_tj|j|_||}|||}|j pP|j }t |j |j }t }t|j|dd}t|jd} zz|| ||||||j||||jd} |j| |||||j|jd} | | t| ||jpg|jpg|j d} | | j} t | dkr"t!dWnt"k rBd |_ YnXW5|j s`| |XW5QRXW5QRXdS) NZwheel)deleteZkind)r()Ztemp_build_dirr req_trackerZwheel_download_dir)preparerfindersessionr wheel_cacher%r")rrr'rz"Failed to build one or more wheelsT)#rZcheck_install_build_globalr&r pathabspathZsrc_dirZget_default_sessionZ_build_package_finderr'r cache_dirZformat_controlr r rr(Z cleanup_filesZcleanupZpopulate_requirement_setZmake_requirement_preparerrZ make_resolverr%r"Zresolver rrZbuildr#valueslenrr)r*rr+r5r4Z build_deleter6r2Z directoryZrequirement_setr3ZresolverwbZbuild_failuresr/r/r0runqs|      zWheelCommand.run)__name__ __module__ __qualname____doc__Zusagerr= __classcell__r/r/r-r0rs >r) Z __future__rZloggingr Zpip._internal.cacherZpip._internal.clirZpip._internal.cli.req_commandrZpip._internal.exceptionsrrZpip._internal.reqrZpip._internal.req.req_trackerr Zpip._internal.utils.temp_dirr Zpip._internal.utils.typingr Zpip._internal.wheelr Zoptparser typingrrZ getLoggerr>Zloggerrr/r/r/r0s