z d dl Z d dlZddlmZ ddlmZ d dlZd dlmZ d dlm Z d dl
mZ g dZdd
Z
ddZ G d
de Z G d de ZdS ) N )Command)_cfg_read_utf8_with_fallback)log)DistutilsOptionError)convert_path)config_fileedit_configoption_basesetoptlocalc ` | dk rdS | dk rGt j t j t j d S | dk rDt j dk rdpd}t j t d | d
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~/zpydistutils.cfgz7config_file() type must be 'local', 'global', or 'user')
ospathjoindirname distutils__file__name
expanduserr
ValueError)kinddots k/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/setuptools/command/setopt.pyr r s
w{xw||BGOOI,>??QQQv~~g (S.Bw!!,/HC/H/H/H"I"IJJJ
NPT
U
UU Fc t j d| t j }d |_ t || | D ]-\ }}|,t j d|| | | 4| | s+t j d|| |
| | D ]\ }}|nt j d||| | || | | s+t j d|| | | ut j d|||| |
||| /t j d | |sBt | d
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 ) optionstrs r