Edit File: wheel.cpython-36.opt-1.pyc
3 )�]b1������������������@���s����d�dl�mZ�d�dlZd�dlZd�dlZd�dlmZ�d�dlmZm Z �d�dl mZ�d�dlm Z �d�dlmZ�d�dlmZ�d�d lmZmZ�d�d lmZ�eje�ZG�dd��de�ZdS�) �����)�absolute_importN)�RequirementCommand)�CommandError�PreviousBuildDirError)�RequirementSet)�import_or_raise)�BuildDirectory)�RemovedInPip10Warning)� WheelCache�WheelBuilder)� cmdoptionsc�������������������s<���e�Zd�ZdZdZdZdZ��fdd�Zdd��Zd d ��Z ���Z 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. Zwheelz� %prog [options] <requirement specifier> ... %prog [options] -r <requirements file> ... %prog [options] [-e] <vcs project url> ... %prog [options] [-e] <local project path> ... %prog [options] <archive url/path> ...z$Build wheels from your requirements.c����������������sP��t�t|��j||��|�j}|jddddtjdd��|jtj����|jtj ����|jtj ����|jtj����|jddd d dd��|jtj����|jtj ����|jtj����|jtj����|jtj����|jtj����|jtj����|jd dd d dd��|jddddd��|jtj����|jtj����tjtj|�j�}|�jjd|��|�jjd|��d�S�)Nz-wz--wheel-dir� wheel_dir�dirzLBuild wheels into <dir>, 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'.)r���r����actionr���z--global-option�global_optionszZExtra global options to be supplied to the setup.py call before the 'bdist_wheel' command.)r���r���r���r���z--pre� store_trueFzYInclude pre-release and development versions. By default, pip only finds stable versions.)r���r���r���r���)�superr ����__init__�cmd_optsZ add_option�os�curdirr���Z use_wheelZno_use_wheelZ no_binaryZonly_binaryZconstraintsZeditableZrequirements�src�ignore_requires_pythonZno_deps� build_dir�no_clean�require_hashesZmake_option_groupZindex_group�parserZinsert_option_group)�self�args�kwr���Z index_opts)� __class__���/usr/lib/python3.6/wheel.pyr���.���sV����zWheelCommand.__init__c�������������C���s.���t�dtd��t�dtd�}t|d�s*td��d�S�)Nzwheel.bdist_wheelzM'pip wheel' requires the 'wheel' package. To fix this, run: pip install wheel� pkg_resourceszp'pip wheel' requires setuptools >= 0.8 for dist-info support. To fix this, run: pip install --upgrade setuptoolsZDistInfoDistribution)r���r����hasattr)r%���r+���r)���r)���r*����check_required_packagesh���s���� z$WheelCommand.check_required_packagesc���������� ���C���s���|�j����tj|��tj|��|jr.tjdt��|jr@tjdt��|j rRtjdt��|j g|j�}|jr|t jddj|���g�}|jr�tjj|j�|_tjj|j�|_|�j|���}|�j||�}|jp�|j�}t|j|j�}t|j|d���}t||jd�|jd|j|j|||j |j!d�} |�j"| |||||�j#|��| j$�s6d�S�zZy6t%| ||j&�pJg�|j'�pTg�d �} | j(���slt)d ��W�n�t*k �r����d|_��Y�nX�W�d�|j�s�| j+���X�W�d�Q�R�X�W�d�Q�R�X�d�S�)Nz�--allow-external has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.z�--allow-all-external has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.z�--allow-unverified has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.zIgnoring indexes: %s�,)�deleteT)r!����src_dirZdownload_dir�ignore_dependenciesZignore_installedr ����isolated�session�wheel_cacheZwheel_download_dirr#���)r���r���z"Failed to build one or more wheels),r-���r���Zresolve_wheel_no_use_binaryZcheck_install_build_globalZallow_external�warnings�warnr ���Zallow_all_externalZallow_unverifiedZ index_urlZextra_index_urlsZno_index�logger�debug�joinr!���r����path�abspathr0���Z_build_sessionZ_build_package_finderr"���r ���� cache_dirZformat_controlr���r���r1���r ���Z isolated_moder���r#���Zpopulate_requirement_set�nameZhas_requirementsr���r���r���Zbuildr���r���Z cleanup_files)r%���r���r&���Z index_urlsr3����finderZbuild_deleter4���r!���Zrequirement_set�wbr)���r)���r*����run|���sv���� zWheelCommand.run)�__name__� __module__�__qualname__�__doc__r=���ZusageZsummaryr���r-���r@���� __classcell__r)���r)���)r(���r*���r ������s��� :r ���)Z __future__r���Zloggingr���r5���Zpip.basecommandr���Zpip.exceptionsr���r���Zpip.reqr���Z pip.utilsr���Zpip.utils.buildr���Zpip.utils.deprecationr ���Z pip.wheelr ���r���Zpipr���Z getLoggerrA���r7���r ���r)���r)���r)���r*����<module>���s���