AlkantarClanX12
Current Path : /proc/self/root/lib/python2.7/site-packages/pip/commands/ |
Current File : //proc/self/root/lib/python2.7/site-packages/pip/commands/download.pyc |
� ��abc @@ 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 d d l m Z d d l m Z m Z d d l m Z d d l m Z e j e � Z d e f d � � YZ d S( i ( t absolute_importN( t CommandError( t FormatControl( t RequirementSet( t RequirementCommand( t cmdoptions( t ensure_dirt normalize_path( t BuildDirectory( t check_path_ownert DownloadCommandc B@ s2 e Z d Z d Z d Z d Z d � Z d � Z RS( sL Download packages from: - PyPI (and other indexes) using requirement specifiers. - VCS project urls. - Local project directories. - Local or remote source archives. pip also supports downloading from "requirements files", which provide an easy way to specify a whole environment to be downloaded. t downloads% %prog [options] <requirement specifier> [package-index-options] ... %prog [options] -r <requirements file> [package-index-options] ... %prog [options] [-e] <vcs project url> ... %prog [options] [-e] <local project path> ... %prog [options] <archive url/path> ...s Download packages.c O@ s t t | � j | | � | j } | j t j � � | j t j � � | j t j � � | j t j � � | j t j � � | j t j � � | j t j � � | j t j � � | j t j � � | j t j � � | j t j � � | j t j � � | j d d d d d d d d d t j d d �| j d d d d d d d d d �| j d d d d d d d d d �| j d d d d d d d d d �| j d d d d d d d d d �t j t j | j � } | j j d | � | j j d | � d S( Ns -ds --dests --destination-dirs --destination-directoryt destt download_dirt metavart dirt defaultt helps Download packages into <dir>.s --platformt platforms` Only download wheels compatible with <platform>. Defaults to the platform of the running system.s --python-versiont python_versions& Only download wheels compatible with Python interpreter version <version>. If not specified, then the current system interpreter minor version is used. A major version (e.g. '2') can be specified to match all minor revs of that major version. A minor version (e.g. '34') can also be specified.s --implementationt implementations� Only download wheels compatible with Python implementation <implementation>, e.g. 'pp', 'jy', 'cp', or 'ip'. If not specified, then the current interpreter implementation is used. Use 'py' to force implementation-agnostic wheels.s --abit abis� Only download wheels compatible with Python abi <abi>, e.g. 'pypy_41'. If not specified, then the current interpreter abi tag is used. Generally you will need to specify --implementation, --platform, and --python-version when using this option.i ( t superR t __init__t cmd_optst add_optionR t constraintst editablet requirementst build_dirt no_depst global_optionst no_binaryt only_binaryt srct pret no_cleant require_hashest ost curdirt Nonet make_option_groupt non_deprecated_index_groupt parsert insert_option_group( t selft argst kwR t index_opts( ( s9 /usr/lib/python2.7/site-packages/pip/commands/download.pyR * sb c C@ sZ t | _ | j r! | j g } n d } t | j | j | j | j g � } t t � t d g � � } | r� | j | k r� t d � � n t j j | j � | _ t | j � | _ t | j � | j | � ��} | j d | d | d | j d | d | j d | j � } | j p| j } | j rWt | j � rWt j d | j � d | _ n t | j d | ��� } t d | d | j d | j d t d | j d | d | j d | j � } | j | | | | | | j! d � | j"