/snap/core22/2411/usr/lib/python3/dist-packages/setuptools/command
NameSizeModeActions
__pycache__/-0755rm
alias.py23810644editdlrm
bdist_egg.py166040644editdlrm
bdist_rpm.py11820644editdlrm
build_clib.py44150644editdlrm
build_ext.py132120644editdlrm
build_py.py87510644editdlrm
develop.py70120644editdlrm
dist_info.py9600644editdlrm
easy_install.py879730644editdlrm
egg_info.py261340644editdlrm
install.py49060644editdlrm
install_egg_info.py31950644editdlrm
install_lib.py50360644editdlrm
install_scripts.py25930644editdlrm
launcher manifest.xml6280644editdlrm
py36compat.py49460644editdlrm
register.py4680644editdlrm
rotate.py21280644editdlrm
saveopts.py6580644editdlrm
sdist.py64130644editdlrm
setopt.py50860644editdlrm
test.py80880644editdlrm
upload.py4620644editdlrm
upload_docs.py72180644editdlrm
__init__.py2170644editdlrm
Edit: /snap/core22/2411/usr/lib/python3/dist-packages/setuptools/command/bdist_rpm.py (1182B)
import distutils.command.bdist_rpm as orig import warnings from setuptools import SetuptoolsDeprecationWarning 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): warnings.warn( "bdist_rpm is deprecated and will be removed in a future " "version. Use bdist_wheel (wheel packages) instead.", SetuptoolsDeprecationWarning, ) # 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