B aMZ@s<ddlmmZddlZddlmZGdddejZdS)N)SetuptoolsDeprecationWarningc@s eZdZdZddZddZdS) 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&tdt|dtj|dS)Nzjbdist_rpm is deprecated and will be removed in a future version. Use bdist_wheel (wheel packages) instead.egg_info)warningswarnr run_commandorigrrun)selfr /builddir/build/BUILDROOT/alt-python37-setuptools-58.3.0-4.el9.x86_64/opt/alt/python37/lib/python3.7/site-packages/setuptools/command/bdist_rpm.pyr s  z bdist_rpm.runcCstj|}dd|D}|S)NcSs g|]}|ddddqS)zsetup.py install z5setup.py install --single-version-externally-managed z%setupz&%setup -n %{name}-%{unmangled_version})replace).0liner r r sz-bdist_rpm._make_spec_file..)rr_make_spec_file)r specr r r rs zbdist_rpm._make_spec_fileN)__name__ __module__ __qualname____doc__r rr r r r rs r)Zdistutils.command.bdist_rpmcommandrrr setuptoolsrr r r r s