관리-도구
편집 파일: api.cpython-311.pyc
� �܋fT � � � d dl Z d dlZd dlmZ d dlmZ d dlmZ ddlm Z m Z G d� de � � Z G d � d e e�� � Zdd gZ dS )� N)�ABCMeta)�Path)�fs_supports_symlink� )�Creator�CreatorMetac �J � � e Zd Z� fd�Zed� � � Zed� � � Z� xZS )�ViaGlobalRefMetac � �� t � � � � � d | _ d | _ t � � s d| _ d S d S )Nz(the filesystem does not supports symlink)�super�__init__� copy_error� symlink_errorr ��self� __class__s ��u/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/virtualenv/create/via_global_ref/api.pyr zViaGlobalRefMeta.__init__ sQ �� � �����������!���"�$�$� L�!K�D���� L� L� c � � | j S �N)r �r s r �can_copyzViaGlobalRefMeta.can_copy s � ��?�"�"r c � � | j S r )r r s r �can_symlinkzViaGlobalRefMeta.can_symlink s � ��%�%�%r )�__name__� __module__�__qualname__r �propertyr r � __classcell__�r s @r r r ss �� � � � � �L� L� L� L� L� �#� #� �X�#� �&� &� �X�&� &� &� &� &r r c �t � � e Zd Z� fd�Zed� � � Ze� fd�� � Zd� Zd� Z d� Z � fd�Z� fd�Z� xZ S ) �ViaGlobalRefApic � �� t � � � ||� � | � |� � | _ |j | _ d S r )r r �_should_symlink�symlinks�system_site�enable_system_site_package)r �options�interpreterr s �r r zViaGlobalRefApi.__init__ sC �� � ������+�.�.�.��,�,�W�5�5�� �*1�*=��'�'�'r c � � t | dd� � t | dd� � }}| � d� � | � d� � }}dD ]/}||k r|nd }||k r|nd }|du r|du r dS |du r dS |du r dS �0dS )N�copiesFr% )�clizenv var�file�defaultT)�getattr� get_source)r( r+ r% �copy_src�sym_src�level�s_opt�c_opts r r$ zViaGlobalRefApi._should_symlink"