Your IP : 18.218.231.116


Current Path : /opt/alt/python34/lib/python3.4/site-packages/pip/commands/__pycache__/
Upload File :
Current File : //opt/alt/python34/lib/python3.4/site-packages/pip/commands/__pycache__/wheel.cpython-34.pyc

�
�Re"�@s�ddlmZddlZddlZddlmZddlmZddlm	Z	ddl
mZmZddl
mZmZmZddlmZmZdd	lmZdd
lmZejjeej�d�ZGdd
�d
e�ZdS)�)�absolute_importN)�Command)�
PackageFinder)�logger)�CommandError�PreviousBuildDirError)�InstallRequirement�RequirementSet�parse_requirements)�BuildDirectory�normalize_path)�WheelBuilder)�
cmdoptionsZ
wheelhousecsFeZdZdZdZdZdZ�fdd�Zdd�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: http://wheel.readthedocs.org/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] <requirement specifier> ...
      %prog [options] -r <requirements file> ...
      %prog [options] <vcs project url> ...
      %prog [options] <local project path> ...
      %prog [options] <archive url/path> ...z$Build wheels from your requirements.cs�tt|�j||�|j}|jdddddddtdd	�|jtjj��|jtj	j��|jd
ddddd
ddd�|jtj
j��|jtjj��|jtjj��|jtj
j��|jdddd
ddddd�|jdd
ddddd�|jtjj��tjtj|j�}|jjd|�|jjd|�dS)Nz-wz--wheel-dir�dest�	wheel_dir�metavar�dir�default�helpzABuild wheels into <dir>, where the default is '<cwd>/wheelhouse'.z--build-option�
build_options�options�action�appendz9Extra arguments to be supplied to 'setup.py bdist_wheel'.z--global-option�global_optionszZExtra global options to be supplied to the setup.py call before the 'bdist_wheel' command.z--pre�
store_trueFzYInclude pre-release and development versions. By default, pip only finds stable versions.r)�superr�__init__�cmd_opts�
add_option�DEFAULT_WHEEL_DIRr�	use_wheel�make�no_use_wheel�requirements�download_cache�no_deps�	build_dir�no_clean�make_option_group�index_group�parser�insert_option_group)�self�args�kwr�
index_opts)�	__class__��-/tmp/pip-ztkk0jow-build/pip/commands/wheel.pyr(sF		zWheelCommand.__init__c+Csuyddl}Wntk
r0td��YnXyddl}Wntk
ratd��YnXt|d�s�td��n|jg|j}|jr�tj	ddj
|��g}n|jr�tjdd�n|j
rtjdd	�||j
7}n|jr(tjj|j�|_n|j|�}td
|jd|d|jd
|jd|jd|jd|jd|jd|�	}|jp�|j}t|jd|���}	td|	ddddd|jd|jddd|d|j �}
tjj!|j �s tj"|j �nx'|D]}|
j#t$j%|d��q'Wxj|j&D]_}xVt'|d|d|d|�D]6}
|
j(r�tj	d|
j)�qyn|
j#|
�qyWqTW|
j*s�i|j+d6}d |}tj,|�dSzfyAt-|
||j d!|j.pgd"|j/pg�}|j0�Wnt1k
rOd|_�YnXWd|jsj|
j2�nXWdQXdS)#NrzN'pip wheel' requires the 'wheel' package. To fix this, run:  pip install wheelzp'pip wheel' requires setuptools >= 0.8 for dist-info support. To fix this, run: pip install --upgrade setuptools�DistInfoDistributionzIgnoring indexes: %s�,z1.7z�--use-mirrors has been deprecated and will be removed in the future. Explicit uses of --index-url and/or --extra-index-url is suggested.z�--mirrors has been deprecated and will be removed in  the future. Explicit uses of --index-url and/or --extra-index-url is suggested.�
find_links�
index_urlsr"�allow_external�allow_unverified�allow_all_external�allow_all_prereleases�process_dependency_links�session�deleter(�src_dir�download_dirr&�ignore_dependencies�ignore_installedT�wheel_download_dir�finderrzignoring %s�namezLYou must give at least one requirement to %(name)s (see "pip help %(name)s")rr)3�wheel.bdist_wheel�ImportErrorr�
pkg_resources�hasattr�	index_url�extra_index_urls�no_indexr�notify�join�use_mirrors�
deprecated�mirrorsr(�os�path�abspath�_build_sessionrr7r"r9r:r;�prer=r)rr	r&rBr�exists�makedirs�add_requirementr�	from_liner%r
�editable�url�has_requirementsrF�errorr
rr�buildr�
cleanup_files)r.rr/rrIr8r>rE�build_deleter(�requirement_setrF�filename�req�opts�msg�wbr3r3r4�runUs�

				
												

		
	
		zWheelCommand.run)	�__name__�
__module__�__qualname__�__doc__rF�usage�summaryrrir3r3)r2r4rs-r)�
__future__rrS�sys�pip.basecommandr�	pip.indexr�pip.logr�pip.exceptionsrr�pip.reqrr	r
�pip.utilrr�	pip.wheelr
�piprrTrO�curdirr!rr3r3r3r4�<module>s

?>