Ñò QÜjZc @ s¬ d d k Z d d k Z d d k l Z d d k l Z d d k l Z d d k Td d d d g Z d d „ Z e d „ Z d e f d „ ƒ YZ d e f d „ ƒ YZ d S( iÿÿÿÿN( t Command( t convert_path( t log( t *t config_filet edit_configt option_baset setoptt localc C sš | d j o d S| d j o# t i i t i i t i ƒ d ƒ S| d j o8 t i d j o d p d } t i i t d | ƒ ƒ St d | ƒ ‚ d S( s Get the filename of the distutils, local, global, or per-user config `kind` must be one of "local", "global", or "user" R s setup.cfgt globals distutils.cfgt usert posixt .t s ~/%spydistutils.cfgs7 config_file() type must be 'local', 'global', or 'user'N( t ost patht joint dirnamet distutilst __file__t namet expanduserR t ValueError( t kindt dot( ( s= /usr/lib/python2.6/site-packages/setuptools/command/setopt.pyR s c C s´ d d k l } t i d | ƒ | ƒ } | i | g ƒ x3| i ƒ D]%\ } } | d j o$ t i d | | ƒ | i | ƒ qF | i | ƒ p$ t i d | | ƒ | i | ƒ n x± | i ƒ D]£ \ } } | d j o^ t i d | | | ƒ | i | | ƒ | i | ƒ p$ t i d | | ƒ | i | ƒ qgqÄ t i d | | | | ƒ | i | | | ƒ qÄ WqF Wt i d | ƒ | p* t | d ƒ } | i | ƒ | i ƒ n d S( sY 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. iÿÿÿÿ( t RawConfigParsers Reading configuration from %ss Deleting section [%s] from %ss Adding new section [%s] to %ss Deleting %s.%s from %ss# Deleting empty [%s] section from %ss Setting %s.%s to %r in %ss Writing %st wN( t ConfigParserR R t debugt readt itemst Nonet infot remove_sectiont has_sectiont add_sectiont remove_optiont optionst sett opent writet close( t filenamet settingst dry_runR t optst sectionR% t optiont valuet f( ( s= /usr/lib/python2.6/site-packages/setuptools/command/setopt.pyR * s> c B s; e Z d Z d d d g Z d d g Z d „ Z d „ Z RS( s<