Your IP : 13.58.53.112


Current Path : /opt/alt/python35/lib/python3.5/site-packages/setuptools/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib/python3.5/site-packages/setuptools/__pycache__/py31compat.cpython-35.pyc



�Rem�@sddlZddlZddgZyddlmZmZWn4ek
rtddlmZmZdd�ZYnXyddl	m
Z
Wn@ek
r�ddlZddl	Z	Gdd	�d	e�Z
YnXej
Zdejdd�ko�dknZerd
d�ZdS)�N�get_config_vars�get_path)rr)r�get_python_libcCs(|dkrtd��t|dk�S)N�platlib�purelibzName must be purelib or platlib)rr)�
ValueErrorr)�name�r	��/builddir/build/BUILDROOT/alt-python35-setuptools-36.3.0-4.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/setuptools/py31compat.pyrs)�TemporaryDirectoryc@s:eZdZdZdd�Zdd�Zdd�ZdS)	rz�
        Very simple temporary directory context manager.
        Will try to delete afterward, but will also ignore OS and similar
        errors on deletion.
        cCsd|_tj�|_dS)N)r�tempfile�mkdtemp)�selfr	r	r
�__init__ s	zTemporaryDirectory.__init__cCs|jS)N)r)rr	r	r
�	__enter__$szTemporaryDirectory.__enter__cCs9ytj|jd�Wntk
r+YnXd|_dS)NT)�shutil�rmtreer�OSError)r�exctypeZexcvalueZexctracer	r	r
�__exit__'s

zTemporaryDirectory.__exit__N)�__name__�
__module__�__qualname__�__doc__rrrr	r	r	r
rsr���cOs9d|kr)|ddkr)tj|d<tj||�S)NZ
testRunner)�unittestZTextTestRunner�main)�args�kwargsr	r	r
�
unittest_main5s
r!)rr)rr)�sysr�__all__�	sysconfigrr�ImportError�distutils.sysconfigrrrr�objectrr!�version_infoZ_PY31r	r	r	r
�<module>s"

	)

?>