OwlCyberSecurity - MANAGER
Edit File: fixtures.cpython-311.pyc
� �� hM � � � d dl Z d dlZd dlZd dlZd dlmZ d dlZd dlZddlm Z m Z ej d� � � Zej d� � � Z ej dd� � � d � � � Zej d� � � Zd� Z ej d� � � d� � � Z ej d� � � d� � � Zej d� � � Zej d� � � Zej d� � � ZdS )� N)�Path� )�contexts�environmentc # �n K � t j � � 5 }| � d|� � t j � � 5 }| � d|� � t j � � 5 dV � ddd� � n# 1 swxY w Y ddd� � n# 1 swxY w Y ddd� � dS # 1 swxY w Y dS )za Override site.USER_BASE and site.USER_SITE with temporary directories in a context. zsite.USER_BASEzsite.USER_SITEN)r �tempdir�setattr�save_user_site_setting)�monkeypatch� user_base� user_sites �j/builddir/build/BUILD/cloudlinux-venv-1.0.8/venv/lib/python3.11/site-packages/setuptools/tests/fixtures.py� user_overrider st � � � � � � � � �y����,�i�8�8�8� � � � � �9���� 0�)�<�<�<��0�2�2� � ����� � � � � � � � � � � ���� � � � � � � � � � � � � � � ���� � � � �� � � � � � � � � � � ���� � � � � � sY �*B*� *B�*A;�/B�;A?�?B�A?�B�B*�B �B*�B �B*�*B.�1B.c # �l K � | � � � 5 }|V � d d d � � d S # 1 swxY w Y d S )N)�as_cwd)�tmpdir�origs r � tmpdir_cwdr s~ � � � � ����� �D�� � � �� � � � � � � � � � � ���� � � � � � s �)�-�-T�session)�autouse�scopec �� � | j j � d� � sdS t j t � � 5 t j � d� � ddd� � dS # 1 swxY w Y dS )z� Workaround pytest-dev/pytest-xdist#376 ``pytest-xdist`` tends to inject '' into ``sys.path``, which may break certain isolation expectations. Remove the entry so the import machinery behaves the same irrespective of xdist. �xdistN� ) �config� pluginmanager� has_plugin� contextlib�suppress� ValueError�sys�path�remove)�requests r �workaround_xdist_376r% ! s� � � �>�'�2�2�7�;�;� ��� � �Z� (� (� � ���������� � � � � � � � � � � ���� � � � � � s � A(�(A,�/A,c � � g d�} t j |t | � � �� � n$# t $ r t j d� � Y nw xY w| dz S )z< Clone the 'sampleproject' and return a path to it. )�git�clonez%https://github.com/pypa/sampleproject)�cwdzUnable to clone sampleproject� sampleproject)� subprocess� check_call�str� Exception�pytest�skip)�tmp_path�cmds r �sample_projectr3 2 sq � � D� C� C�C�5���c�s�8�}�}�5�5�5�5�5��� 5� 5� 5���3�4�4�4�4�4�5�����o�%�%s �#* �A� Ac �� � t j || d� � 5 }t |� d� � d � � }t |� d� � d � � }|r|r||fcd d d � � S t |j j d� � � � � rJ �t j t j dddt |� � t |j j � � g� � t |j j d� � � � � rJ �t |� d� � � � t |� d� � � � fcd d d � � S # 1 swxY w Y d S )N� dist_buildz*.tar.gzz*.whlzbuild/lib/buildz-m�buildz--outdir) r �session_locked_tmp_dir�next�globr r �rootdir�existsr+ �check_outputr! � executabler- )�tmp_path_factoryr$ �tmp�sdist�wheels r �_build_distributionsrB G s� � � � (��!�<� � � C� ��S�X�X�j�)�)�4�0�0���S�X�X�g�&�&��-�-��� "�U� "��5�>� C� C� C� C� C� C� C� C� ���.�0A�B�B�I�I�K�K�K�K�K����N������H�H����&�'�'� ! � � � � ���.�0A�B�B�I�I�K�K�K�K�K��C�H�H�Z�(�(�)�)�4�����0A�0A�+B�+B�B�/C� C� C� C� C� C� C� C� C� C� C� C���� C� C� C� C� C� Cs �AE&�2C'E&�&E*�-E*)r c �� � t j d� � }|r@t j � |� � r!t |� � � � � S t | |� � \ }}|S )N�PRE_BUILT_SETUPTOOLS_SDIST��os�getenvr"