관리-도구
편집 파일: namespaces.cpython-38.pyc
U ���e � @ sF d dl Z d dlmZ d dlZejjZG dd� d�ZG dd� de�ZdS )� N)�logc @ sT e Zd ZdZdd� Zdd� Zdd� ZdZd Zd d� Z dd � Z dd� Zedd� �Z dS )� Installerz -nspkg.pthc C s� | � � }|sd S tj�| �� �\}}|| j7 }| j�|� t� d|� t | j|�}| jrdt |� d S t|d��}|�|� W 5 Q R X d S )Nz Installing %s�wt)�_get_all_ns_packages�os�path�splitext�_get_target� nspkg_ext�outputs�appendr �info�map�_gen_nspkg_line�dry_run�list�open� writelines)�self�nsp�filename�ext�lines�f� r �C/opt/hc_python/lib/python3.8/site-packages/setuptools/namespaces.py�install_namespaces s zInstaller.install_namespacesc C sH t j�| �� �\}}|| j7 }t j�|�s.d S t�d|� t �|� d S )NzRemoving %s) r r r r r �existsr r �remove)r r r r r r �uninstall_namespaces s zInstaller.uninstall_namespacesc C s | j S �N)�target�r r r r r '