
    ,h                     X    d dl mZ d dlmZ ddlmc mZ  G d dej                        Zy)   )Distribution)SetuptoolsDeprecationWarning    Nc                   *    e Zd ZU dZeed<   ddZd Zy)	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.
    distributionNc                     t        j                  dddd       | j                  d       t        j                  j                  |        y )NzDeprecated 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    ^/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/setuptools/command/bdist_rpm.pyr   zbdist_rpm.run   sC    $))  E#	
 	$4     c                     t         j                  j                  |       }|D cg c]$  }|j                  dd      j                  dd      & c}S c c}w )Nzsetup.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   zbdist_rpm._make_spec_file"   s^    ~~--d3 

 	 LL#G gh HIJ
 	
 
s   )A)returnN)__name__
__module____qualname____doc__r   __annotations__r   r    r   r   r   r      s     ! 
r   r   )distr   warningsr   distutils.command.bdist_rpmcommandr   r   r!   r   r   <module>r&      s!     3 * *#
 #
r   