� ,�Re���R�ddlmcmZddlZddlmZGd�dej��ZdS)�N)�SetuptoolsDeprecationWarningc��eZdZdZd�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��tjdt��|�d��tj�|��dS)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.runsQ��� � A� (� � � � ����$�$�$� ����4� � � � � �c�\�tj�|��}d�|D��}|S)Nc�b�g|],}|�dd���dd����-S)zsetup.py install z5setup.py install --single-version-externally-managed z%setupz&%setup -n %{name}-%{unmangled_version})�replace)�.0�lines r� z-bdist_rpm._make_spec_file..sU��  �  �  �� �L�L�#�G� � ��g��8���  �  �  r)r r�_make_spec_file)r �specs rrzbdist_rpm._make_spec_files>���~�-�-�d�3�3��  �  ��  �  �  ��� rN)�__name__� __module__� __qualname__�__doc__r r�rrrrs<�������� !� !� !� � � � � rr)�distutils.command.bdist_rpm�commandrr r� setuptoolsrrrr�r sq��*�*�*�*�*�*�*�*�*�����3�3�3�3�3�3�!�!�!�!�!���!�!�!�!�!r