관리-도구
편집 파일: namespaces.cpython-311.pyc
� N�Dg � �p � d dl Z d dlmZ d dlZej j Z G d� d� � Z G d� de� � ZdS )� N)�logc �^ � e Zd ZdZd� Zd� Zd� Zd� ZdZ dZ d� Z d � Zd � Ze d� � � ZdS ) � Installerz -nspkg.pthc � � | � � � }|sd S | � � � }| j � |� � t j d|� � t | j |� � }| j rt |� � d S t |d� � 5 }|� |� � d d d � � d S # 1 swxY w Y d S )Nz Installing %s�wt)�_get_all_ns_packages�_get_nspkg_file�outputs�appendr �info�map�_gen_nspkg_line�dry_run�list�open� writelines)�self�nsp�filename�lines�fs �u/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/setuptools/namespaces.py�install_namespaceszInstaller.install_namespaces s � ��'�'�)�)��� ��F��'�'�)�)������H�%�%�%����(�+�+�+��D�(�#�.�.���<� ���K�K�K��F� �(�D� !� !� �Q� �L�L����� � � � � � � � � � � � ���� � � � � � s �B<�<C �C c �� � | � � � }t j � |� � sd S t j d|� � t j |� � d S )NzRemoving %s)r �os�path�existsr r �remove)r r s r �uninstall_namespaceszInstaller.uninstall_namespaces sV � ��'�'�)�)���w�~�~�h�'�'� ��F�����)�)�)� � �(������ c �~ � t j � | � � � � � \ }}|| j z S �N)r r �splitext�_get_target� nspkg_ext)r r �_s r r zInstaller._get_nspkg_file$ s4 � ��g�&�&�t�'7�'7�'9�'9�:�:���!��$�.�(�(r c � � | j S r"