
þîhª  ã               @   s
  d  Z  d d l Z d Z d d „  Z e j d d … e k  rn e d j e e j d d … ƒ e e ƒ ƒ ƒ ‚ d d l Z d d	 l m	 Z	 d d
 l
 m Z e e e ƒ ƒ Z Gd d „  d ƒ Z e j j d e ƒ  ƒ e d k sí t d ƒ ‚ e j d d d d d ƒd S)z¦Execute exactly this copy of pip, within a different environment.

This file is named as it is, to ensure that this module can't be imported via
an import statement.
é    Né   é	   c             C   s   d j  d d „  |  Dƒ ƒ S)NÚ.c             s   s   |  ] } t  | ƒ Vq d  S)N)Ústr)Ú.0Úv© r   ú1/tmp/pip-build-zijwfla7/pip/pip/__pip-runner__.pyú	<genexpr>   s    zversion_str.<locals>.<genexpr>)Újoin)Úversionr   r   r	   Úversion_str   s    r   é   z?This version of pip does not support python {} (requires >={}).)Ú
PathFinder)Údirnamec               @   s(   e  Z d  Z e d d d d „ ƒ Z d S)ÚPipImportRedirectingFinderNc             C   sD   | d k r d  St  j | t g | ƒ } | s@ t t | f ƒ ‚ | S)NÚpip)r   Ú	find_specÚPIP_SOURCES_ROOTÚAssertionError)ÚselfÚfullnameÚpathÚtargetÚspecr   r   r	   r   %   s
    z$PipImportRedirectingFinder.find_spec)Ú__name__Ú
__module__Ú__qualname__Úclassmethodr   r   r   r   r	   r   $   s   r   Ú__main__z1Cannot run __pip-runner__.py as a non-main moduler   Úrun_nameÚ	alter_sysT)r   r   )Ú__doc__ÚsysZPYTHON_REQUIRESr   Úversion_infoÚ
SystemExitÚformatZrunpyÚimportlib.machineryr   Úos.pathr   Ú__file__r   r   Ú	meta_pathÚinsertr   r   Ú
run_moduler   r   r   r	   Ú<module>   s   (