B
    ãUvg’  ã               @   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   sp   | j }i }xP|jD ]F}|dkr qx6| |¡ ¡ D ]$\}\}}|dkr0|| |i ¡|< q0W qW 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   úC/tmp/pip-install-r_9ig3yj/setuptools/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   