3 (\@sddlmZddlZddlZddlmZddlmZddlm Z ddl m Z m Z ddl mZddlmZdd lmZdd lmZdd lmZdd lmZejeZGd dde ZdS))absolute_importN) WheelCache) cmdoptions)RequirementCommand) CommandErrorPreviousBuildDirError)RequirementPreparer)RequirementSet)RequirementTracker)Resolver) TempDirectory) WheelBuildercs4eZdZdZdZdZdZfddZddZZ S) 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. wheelz %prog [options] ... %prog [options] -r ... %prog [options] [-e] ... %prog [options] [-e] ... %prog [options] ...z$Build wheels from your requirements.csztt|j|||j}|jddddtjdd|jtj|jtj |jtj |jddd d d d |jtj |jtj |jtj |jtj|jtj|jtj|jtj|jtj|jtj|jtj|jtj|jd dd d dd|jddddd|jtj|jtjtjtj|j}|jjd||jjd|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_binaryZ prefer_binaryZno_build_isolation use_pep517Z no_use_pep517 constraintseditable requirementssrcignore_requires_pythonno_deps build_dir progress_barno_cleanrequire_hashesmake_option_group index_groupparserinsert_option_group)selfargskwr index_opts) __class__o/private/var/folders/pf/wv4htv3x0qs2c2mp0dnn0kchsvlck3/T/pip-build-k1a8l1r5/pip/pip/_internal/commands/wheel.pyr.s\zWheelCommand.__init__c/Cstj||jg|j}|jr4tjddj|g}|jrJt j j |j|_t j j |j |_ |j |j}|j||}|jp~|j }t|j|j}t.}t|j|dd} t|jd} zy|j| |||||j|t| j |j d|j|j|j|d} t| |||ddd|j|jd |j |j!d } | j"| t#|| ||j$p:g|j%pDg|jd } | j&| j'j(|d }t)|d krxt*dWnt+k rd |_YnXWd|js| j,|j-XWdQRXWdQRXWdQRXdS)NzIgnoring indexes: %s,r)deletekind)r.)r+src_dir download_dirwheel_download_dirr,build_isolation req_trackerFzto-satisfy-onlyT) preparerfindersession wheel_cache use_user_siteupgrade_strategyforce_reinstallignore_dependenciesr)ignore_installedisolatedr$)rrr-)rDrz"Failed to build one or more wheels).rcheck_install_build_global index_urlextra_index_urlsno_indexloggerdebugjoinr+r pathabspathr=_build_session_build_package_finderr-r cache_dirformat_controlr r r r.populate_requirement_setnamerrr,r@r rIr) isolated_moder$resolver rrbuildr'valueslenrr cleanup_filescleanup)r3rr4 index_urlsrDrC build_deleterErA directoryrequirement_setrBresolverwbZbuild_failuresr8r8r9runlsv             zWheelCommand.run) __name__ __module__ __qualname____doc__rZusagesummaryrrh __classcell__r8r8)r7r9rs   >r) __future__rloggingr Zpip._internal.cacherZpip._internal.clirZpip._internal.cli.base_commandrZpip._internal.exceptionsrrZ pip._internal.operations.preparerZpip._internal.reqr Zpip._internal.req.req_trackerr Zpip._internal.resolver Zpip._internal.utils.temp_dirr Zpip._internal.wheelr getLoggerrirPrr8r8r8r9s