
 X                 @   s   d  d l  Z  d  d l m Z m Z d  d l m Z m Z d  d l m Z d  d l	 m
 Z
 d  d l m Z Gd d   d e  Z d S)	    N)build_prefix
src_prefix)display_path
backup_dir)logger)InstallationError)InstallCommandc                   sR   e  Z d  Z d Z d Z d Z d Z d Z   f d d   Z   f d d	   Z	   S)
BundleCommandz9Create pybundles (archives containing multiple packages).bundlez:
      %prog [options] <bundle name>.pybundle <package>...zDEPRECATED. Create pybundles.Tc                s   t  t |   j | |   |  j j d  } t t d  | _ |  j j d  } t t d  | _ |  j j	 i | j | j
 6| j | j
 6  d  S)Nz--buildz-bundlez--src)superr	   __init__parser
get_optionr   r   defaultr   set_defaultsdest)selfargskw	build_optsrc_opt)	__class__ >/home/ubuntu/projects/ifolica/build/pip/pip/commands/bundle.pyr      s    zBundleCommand.__init__c                s   t  j d d  | s% t d   n  d | _ t  j d t | j  t | j  f  | j d  |  _	 t
 t |   j | |  } | S)Nz1.6zDEPRECATION: 'pip bundle' and support for installing from *.pybundle files is deprecated. See https://github.com/pypa/pip/pull/1046zYou must give a bundle filenameTzBPutting temporary build files in %s and source/develop files in %sr   )r   
deprecatedr   ignore_installednotifyr   	build_dirsrc_dirpopbundle_filenamer   r	   run)r   optionsr   requirement_set)r   r   r   r!      s    		 zBundleCommand.run)
__name__
__module____qualname____doc__nameusagesummaryr
   r   r!   r   r   )r   r   r	   	   s   r	   )textwrappip.locationsr   r   pip.utilr   r   pip.logr   pip.exceptionsr   pip.commands.installr   r	   r   r   r   r   <module>   s   