3
˜;p_„  ã               @   s"   d dl jjZG dd„ dejƒZdS )é    Nc               @   s    e Zd ZdZdd„ Zdd„ ZdS )Ú	bdist_rpma  
    Override the default bdist_rpm behavior to do the following:

    1. Run egg_info to ensure the name and version are properly calculated.
    2. Always run 'install' using --single-version-externally-managed to
       disable eggs in RPM distributions.
    c             C   s   | j dƒ tjj| ƒ d S )NÚegg_info)Úrun_commandÚorigr   Úrun)Úself© r   úD/tmp/pip-install-ofl94hr3/setuptools/setuptools/command/bdist_rpm.pyr      s    
zbdist_rpm.runc             C   s   t jj| ƒ}dd„ |D ƒ}|S )Nc             S   s    g | ]}|j d dƒj ddƒ‘qS )zsetup.py install z5setup.py install --single-version-externally-managed z%setupz&%setup -n %{name}-%{unmangled_version})Úreplace)Ú.0Úliner   r   r	   ú
<listcomp>   s   z-bdist_rpm._make_spec_file.<locals>.<listcomp>)r   r   Ú_make_spec_file)r   Úspecr   r   r	   r      s    zbdist_rpm._make_spec_fileN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r	   r      s   r   )Zdistutils.command.bdist_rpmÚcommandr   r   r   r   r   r	   Ú<module>   s   