/usr/lib/imh-ultrastack-common/venv/lib/python3.13/site-packages/setuptools/command
NameSizeModeActions
__pycache__/-0755rm
alias.py23660644editdlrm
bdist_egg.py168320644editdlrm
bdist_rpm.py14350644editdlrm
bdist_wheel.py222100644editdlrm
build.py60520644editdlrm
build_clib.py45280644editdlrm
build_ext.py182700644editdlrm
build_py.py158260644editdlrm
develop.py17510644editdlrm
dist_info.py34500644editdlrm
easy_install.py7800644editdlrm
editable_wheel.py348620644editdlrm
egg_info.py257540644editdlrm
install.py50660644editdlrm
install_egg_info.py20200644editdlrm
install_lib.py43190644editdlrm
install_scripts.py24450644editdlrm
rotate.py21340644editdlrm
saveopts.py6780644editdlrm
sdist.py74260644editdlrm
setopt.py50470644editdlrm
test.py14000644editdlrm
_requirestxt.py42280644editdlrm
__init__.py8030644editdlrm
Edit: /usr/lib/imh-ultrastack-common/venv/lib/python3.13/site-packages/setuptools/command/bdist_rpm.py (1435B)
from ..dist import Distribution from ..warnings import SetuptoolsDeprecationWarning import distutils.command.bdist_rpm as orig class bdist_rpm(orig.bdist_rpm): """ 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. """ distribution: Distribution # override distutils.dist.Distribution with setuptools.dist.Distribution def run(self) -> None: SetuptoolsDeprecationWarning.emit( "Deprecated command", """ bdist_rpm is deprecated and will be removed in a future version. Use bdist_wheel (wheel packages) instead. """, see_url="https://github.com/pypa/setuptools/issues/1988", due_date=(2023, 10, 30), # Deprecation introduced in 22 Oct 2021. ) # ensure distro name is up-to-date self.run_command('egg_info') orig.bdist_rpm.run(self) def _make_spec_file(self): spec = orig.bdist_rpm._make_spec_file(self) return [ line.replace( "setup.py install ", "setup.py install --single-version-externally-managed ", ).replace("%setup", "%setup -n %{name}-%{unmangled_version}") for line in spec ]