a oe@s4ddlmmZddlmZGdddejZdS)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,tjddddd|dtj|dS)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 )Zsee_urlZdue_dateZegg_info)remitZ run_commandorigrrun)selfr =C:\Program Files\Certbot\pkgs\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 rsr)Zdistutils.command.bdist_rpmZcommandrrwarningsrr r r r s