OXIESEC PANEL
- Current Dir:
/
/
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
setuptools
/
command
/
__pycache__
Server IP: 2a02:4780:11:1594:0:ef5:22d7:a
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/14/2024 03:09:02 PM
rwxr-xr-x
📄
__init__.cpython-37.pyc
421 bytes
11/13/2023 09:39:28 PM
rw-r--r--
📄
alias.cpython-37.pyc
2.33 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
bdist_egg.cpython-37.pyc
12.76 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
bdist_rpm.cpython-37.pyc
1.56 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
build_clib.cpython-37.pyc
2.43 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
build_ext.cpython-37.pyc
9.54 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
build_py.cpython-37.pyc
7.58 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
develop.cpython-37.pyc
5.94 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
dist_info.cpython-37.pyc
1.39 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
easy_install.cpython-37.pyc
61.57 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
egg_info.cpython-37.pyc
21.34 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
install.cpython-37.pyc
4.13 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
install_egg_info.cpython-37.pyc
2.4 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
install_lib.cpython-37.pyc
4.05 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
install_scripts.cpython-37.pyc
2.4 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
py36compat.cpython-37.pyc
4.5 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
register.cpython-37.pyc
879 bytes
11/13/2023 09:39:28 PM
rw-r--r--
📄
rotate.cpython-37.pyc
2.47 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
saveopts.cpython-37.pyc
967 bytes
11/13/2023 09:39:28 PM
rw-r--r--
📄
sdist.cpython-37.pyc
6.42 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
setopt.cpython-37.pyc
4.55 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
test.cpython-37.pyc
7.63 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
upload.cpython-37.pyc
852 bytes
11/13/2023 09:39:28 PM
rw-r--r--
📄
upload_docs.cpython-37.pyc
5.98 KB
11/13/2023 09:39:28 PM
rw-r--r--
Editing: setopt.cpython-37.pyc
Close
B �Ͳ���� @ s� d dl mZ d dlmZ d dlmZ d dlZd dlZd dlZd dlm Z dddd gZ ddd�Zdd d�ZG dd� de �Z G dd � d e �ZdS )� )�convert_path)�log)�DistutilsOptionErrorN)�Command�config_file�edit_config�option_base�setopt�localc C sh | dkrdS | dkr,t j�t j�tj�d�S | dkrZt jdkrBdpDd}t j�td | ��S t d | ��dS )z�Get the filename of the distutils, local, global, or per-user config `kind` must be one of "local", "global", or "user" r z setup.cfg�globalz distutils.cfg�user�posix�.� z~/%spydistutils.cfgz7config_file() type must be 'local', 'global', or 'user'N) �os�path�join�dirname� distutils�__file__�name� expanduserr � ValueError)�kind�dot� r ��/builddir/build/BUILDROOT/alt-python37-setuptools-58.3.0-4.el9.x86_64/opt/alt/python37/lib/python3.7/site-packages/setuptools/command/setopt.pyr s Fc C s8 t �d| � t�� }dd� |_|�| g� x�|�� D ]�\}}|dkr^t �d|| � |�|� q4|� |�s�t �d|| � |� |� x||�� D ]p\}}|dkr�t �d||| � |�||� |�|�s�t �d|| � |�|� q�t �d |||| � |� |||� q�W q4W t �d | � |�s4t| d��}|�|� W dQ R X dS )aY Edit a configuration file to include `settings` `settings` is a dictionary of dictionaries or ``None`` values, keyed by command/section name. A ``None`` value means to delete the entire section, while a dictionary lists settings to be changed or deleted in that section. A setting of ``None`` means to delete that setting. zReading configuration from %sc S s | S )Nr )�xr r r �<lambda>* � zedit_config.<locals>.<lambda>NzDeleting section [%s] from %szAdding new section [%s] to %szDeleting %s.%s from %sz#Deleting empty [%s] section from %szSetting %s.%s to %r in %sz Writing %s�w)r �debug�configparser�RawConfigParser�optionxform�read�items�info�remove_section�has_section�add_section� remove_option�options�set�open�write) �filename�settings�dry_run�opts�sectionr, �option�value�fr r r r s: c @ s2 e Zd ZdZdddgZddgZdd� Zd d � ZdS )r z<Abstract base class for commands that mess with config files)z global-config�gz0save options to the site-wide distutils.cfg file)zuser-config�uz7save options to the current user's pydistutils.cfg file)z filename=r7 z-configuration file to use (default=setup.cfg)z global-configzuser-configc C s d | _ d | _d | _d S )N)� global_config�user_configr0 )�selfr r r �initialize_options\ s zoption_base.initialize_optionsc C sv g }| j r|�td�� | jr,|�td�� | jd k rB|�| j� |sT|�td�� t|�dkrjtd|��|\| _d S )Nr r r � z/Must specify only one configuration file option)r: �appendr r; r0 �lenr )r<