K iXddlmZddlmZddlmcmZGddej Zy)) Distribution)SetuptoolsDeprecationWarningNc*eZdZUdZeed<ddZdZy) 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. distributionNctjdddd|jdtjj |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_urldue_dateegg_info)remit run_commandorigrrun)selfs b/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/setuptools/command/bdist_rpm.pyrz bdist_rpm.runsC$))  E#  $ 4 ctjj|}|Dcgc]$}|jddjdd&c}Scc}w)Nzsetup.py install z5setup.py install --single-version-externally-managed z%setupz&%setup -n %{name}-%{unmangled_version})rr_make_spec_filereplace)rspeclines rrzbdist_rpm._make_spec_file"s^~~--d3    LL#G gh HI J   s)A)returnN)__name__ __module__ __qualname____doc__r__annotations__rrrrrrs!  rr)distrwarningsrdistutils.command.bdist_rpmcommandrrr!rrr&s!3**# # r