관리-도구
편집 파일: wheel.cpython-34.pyc
� �Re" � @ s� d d l m Z d d l Z d d l Z d d l m Z d d l m Z d d l m Z d d l m Z m Z d d l m Z m Z m Z d d l m Z m Z d d l m Z d d l m Z e j j e e j � d � Z Gd d � d e � Z d S)� )�absolute_importN)�Command)� PackageFinder)�logger)�CommandError�PreviousBuildDirError)�InstallRequirement�RequirementSet�parse_requirements)�BuildDirectory�normalize_path)�WheelBuilder)� cmdoptionsZ wheelhousec sF e Z d Z d Z d Z d Z d Z � f d d � Z d d � 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.c s� t t | � j | | � | j } | j d d d d d d d t d d �| j t j j � � | j t j j � � | j d d d d d d d d d �| j t j j � � | j t j j � � | j t j j � � | j t j j � � | j d d d d d d d d d �| j d d d d d d d �| j t j j � � t j t j | j � } | j j d | � | j j d | � d S)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 + C su y d d l } Wn t k r0 t d � � Yn Xy d d l } Wn t k ra t d � � Yn Xt | d � s� t d � � n | j g | j } | j r� t j d d j | � � g } n | j r� t j d d � n | j rt j d d � | | j 7} n | j r(t j j | j � | _ n | j | � } t d | j d | d | j d | j d | j d | j d | j d | j d | � } | j p�| j } t | j d | ���} t d | d d d d d | j d | j d d d | d | j � } t j j! | j � s t j"