_dLddlmcmZddlmZGddejZy)N)SetuptoolsDeprecationWarningceZdZdZdZdZy) 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. ctjdddd|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 >/usr/lib/python3/dist-packages/setuptools/command/bdist_rpm.pyrz bdist_rpm.runsC$))  E#  $ 4 ctjj|}|Dcgc]$}|jddjdd&}}|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_filesg~~--d3    LL#G gh HI J    s)AN)__name__ __module__ __qualname____doc__rrrrrrs! rr)distutils.command.bdist_rpmcommandrrwarningsrrrrr!s**3""r