Hacked By AnonymousFox
o
~�Re � @ sF d dl Z d dlmZ d dlZejjZG dd� d�ZG dd� de�ZdS )� N)�logc @ sX e Zd ZdZdd� Zdd� Zdd� ZdZ d Z d
d� Z dd
� Z
dd� Zedd� �Z
dS )� Installerz
-nspkg.pthc C s� | � � }|sd S tj�| �� �\}}|| j7 }| j�|� t� d|� t
| j|�}| jr2t
|� d S t|d��}|�|� W d � d S 1 sHw Y 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 ��/builddir/build/BUILDROOT/alt-python310-setuptools-58.3.0-2.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/setuptools/namespaces.py�install_namespaces
s
"�zInstaller.install_namespacesc C sH t j�| �� �\}}|| j7 }t j�|�sd 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 � | j S �N)�target�r r r r r '