SILENT KILLERPanel

Current Path: > > lib > python3.8 > site-packages > setuptools > command >


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //lib/python3.8/site-packages/setuptools/command/

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
__init__.py File 594 bytes April 21 2022 12:45:22.
alias.py File 2426 bytes April 21 2022 12:45:22.
bdist_egg.py File 18185 bytes April 21 2022 12:45:22.
bdist_rpm.py File 1508 bytes April 21 2022 12:45:22.
bdist_wininst.py File 637 bytes April 21 2022 12:45:22.
build_clib.py File 4484 bytes April 21 2022 12:45:22.
build_ext.py File 13019 bytes April 21 2022 12:45:22.
build_py.py File 9596 bytes April 21 2022 12:45:22.
develop.py File 8184 bytes April 21 2022 12:45:22.
dist_info.py File 960 bytes April 21 2022 12:45:22.
easy_install.py File 87453 bytes April 21 2022 12:45:22.
egg_info.py File 25570 bytes April 21 2022 12:45:22.
install.py File 4683 bytes April 21 2022 12:45:22.
install_egg_info.py File 2203 bytes April 21 2022 12:45:22.
install_lib.py File 3862 bytes April 21 2022 12:45:22.
install_scripts.py File 2439 bytes April 21 2022 12:45:22.
launcher manifest.xml File 628 bytes April 21 2022 12:45:22.
py36compat.py File 4986 bytes April 21 2022 12:45:22.
register.py File 534 bytes April 21 2022 12:45:22.
rotate.py File 2164 bytes April 21 2022 12:45:22.
saveopts.py File 658 bytes April 21 2022 12:45:22.
sdist.py File 7388 bytes April 21 2022 12:45:22.
setopt.py File 5085 bytes April 21 2022 12:45:22.
test.py File 9602 bytes April 21 2022 12:45:22.
upload.py File 6811 bytes April 21 2022 12:45:22.
upload_docs.py File 7311 bytes April 21 2022 12:45:22.

Reading File: //lib/python3.8/site-packages/setuptools/command//bdist_rpm.py

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.
    3. Replace dash with underscore in the version numbers for better RPM
       compatibility.
    """

    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):
        version = self.distribution.get_version()
        rpmversion = version.replace('-', '_')
        spec = orig.bdist_rpm._make_spec_file(self)
        line23 = '%define version ' + version
        line24 = '%define version ' + rpmversion
        spec = [
            line.replace(
                "Source0: %{name}-%{version}.tar",
                "Source0: %{name}-%{unmangled_version}.tar"
            ).replace(
                "setup.py install ",
                "setup.py install --single-version-externally-managed "
            ).replace(
                "%setup",
                "%setup -n %{name}-%{unmangled_version}"
            ).replace(line23, line24)
            for line in spec
        ]
        insert_loc = spec.index(line24) + 1
        unmangled_version = "%define unmangled_version " + version
        spec.insert(insert_loc, unmangled_version)
        return spec

SILENT KILLER Tool