ó
^êWc           @   s   d  d l  Z d  d l Z d  d l m Z d  d l m Z d  d l Z d  d l Z e j	 j
 e  Z e j	 j e d  Z d   Z d   Z d   Z d S(   i˙˙˙˙N(   t	   WheelFile(   t   mkdtemps   test-1.0-py2.py3-none-win32.whlc          G   s   t  j j t  j j |     S(   N(   t   ost   patht   existst   join(   R   (    (    sj   /private/var/folders/3n/6h2rwf155rn1m71wwyxn79n80000gn/T/pip-build-IcAT_k/wheel/wheel/test/test_install.pyt   check   s    c          C   s  t    }  d   } t t d | } | j |  s9 t  z2i  } x8 d D]0 } t j j |  |  | | <t j | |  qI W| j	 d |  t
 t j | d   d	 k s² t  t | d d
  sË t  t | d d d  sç t  t | d d d  st  t | d d  st  t | d d  s5t  t | d d  sNt  t | d d d  sjt  Wd  t j |   Xd  S(   Nc           S   s   t  t j j    d g S(   Nt   py3t   nonet   win32(   R   s   nones   win32(   t   listt   wheelt
   pep425tagst   get_supported(    (    (    sj   /private/var/folders/3n/6h2rwf155rn1m71wwyxn79n80000gn/T/pip-build-IcAT_k/wheel/wheel/test/test_install.pyR      s    t   contextt   purelibt   platlibt   scriptst   headerst   datat	   overridesi    s	   hello.pydt   hellos   hello.pys   __init__.pys	   hello.dats   hello.shs   test-1.0.dist-infot   RECORD(   s   purelibs   platlibs   scriptss   headerss   data(   R   R    t	   TESTWHEELt   supports_current_pythont   AssertionErrorR   R   R   t   mkdirt   installt   lent   listdirR   t   shutilt   rmtree(   t   tempdirR   t   whlt   locst   key(    (    sj   /private/var/folders/3n/6h2rwf155rn1m71wwyxn79n80000gn/T/pip-build-IcAT_k/wheel/wheel/test/test_install.pyt   test_install   s&    		% c           C   s#   t  j j t g d t d t d S(   s*   Slightly improve coverage of wheel.installt   forcet   dry_runN(   R   t   toolR   R   t   True(    (    (    sj   /private/var/folders/3n/6h2rwf155rn1m71wwyxn79n80000gn/T/pip-build-IcAT_k/wheel/wheel/test/test_install.pyt   test_install_tool3   s    (   t
   wheel.toolR   t   wheel.pep425tagst   wheel.installR    t   tempfileR   R   R   R   t   dirnamet   __file__t   THISDIRR   R   R   R$   R)   (    (    (    sj   /private/var/folders/3n/6h2rwf155rn1m71wwyxn79n80000gn/T/pip-build-IcAT_k/wheel/wheel/test/test_install.pyt   <module>   s   		