= d dl mZ d dlmZ d dlmZ d dlZd dlZd dlZd dlm Z g dZ
ddZdd
Z G d de Z
G d
de
ZdS ) )convert_path)log)DistutilsOptionErrorN)Command)config_fileedit_configoption_basesetoptlocalc ^ | dk rdS | dk rGt j t j t j d S | dk rCt j dk rdpd}t j t d |z S t d
| )zGet the filename of the distutils, local, global, or per-user config
`kind` must be one of "local", "global", or "user"
r z setup.cfgglobalz
distutils.cfguserposix. z~/%spydistutils.cfgz7config_file() type must be 'local', 'global', or 'user')
ospathjoindirname distutils__file__name
expanduserr
ValueError)kinddots /builddir/build/BUILDROOT/alt-python311-setuptools-65.6.3-2.el9.x86_64/opt/alt/python311/lib/python3.11/site-packages/setuptools/command/setopt.pyr r
s
w{xw||GOOI.//
v~~g (S.Bw!!,/Ds/J"K"KLLL
A4 Fc t j d| t j }d |_ | | g | D ]-\ }}|,t j d|| | | 4| | s+t j d|| |
| | D ]\ }}|nt j d||| | || | | s+t j d|| | | ut j d|||| |
||| /t j d | |s@t | d
5 }| | ddd dS # 1 swxY w Y dS 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 N )xs r