/opt/imh-python/lib/python3.9/site-packages/setuptools/command
NameSizeModeActions
__pycache__/-0755rm
alias.py23810644editdlrm
bdist_egg.py166040644editdlrm
bdist_rpm.py9000644editdlrm
build_clib.py44150644editdlrm
build_ext.py130270644editdlrm
build_py.py89300644editdlrm
develop.py80450644editdlrm
dist_info.py9600644editdlrm
easy_install.py853080644editdlrm
egg_info.py253350644editdlrm
install.py47050644editdlrm
install_egg_info.py22030644editdlrm
install_lib.py38750644editdlrm
install_scripts.py25930644editdlrm
launcher manifest.xml6280644editdlrm
py36compat.py49460644editdlrm
register.py4680644editdlrm
rotate.py21280644editdlrm
saveopts.py6580644editdlrm
sdist.py59670644editdlrm
setopt.py50510644editdlrm
test.py94900644editdlrm
upload.py4620644editdlrm
upload_docs.py72180644editdlrm
__init__.py2170644editdlrm
Edit: /opt/imh-python/lib/python3.9/site-packages/setuptools/command/bdist_rpm.py (900B)
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. """ def run(self): # 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) spec = [ line.replace( "setup.py install ", "setup.py install --single-version-externally-managed " ).replace( "%setup", "%setup -n %{name}-%{unmangled_version}" ) for line in spec ] return spec