ó
OyTLc           @   sX   d  d l  Z  d  d l Z d  d l m Z d  d l m Z m Z d e f d „  ƒ  YZ d S(   iÿÿÿÿN(   t   Command(   t   edit_configt   option_baset   saveoptsc           B   s   e  Z d  Z d Z d „  Z RS(   s#   Save command-line options to a files7   save supplied options to setup.cfg or other config filec         C   s¬   |  j  } | j j ƒ  } i  } xq | D]i } | d k r= q% n  xN | j | ƒ j ƒ  D]7 \ } \ } } | d k rS | | j | i  ƒ | <qS qS Wq% Wt |  j | |  j ƒ d  S(   NR   s   command line(	   t   distributiont   command_optionst   keyst   get_option_dictt   itemst
   setdefaultR   t   filenamet   dry_run(   t   selft   distt   commandst   settingst   cmdt   optt   srct   val(    (    s?   /usr/lib/python2.7/dist-packages/setuptools/command/saveopts.pyt   run
   s    	(!(   t   __name__t
   __module__t   __doc__t   descriptionR   (    (    (    s?   /usr/lib/python2.7/dist-packages/setuptools/command/saveopts.pyR      s   (   t	   distutilst   ost
   setuptoolsR    t   setuptools.command.setoptR   R   R   (    (    (    s?   /usr/lib/python2.7/dist-packages/setuptools/command/saveopts.pyt   <module>   s   