U
    >h                     @   s$   d dl mZmZ G dd deZdS )    )edit_configoption_basec                   @   s   e Zd ZdZdZdd ZdS )saveoptsz#Save command-line options to a filez7save supplied options to setup.cfg or other config filec                 C   sh   | j }i }|jD ]B}|dkrq|| D ]$\}\}}|dkr,|||i |< q,qt| j|| j d S )Nr   zcommand line)distributioncommand_optionsget_option_dictitems
setdefaultr   filenamedry_run)selfdistsettingscmdoptsrcval r   ?/tmp/pip-unpacked-wheel-sym_ama1/setuptools/command/saveopts.pyrun	   s    
zsaveopts.runN)__name__
__module____qualname____doc__descriptionr   r   r   r   r   r      s   r   N)Zsetuptools.command.setoptr   r   r   r   r   r   r   <module>   s   