U ÀÒ.eã@sÊddlmZddlZddlZddlmZddlmZddlm Z ddl m Z m Z ddl mZddlmZdd lmZdd lmZdd lmZer¬dd lmZdd lmZmZe e¡ZGdd„de ƒZdS)é)Úabsolute_importN)Ú WheelCache)Ú cmdoptions)ÚRequirementCommand)Ú CommandErrorÚPreviousBuildDirError)ÚRequirementSet)ÚRequirementTracker)Ú TempDirectory)ÚMYPY_CHECK_RUNNING)Ú WheelBuilder)ÚValues)ÚAnyÚListcs,eZdZdZdZ‡fdd„Zdd„Z‡ZS)Ú 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 ¡¡| t ¡¡t tj|j¡}|j d|¡|j d|¡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)ÚsuperrÚ__init__Úcmd_optsZ add_optionÚosÚcurdirrZ no_binaryZ only_binaryZ prefer_binaryZno_build_isolationÚ use_pep517Z no_use_pep517Z constraintsZeditableÚ requirementsÚsrcÚignore_requires_pythonZno_depsÚ build_dirZ progress_barÚno_cleanÚrequire_hashesZmake_option_groupZ index_groupÚparserZinsert_option_group)ÚselfÚargsÚkwrZ index_opts©Ú __class__©ú@/usr/lib/python3.8/site-packages/pip/_internal/commands/wheel.pyr3shûûûüþzWheelCommand.__init__c Cszt |¡|jr tj |j¡|_tj |j¡|_| |¡}| ||¡}|j pP|j }t |j |j ƒ}t ƒ}t|j|ddê}t|jd} z¼z˜| | |||||¡|j||||jd} |j| |||||j|jd} |  | ¡t| ||jpêg|jpòg|j d} |  | j ¡¡} t | ƒdkr"t!dƒ‚Wnt"k rBd |_ ‚YnXW5|j s`|  ¡| ¡XW5QRXW5QRXdS) NZwheel)ÚdeleteZkind)r()Ztemp_build_dirrÚ req_trackerZwheel_download_dir)ÚpreparerÚfinderÚsessionrÚ wheel_cacher%r")rrr'rz"Failed to build one or more wheelsT)#rZcheck_install_build_globalr&r ÚpathÚabspathZsrc_dirZget_default_sessionZ_build_package_finderr'rÚ cache_dirZformat_controlr r rr(Z cleanup_filesZcleanupZpopulate_requirement_setZmake_requirement_preparerrZ make_resolverr%r"Zresolver rrZbuildr#ÚvaluesÚlenrr)r*rr+r5r4Z build_deleter6r2Z directoryZrequirement_setr3ZresolverÚwbZbuild_failuresr/r/r0Úrunqs|    ÿÿþüù üÿÿ 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/r0Ús