î
½1kdû  ã               @   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__© úB/var/www/pythonscrapper/code/venv/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.6zƒDEPRECATION: '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   