3
ØLôYm  ã               @   sØ   d dl Z d dlZddgZyd dlmZmZ W n, ek
rX   d dlmZmZ dd„ ZY nX yd dl	m
Z
 W n4 ek
rž   d dlZd dl	Z	G dd	„ d	eƒZ
Y nX ejZde jdd…   koÂdk n  ZerÔdd„ ZdS )é    NÚget_config_varsÚget_path)r   r   )r   Úget_python_libc             C   s   | dkrt dƒ‚t| dkƒS )NÚplatlibÚpurelibzName must be purelib or platlib)r   r   )Ú
ValueErrorr   )Úname© r	   úo/private/var/folders/7d/20zwc49s3kn54d3vgq8bd4640000gn/T/pip-build-an2lx5zf/setuptools/setuptools/py31compat.pyr      s    )ÚTemporaryDirectoryc               @   s(   e Zd ZdZdd„ Zdd„ Zdd„ ZdS )	r   z¨
        Very simple temporary directory context manager.
        Will try to delete afterward, but will also ignore OS and similar
        errors on deletion.
        c             C   s   d | _ tjƒ | _ d S )N)r   ÚtempfileÚmkdtemp)Úselfr	   r	   r
   Ú__init__    s    zTemporaryDirectory.__init__c             C   s   | j S )N)r   )r   r	   r	   r
   Ú	__enter__$   s    zTemporaryDirectory.__enter__c             C   s2   yt j| jdƒ W n tk
r&   Y nX d | _d S )NT)ÚshutilÚrmtreer   ÚOSError)r   ÚexctypeZexcvalueZexctracer	   r	   r
   Ú__exit__'   s
    zTemporaryDirectory.__exit__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r	   r	   r	   r
   r      s   r   é   é   é   c              O   s*   d|kr|d d krt j|d< t j| |ŽS )NZ
testRunner)ÚunittestZTextTestRunnerÚmain)ÚargsÚkwargsr	   r	   r
   Úunittest_main5   s    
r!   )r   r   )r   r   )Úsysr   Ú__all__Ú	sysconfigr   r   ÚImportErrorÚdistutils.sysconfigr   r   r   r   Úobjectr   r!   Úversion_infoZ_PY31r	   r	   r	   r
   Ú<module>   s"   "