3 ­ž‘ežã@s6ddljjZddlZddlmZGdd„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&tjdtƒ|jdƒtjj|ƒ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 úB/tmp/pip-build-vlmub77e/setuptools/setuptools/command/bdist_rpm.pyr s  z bdist_rpm.runcCstjj|ƒ}dd„|Dƒ}|S)NcSs g|]}|jddƒjddƒ‘qS)zsetup.py install z5setup.py install --single-version-externally-managed z%setupz&%setup -n %{name}-%{unmangled_version})Úreplace)Ú.0Úliner 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_rpmÚcommandrrrÚ setuptoolsrr r r r Ús