U lÏ aäã@s(ddlmmZGdd„dejƒZdS)éNc@s eZdZdZdd„Zdd„ZdS)Ú bdist_rpmaf 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. 3. Replace dash with underscore in the version numbers for better RPM compatibility. cCs| d¡tj |¡dS)NÚegg_info)Ú run_commandÚorigrÚrun)Úself©rú]C:\Users\vtejo\AppData\Local\Temp\pip-unpacked-wheel-wx4infiz\setuptools\command\bdist_rpm.pyrs z bdist_rpm.runcsl|j ¡}| dd¡}tj |¡}d|‰d|‰‡‡fdd„|Dƒ}| ˆ¡d}d|}| ||¡|S)Nú-Ú_z%define version cs0g|](}| dd¡ dd¡ dd¡ ˆˆ¡‘qS)zSource0: %{name}-%{version}.tarz)Source0: %{name}-%{unmangled_version}.tarzsetup.py install z5setup.py install --single-version-externally-managed z%setupz&%setup -n %{name}-%{unmangled_version})Úreplace)Ú.0Úline©Zline23Zline24rr Ú s öþûø ÷z-bdist_rpm._make_spec_file..éz%define unmangled_version )Ú distributionÚ get_versionr rrÚ_make_spec_fileÚindexÚinsert)rÚversionZ rpmversionÚspecZ insert_locZunmangled_versionrrr rs    õ  zbdist_rpm._make_spec_fileN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rrrrrr rs r)Zdistutils.command.bdist_rpmÚcommandrrrrrr Ús