File: //usr/local/lib/python3.7/site-packages/setuptools/command/__pycache__/bdist_rpm.cpython-37.pyc
B
N��gI � @ s4 d dl m mZ ddlmZ G dd� dej�ZdS )� N� )�SetuptoolsDeprecationWarningc @ s e Zd ZdZdd� Zdd� ZdS )� 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, t jddddd� | �d� tj�| � d S )NzDeprecated commandz�
bdist_rpm is deprecated and will be removed in a future version.
Use bdist_wheel (wheel packages) instead.
z.https://github.com/pypa/setuptools/issues/1988)i� �
� )Zsee_urlZdue_date�egg_info)r �emit�run_command�origr �run)�self� r
�@/tmp/pip-unpacked-wheel-yrlplx0q/setuptools/command/bdist_rpm.pyr s
z
bdist_rpm.runc C s t j�| �}dd� |D �}|S )Nc S s g | ]}|� d d�� dd��qS )zsetup.py install z5setup.py install --single-version-externally-managed z%setupz&%setup -n %{name}-%{unmangled_version})�replace)�.0�liner
r
r �
<listcomp>"