Eo_| Z d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlmZ d dl Z d dlZd dlZd dl mZ ddlmZmZ ddlmZ ej d Zej d Z ej d d d Zej d Zej d Zd Z ej d d Z ej d d Zej d Zej d Zej d Zd Z d Z!d Z"d Z#dde!dddfdZ$ej d Z%dS ) N)Path) safer_name )contextsenvironment)DALSc # 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 tempdirsetattrsave_user_site_setting)monkeypatch user_base user_sites k/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/setuptools/tests/fixtures.py user_overrider st y,i888 9 0)<<<022 sY *B* *B*A;/B;A??BA?BB*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)tmpdirorigs r tmpdir_cwdr " s~ D )--Tsession)autousescopec | 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 contextlibsuppress ValueErrorsyspathremove)requests r workaround_xdist_376r) ( s >'227;; 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. )gitclonez%https://github.com/pypa/sampleproject)cwdzUnable to clone sampleproject sampleproject) subprocess check_callstr Exceptionpytestskip)tmp_pathcmds r sample_projectr7 9 sq D C CC5cs8}}55555 5 5 53444445o%%s #* A Ac # l K t j | 5 d V d d d d S # 1 swxY w Y d S r )r&