�
���c� � �R � d dl mc mZ d dlZd dlmZ G d� dej � � ZdS )� N)�SetuptoolsDeprecationWarningc � � e Zd ZdZd� Zd� 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 � � t j dt � � | � d� � t j � | � � d S )Nzjbdist_rpm is deprecated and will be removed in a future version. Use bdist_wheel (wheel packages) instead.�egg_info)�warnings�warnr �run_command�origr �run)�selfs �>/usr/lib/python3/dist-packages/setuptools/command/bdist_rpm.pyr z
bdist_rpm.run sQ � ��
�
A�(�
�
�
�
����$�$�$�����4� � � � � � c �\ � t j � | � � }d� |D � � }|S )Nc �b � g | ],}|� d d� � � dd� � ��-S )zsetup.py install z5setup.py install --single-version-externally-managed z%setupz&%setup -n %{name}-%{unmangled_version})�replace)�.0�lines r �
<listcomp>z-bdist_rpm._make_spec_file.<locals>.<listcomp> sU � �
�
�
� �
�L�L�#�G�
�
� �g��8�� �
�
�
r )r r �_make_spec_file)r
�specs r r zbdist_rpm._make_spec_file s> |