관리-도구
편집 파일: ref.cpython-38.pyc
U *�ej � @ s� d Z ddlmZ ddlZddlmZmZ ddlmZ ddl m Z mZmZ ddl mZmZ ddlmZmZmZ G d d � d �ZG dd� d�ZG d d� ded�ZG dd� deed�ZG dd� de�ZG dd� dee�Zdddddd gZdS )aG Virtual environments in the traditional sense are built as reference to the host python. This file allows declarative references to elements on the file system, allowing our system to automatically detect what modes it can support given the constraints: e.g. can the file system symlink, can the files be read, executed, etc. � )�annotationsN)�ABCMeta�abstractmethod)�OrderedDict)�S_IXGRP�S_IXOTH�S_IXUSR)�fs_is_case_sensitive�fs_supports_symlink)�copy�make_exe�symlinkc @ s e Zd ZdZdZdZdS )�RefMust�NAr r N)�__name__� __module__�__qualname__r �COPY�SYMLINK� r r �Z/opt/hc_python/lib/python3.8/site-packages/virtualenv/create/via_global_ref/builtin/ref.pyr s r c @ s e Zd ZdZdZdZdS )�RefWhen�ANYr r N)r r r r r r r r r r r s r c @ sz e Zd ZdZe� Ze� Zej e jfdd�dd�Zdd�dd�Z ed d � �Zedd� �Zed d� �Zedd� �Zdd� ZdS )�PathRefzABase class that checks if a file reference can be symlink/copied.�None��returnc C sp || _ || _|| _z|�� | _W n tk r: d| _Y nX | jrFd nd| _| jrVd nd| _| jrfd nd| _d S �NF)�must�when�src�exists�OSError� _can_read� _can_copy�_can_symlink��selfr r r r r r �__init__$ s zPathRef.__init__�strc C s | j j� d| j� d�S )N�(src=�))� __class__r r �r'