Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
setuptools
/
_distutils
/
tests
/
__pycache__
[ HOME ]
Exec
Submit
support.cpython-311.pyc
� �� h � �� � d Z ddlZddlZddlZddlZddlZddlZddlZddlm Z ddl Z ddlmZ e j � d� � G d� d� � � � Z G d� d � � Zd � Zd� Zd� Zd � ZdS )z&Support code for distutils test cases.� N)�Distribution)�always_iterable�distutils_managed_tempdirc �( � e Zd ZdZd� Zdd�Zd d�ZdS ) �TempdirManagerzI Mix-in class that handles temporary directories for test cases. c �` � t j � � }| j � |� � |S )zjCreate a temporary directory that will be cleaned up. Returns the path of the directory. )�tempfile�mkdtemp�tempdirs�append)�self�ds �t/builddir/build/BUILD/cloudlinux-venv-1.0.8/venv/lib/python3.11/site-packages/setuptools/_distutils/tests/support.pyr zTempdirManager.mkdtemp s- � � ������ ���Q������ �xxxc �f � t j t |� � � � |d�� � dS )zVWrites a file in the given path. path can be a string or a sequence. zutf-8)�encodingN)�pathlib�Pathr � write_text)r �path�contents r � write_filezTempdirManager.write_file s2 � � ��o�d�+�+�,�7�7��'�7�R�R�R�R�Rr �fooc � � | � � � }t j � ||� � }t j |� � t |�� � }||fS )a Will generate a test environment. This function creates: - a Distribution instance using keywords - a temporary directory with a package structure It returns the package directory and the distribution instance. )�attrs)r �osr �join�mkdirr )r �pkg_name�kw�tmp_dir�pkg_dir�dists r �create_distzTempdirManager.create_dist&