/opt/cloudlinux/venv/lib/python3.11/site-packages/setuptools/_distutils/tests
""" Test suite for distutils. Tests for the command classes in the distutils.command package are included in distutils.tests as well, instead of using a separate distutils.command.tests package, since command identification is done by import rather than matching pre-defined names. """ import shutil from collections.abc import Sequence def missing_compiler_executable(cmd_names: Sequence[str] = []): # pragma: no cover """Check if the compiler components used to build the interpreter exist. Check for the existence of the compiler executables whose names are listed in 'cmd_names' or all the compiler executables when 'cmd_names' is empty and return the first missing executable or None when none is found missing. """ from distutils import ccompiler, errors, sysconfig compiler = ccompiler.new_compiler() sysconfig.customize_compiler(compiler) if compiler.compiler_type == "msvc": # MSVC has no executables, so check whether initialization succeeds try: compiler.initialize() except errors.DistutilsPlatformError: return "msvc" for name in compiler.executables: if cmd_names and name not in cmd_names: continue cmd = getattr(compiler, name) if cmd_names: assert cmd is not None, f"the '{name}' executable is not configured" elif not cmd: continue if shutil.which(cmd[0]) is None: return cmd[0]
.
Edit
..
Edit
__init__.py
Edit
__pycache__
Edit
compat
Edit
support.py
Edit
test_archive_util.py
Edit
test_bdist.py
Edit
test_bdist_dumb.py
Edit
test_bdist_rpm.py
Edit
test_build.py
Edit
test_build_clib.py
Edit
test_build_ext.py
Edit
test_build_py.py
Edit
test_build_scripts.py
Edit
test_check.py
Edit
test_clean.py
Edit
test_cmd.py
Edit
test_config_cmd.py
Edit
test_core.py
Edit
test_dir_util.py
Edit
test_dist.py
Edit
test_extension.py
Edit
test_file_util.py
Edit
test_filelist.py
Edit
test_install.py
Edit
test_install_data.py
Edit
test_install_headers.py
Edit
test_install_lib.py
Edit
test_install_scripts.py
Edit
test_log.py
Edit
test_modified.py
Edit
test_sdist.py
Edit
test_spawn.py
Edit
test_sysconfig.py
Edit
test_text_file.py
Edit
test_util.py
Edit
test_version.py
Edit
test_versionpredicate.py
Edit
unix_compat.py
Edit