Current File : //usr/lib/python3/dist-packages/setuptools/command/__pycache__/bdist_rpm.cpython-312.pyc |
�
_�d � �L � d dl mc mZ ddlmZ G d� dej � Zy)� N� )�SetuptoolsDeprecationWarningc � � e Zd ZdZd� Zd� Zy)� 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 dddd�� | j d� t j j | � y )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� �
� )�see_url�due_date�egg_info)r �emit�run_command�origr �run)�selfs �>/usr/lib/python3/dist-packages/setuptools/command/bdist_rpm.pyr z
bdist_rpm.run sC � �$�)�)� �
� E�#�
�
����$������4� � c � � t j j | � }|D �cg c]$ }|j dd� j dd� ��& }}|S c c}w )Nzsetup.py install z5setup.py install --single-version-externally-managed z%setupz&%setup -n %{name}-%{unmangled_version})r r �_make_spec_file�replace)r �spec�lines r r zbdist_rpm._make_spec_file sg � ��~�~�-�-�d�3�� �
�
�
�L�L�#�G�
� �g�h� H�I�
J�
��
� ���
s �)AN)�__name__�
__module__�__qualname__�__doc__r r � r r r r s � ��!� r r )�distutils.command.bdist_rpm�commandr r �warningsr r r r �<module>r! s �� *� *� 3�"���� "r