ok

Mini Shell

Direktori : /opt/alt/python33/lib/python3.3/site-packages/setuptools/command/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib/python3.3/site-packages/setuptools/command/__pycache__/setopt.cpython-33.pyc

�
�/{Y�c@s�ddlZddlZddlmZddlmZddlmZddlTdddd	gZd
dd�Z	ddd�ZGd
d�de�ZGdd	�d	e�Z
dS(iN(uCommand(uconvert_path(ulog(u*uconfig_fileuedit_configuoption_baseusetoptulocalcCs�|dkrdS|dkr>tjjtjjtj�d�S|dkrtjdkr_dpbd}tjjtd	|��St	d
|��dS(u�Get the filename of the distutils, local, global, or per-user config

    `kind` must be one of "local", "global", or "user"
    ulocalu	setup.cfguglobalu
distutils.cfguuseruposixu.uu~/%spydistutils.cfgu7config_file() type must be 'local', 'global', or 'user'N(
uosupathujoinudirnameu	distutilsu__file__unameu
expanduseruconvert_pathu
ValueError(ukindudot((u2/tmp/pip-jy811g-build/setuptools/command/setopt.pyuconfig_file
s	c
Cs�ddlm}tjd|�|j�}|j|g�x+|j�D]\}}|dkr�tjd||�|j	|�qI|j
|�s�tjd||�|j|�nx�|j�D]�\}}|dkr6tjd|||�|j||�|j
|�sbtjd||�|j	|�qbq�tjd||||�|j|||�q�WqIWtjd	|�|s�t|d
�}	|j|	�|	j�ndS(uYEdit 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.
    i(uConfigParseruReading configuration from %suDeleting section [%s] from %suAdding new section [%s] to %suDeleting %s.%s from %su#Deleting empty [%s] section from %suSetting %s.%s to %r in %su
Writing %suwN(usetuptools.compatuConfigParserulogudebuguRawConfigParserureaduitemsuNoneuinfouremove_sectionuhas_sectionuadd_sectionu
remove_optionuoptionsusetuopenuwriteuclose(
ufilenameusettingsudry_runuConfigParseruoptsusectionuoptionsuoptionuvalueuf((u2/tmp/pip-jy811g-build/setuptools/command/setopt.pyuedit_config*s:	
	

cBsM|EeZdZdZdddgZddgZdd�Zd
d�ZdS(uoption_baseu<Abstract base class for commands that mess with config filesu
global-configugu0save options to the site-wide distutils.cfg fileuuser-configuuu7save options to the current user's pydistutils.cfg fileu	filename=ufu-configuration file to use (default=setup.cfg)cCsd|_d|_d|_dS(N(uNoneu
global_configuuser_configufilename(uself((u2/tmp/pip-jy811g-build/setuptools/command/setopt.pyuinitialize_optionscs		uoption_base.initialize_optionscCs�g}|jr%|jtd��n|jrD|jtd��n|jdk	rf|j|j�n|s�|jtd��nt|�dkr�td|��n|\|_dS(Nuglobaluuserulocaliu/Must specify only one configuration file option(u
global_configuappenduconfig_fileuuser_configufilenameuNoneulenuDistutilsOptionError(uselfu	filenames((u2/tmp/pip-jy811g-build/setuptools/command/setopt.pyufinalize_optionshs		uoption_base.finalize_optionsN(u
global-configugu0save options to the site-wide distutils.cfg file(uuser-configuuu7save options to the current user's pydistutils.cfg file(u	filename=ufu-configuration file to use (default=setup.cfg)(u__name__u
__module__u__qualname__u__doc__uuser_optionsuboolean_optionsuinitialize_optionsufinalize_options(u
__locals__((u2/tmp/pip-jy811g-build/setuptools/command/setopt.pyuoption_baseSs	cBsm|EeZdZdZdZddddgejZejdgZdd�Zdd�Z	dd�Z
dS(usetoptu#Save command-line options to a fileu1set an option in setup.cfg or another config fileucommand=ucucommand to set an option foruoption=uou
option to setu
set-value=usuvalue of the optionuremoveururemove (unset) the valuecCs5tj|�d|_d|_d|_d|_dS(N(uoption_baseuinitialize_optionsuNoneucommanduoptionu	set_valueuremove(uself((u2/tmp/pip-jy811g-build/setuptools/command/setopt.pyuinitialize_options�s

			usetopt.initialize_optionscCsftj|�|jdks+|jdkr:td��n|jdkrb|jrbtd��ndS(Nu%Must specify --command *and* --optionu$Must specify --set-value or --remove(uoption_baseufinalize_optionsucommanduNoneuoptionuDistutilsOptionErroru	set_valueuremove(uself((u2/tmp/pip-jy811g-build/setuptools/command/setopt.pyufinalize_options�s

usetopt.finalize_optionscCs=t|jii|j|jjdd�6|j6|j�dS(Nu-u_(uedit_configufilenameu	set_valueuoptionureplaceucommandudry_run(uself((u2/tmp/pip-jy811g-build/setuptools/command/setopt.pyurun�s	#u
setopt.runN(ucommand=ucucommand to set an option for(uoption=uou
option to set(u
set-value=usuvalue of the option(uremoveururemove (unset) the value(u__name__u
__module__u__qualname__u__doc__udescriptionuoption_baseuuser_optionsuboolean_optionsuinitialize_optionsufinalize_optionsurun(u
__locals__((u2/tmp/pip-jy811g-build/setuptools/command/setopt.pyusetopt|s
F(u	distutilsuosu
setuptoolsuCommandudistutils.utiluconvert_pathulogudistutils.errorsu__all__uconfig_fileuFalseuedit_configuoption_baseusetopt(((u2/tmp/pip-jy811g-build/setuptools/command/setopt.pyu<module>s
 ))

Zerion Mini Shell 1.0