a (šRežã@s<ddlmmZddlZddlmZGdd„dejƒZdS)éN)ÚSetuptoolsDeprecationWarningc@s eZdZdZdd„Zdd„ZdS)Ú 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&t dt¡| d¡tj |¡dS)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)Úself©r ú’/builddir/build/BUILDROOT/alt-python39-setuptools-58.3.0-2.el8.x86_64/opt/alt/python39/lib/python3.9/site-packages/setuptools/command/bdist_rpm.pyr s ý z bdist_rpm.runcCstj |¡}dd„|Dƒ}|S)NcSs g|]}| dd¡ dd¡‘qS)zsetup.py install z5setup.py install --single-version-externally-managed z%setupz&%setup -n %{name}-%{unmangled_version})Úreplace)Ú.0Úliner r r Ú sùþûz-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_rpmÚcommandrrrÚ setuptoolsrr r r r Ús