HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/setuptools/command/__pycache__/bdist_rpm.cpython-310.pyc
o

�_�a��@s<ddlmmZddlZddlmZGdd�dej�ZdS)�N)�SetuptoolsDeprecationWarningc@s eZdZdZdd�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.
    cCs&t�dt�|�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)�self�r�>/usr/lib/python3/dist-packages/setuptools/command/bdist_rpm.pyr	s�
z
bdist_rpm.runcCstj�|�}dd�|D�}|S)NcSs g|]}|�dd��dd��qS)zsetup.py install z5setup.py install --single-version-externally-managed z%setupz&%setup -n %{name}-%{unmangled_version})�replace)�.0�linerrr�
<listcomp>s����z-bdist_rpm._make_spec_file.<locals>.<listcomp>)rr�_make_spec_file)r
�specrrrrs
�
zbdist_rpm._make_spec_fileN)�__name__�
__module__�__qualname__�__doc__r	rrrrrrsr)�distutils.command.bdist_rpm�commandrrr�
setuptoolsrrrrr�<module>s