�
,�Re� � �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 ��/builddir/build/BUILDROOT/alt-python311-setuptools-65.6.3-2.el8.x86_64/opt/alt/python311/lib/python3.11/site-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 �