
    09oe                     R    d dl mc mZ d dlZd dlmZ  G d dej                  ZdS )    N)SetuptoolsDeprecationWarningc                       e Zd ZdZd Zd ZdS )	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        dt                     |                     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    UD:\Python Project\StaffProfile\venv\Lib\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                               dd          -S )zsetup.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     	
 	
 	
  LL#G  g8 		
 	
 	
r   )r   r   _make_spec_file)r   specs     r   r   zbdist_rpm._make_spec_file   s>    ~--d33	
 	
 	
 	
 	
 r   N)__name__
__module____qualname____doc__r   r    r   r   r   r      s<         
! 
! 
!    r   r   )distutils.command.bdist_rpmcommandr   r   r   
setuptoolsr   r   r   r   <module>r       sq    * * * * * * * * *  3 3 3 3 3 3! ! ! ! ! ! ! ! ! !r   