Current Path: > > opt > cloudlinux > venv > lib64 > python3.11 > site-packages > setuptools > > _distutils > 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 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__pycache__ | Directory | - | - | |
__init__.py | File | 386 bytes | April 17 2025 13:10:58. | |
_framework_compat.py | File | 1609 bytes | April 17 2025 13:10:58. | |
bdist.py | File | 5854 bytes | April 17 2025 13:10:58. | |
bdist_dumb.py | File | 4631 bytes | April 17 2025 13:10:58. | |
bdist_rpm.py | File | 21785 bytes | April 17 2025 13:10:58. | |
build.py | File | 5923 bytes | April 17 2025 13:10:58. | |
build_clib.py | File | 7777 bytes | April 17 2025 13:10:58. | |
build_ext.py | File | 32710 bytes | April 17 2025 13:10:58. | |
build_py.py | File | 16696 bytes | April 17 2025 13:10:58. | |
build_scripts.py | File | 5118 bytes | April 17 2025 13:10:58. | |
check.py | File | 4946 bytes | April 17 2025 13:10:58. | |
clean.py | File | 2644 bytes | April 17 2025 13:10:58. | |
config.py | File | 12818 bytes | April 17 2025 13:10:58. | |
install.py | File | 30072 bytes | April 17 2025 13:10:58. | |
install_data.py | File | 2875 bytes | April 17 2025 13:10:58. | |
install_egg_info.py | File | 2868 bytes | April 17 2025 13:10:58. | |
install_headers.py | File | 1272 bytes | April 17 2025 13:10:58. | |
install_lib.py | File | 8588 bytes | April 17 2025 13:10:58. | |
install_scripts.py | File | 2002 bytes | April 17 2025 13:10:58. | |
sdist.py | File | 19151 bytes | April 17 2025 13:10:58. |
"""distutils.command.bdist_dumb Implements the Distutils 'bdist_dumb' command (create a "dumb" built distribution -- i.e., just an archive to be unpacked under $prefix or $exec_prefix).""" import os from distutils._log import log from typing import ClassVar from ..core import Command from ..dir_util import ensure_relative, remove_tree from ..errors import DistutilsPlatformError from ..sysconfig import get_python_version from ..util import get_platform class bdist_dumb(Command): description = "create a \"dumb\" built distribution" user_options = [ ('bdist-dir=', 'd', "temporary directory for creating the distribution"), ( 'plat-name=', 'p', "platform name to embed in generated filenames " f"[default: {get_platform()}]", ), ( 'format=', 'f', "archive format to create (tar, gztar, bztar, xztar, ztar, zip)", ), ( 'keep-temp', 'k', "keep the pseudo-installation tree around after creating the distribution archive", ), ('dist-dir=', 'd', "directory to put final built distributions in"), ('skip-build', None, "skip rebuilding everything (for testing/debugging)"), ( 'relative', None, "build the archive using relative paths [default: false]", ), ( 'owner=', 'u', "Owner name used when creating a tar file [default: current user]", ), ( 'group=', 'g', "Group name used when creating a tar file [default: current group]", ), ] boolean_options: ClassVar[list[str]] = ['keep-temp', 'skip-build', 'relative'] default_format = {'posix': 'gztar', 'nt': 'zip'} def initialize_options(self): self.bdist_dir = None self.plat_name = None self.format = None self.keep_temp = False self.dist_dir = None self.skip_build = None self.relative = False self.owner = None self.group = None def finalize_options(self): if self.bdist_dir is None: bdist_base = self.get_finalized_command('bdist').bdist_base self.bdist_dir = os.path.join(bdist_base, 'dumb') if self.format is None: try: self.format = self.default_format[os.name] except KeyError: raise DistutilsPlatformError( "don't know how to create dumb built distributions " f"on platform {os.name}" ) self.set_undefined_options( 'bdist', ('dist_dir', 'dist_dir'), ('plat_name', 'plat_name'), ('skip_build', 'skip_build'), ) def run(self): if not self.skip_build: self.run_command('build') install = self.reinitialize_command('install', reinit_subcommands=True) install.root = self.bdist_dir install.skip_build = self.skip_build install.warn_dir = False log.info("installing to %s", self.bdist_dir) self.run_command('install') # And make an archive relative to the root of the # pseudo-installation tree. archive_basename = f"{self.distribution.get_fullname()}.{self.plat_name}" pseudoinstall_root = os.path.join(self.dist_dir, archive_basename) if not self.relative: archive_root = self.bdist_dir else: if self.distribution.has_ext_modules() and ( install.install_base != install.install_platbase ): raise DistutilsPlatformError( "can't make a dumb built distribution where " f"base and platbase are different ({install.install_base!r}, {install.install_platbase!r})" ) else: archive_root = os.path.join( self.bdist_dir, ensure_relative(install.install_base) ) # Make the archive filename = self.make_archive( pseudoinstall_root, self.format, root_dir=archive_root, owner=self.owner, group=self.group, ) if self.distribution.has_ext_modules(): pyversion = get_python_version() else: pyversion = 'any' self.distribution.dist_files.append(('bdist_dumb', pyversion, filename)) if not self.keep_temp: remove_tree(self.bdist_dir, dry_run=self.dry_run)
SILENT KILLER Tool