Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- chatunivi/lib/python3.10/site-packages/setuptools/_distutils/__init__.py +14 -0
- chatunivi/lib/python3.10/site-packages/setuptools/_distutils/_log.py +3 -0
- chatunivi/lib/python3.10/site-packages/setuptools/_distutils/_macos_compat.py +12 -0
- chatunivi/lib/python3.10/site-packages/setuptools/_distutils/_modified.py +73 -0
- chatunivi/lib/python3.10/site-packages/setuptools/_distutils/archive_util.py +264 -0
- chatunivi/lib/python3.10/site-packages/setuptools/_distutils/cmd.py +462 -0
- chatunivi/lib/python3.10/site-packages/setuptools/_distutils/errors.py +124 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/__init__.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/contexts.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/environment.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/fixtures.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/mod_with_constant.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/namespaces.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/script-with-bom.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/server.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_archive_util.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_bdist_deprecations.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_bdist_egg.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_bdist_wheel.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_build.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_build_clib.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_build_ext.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_build_meta.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_build_py.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_config_discovery.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_core_metadata.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_depends.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_develop.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_dist.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_dist_info.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_distutils_adoption.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_easy_install.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_editable_install.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_egg_info.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_extern.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_find_packages.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_find_py_modules.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_glob.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_install_scripts.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_logging.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_manifest.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_namespaces.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_packageindex.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_sandbox.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_sdist.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_setopt.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_setuptools.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_shutil_wrapper.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_unicode_utils.cpython-310.pyc +0 -0
- chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_virtualenv.cpython-310.pyc +0 -0
chatunivi/lib/python3.10/site-packages/setuptools/_distutils/__init__.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import importlib
|
| 2 |
+
import sys
|
| 3 |
+
|
| 4 |
+
__version__, _, _ = sys.version.partition(' ')
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
try:
|
| 8 |
+
# Allow Debian and pkgsrc (only) to customize system
|
| 9 |
+
# behavior. Ref pypa/distutils#2 and pypa/distutils#16.
|
| 10 |
+
# This hook is deprecated and no other environments
|
| 11 |
+
# should use it.
|
| 12 |
+
importlib.import_module('_distutils_system_mod')
|
| 13 |
+
except ImportError:
|
| 14 |
+
pass
|
chatunivi/lib/python3.10/site-packages/setuptools/_distutils/_log.py
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import logging
|
| 2 |
+
|
| 3 |
+
log = logging.getLogger()
|
chatunivi/lib/python3.10/site-packages/setuptools/_distutils/_macos_compat.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import importlib
|
| 2 |
+
import sys
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
def bypass_compiler_fixup(cmd, args):
|
| 6 |
+
return cmd
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
if sys.platform == 'darwin':
|
| 10 |
+
compiler_fixup = importlib.import_module('_osx_support').compiler_fixup
|
| 11 |
+
else:
|
| 12 |
+
compiler_fixup = bypass_compiler_fixup
|
chatunivi/lib/python3.10/site-packages/setuptools/_distutils/_modified.py
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Timestamp comparison of files and groups of files."""
|
| 2 |
+
|
| 3 |
+
import functools
|
| 4 |
+
import os.path
|
| 5 |
+
|
| 6 |
+
from jaraco.functools import splat
|
| 7 |
+
|
| 8 |
+
from .compat.py39 import zip_strict
|
| 9 |
+
from .errors import DistutilsFileError
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
def _newer(source, target):
|
| 13 |
+
return not os.path.exists(target) or (
|
| 14 |
+
os.path.getmtime(source) > os.path.getmtime(target)
|
| 15 |
+
)
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
def newer(source, target):
|
| 19 |
+
"""
|
| 20 |
+
Is source modified more recently than target.
|
| 21 |
+
|
| 22 |
+
Returns True if 'source' is modified more recently than
|
| 23 |
+
'target' or if 'target' does not exist.
|
| 24 |
+
|
| 25 |
+
Raises DistutilsFileError if 'source' does not exist.
|
| 26 |
+
"""
|
| 27 |
+
if not os.path.exists(source):
|
| 28 |
+
raise DistutilsFileError(f"file '{os.path.abspath(source)}' does not exist")
|
| 29 |
+
|
| 30 |
+
return _newer(source, target)
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
def newer_pairwise(sources, targets, newer=newer):
|
| 34 |
+
"""
|
| 35 |
+
Filter filenames where sources are newer than targets.
|
| 36 |
+
|
| 37 |
+
Walk two filename iterables in parallel, testing if each source is newer
|
| 38 |
+
than its corresponding target. Returns a pair of lists (sources,
|
| 39 |
+
targets) where source is newer than target, according to the semantics
|
| 40 |
+
of 'newer()'.
|
| 41 |
+
"""
|
| 42 |
+
newer_pairs = filter(splat(newer), zip_strict(sources, targets))
|
| 43 |
+
return tuple(map(list, zip(*newer_pairs))) or ([], [])
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
def newer_group(sources, target, missing='error'):
|
| 47 |
+
"""
|
| 48 |
+
Is target out-of-date with respect to any file in sources.
|
| 49 |
+
|
| 50 |
+
Return True if 'target' is out-of-date with respect to any file
|
| 51 |
+
listed in 'sources'. In other words, if 'target' exists and is newer
|
| 52 |
+
than every file in 'sources', return False; otherwise return True.
|
| 53 |
+
``missing`` controls how to handle a missing source file:
|
| 54 |
+
|
| 55 |
+
- error (default): allow the ``stat()`` call to fail.
|
| 56 |
+
- ignore: silently disregard any missing source files.
|
| 57 |
+
- newer: treat missing source files as "target out of date". This
|
| 58 |
+
mode is handy in "dry-run" mode: it will pretend to carry out
|
| 59 |
+
commands that wouldn't work because inputs are missing, but
|
| 60 |
+
that doesn't matter because dry-run won't run the commands.
|
| 61 |
+
"""
|
| 62 |
+
|
| 63 |
+
def missing_as_newer(source):
|
| 64 |
+
return missing == 'newer' and not os.path.exists(source)
|
| 65 |
+
|
| 66 |
+
ignored = os.path.exists if missing == 'ignore' else None
|
| 67 |
+
return not os.path.exists(target) or any(
|
| 68 |
+
missing_as_newer(source) or _newer(source, target)
|
| 69 |
+
for source in filter(ignored, sources)
|
| 70 |
+
)
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
newer_pairwise_group = functools.partial(newer_pairwise, newer=newer_group)
|
chatunivi/lib/python3.10/site-packages/setuptools/_distutils/archive_util.py
ADDED
|
@@ -0,0 +1,264 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""distutils.archive_util
|
| 2 |
+
|
| 3 |
+
Utility functions for creating archive files (tarballs, zip files,
|
| 4 |
+
that sort of thing)."""
|
| 5 |
+
|
| 6 |
+
import os
|
| 7 |
+
|
| 8 |
+
try:
|
| 9 |
+
import zipfile
|
| 10 |
+
except ImportError:
|
| 11 |
+
zipfile = None
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
from ._log import log
|
| 15 |
+
from .dir_util import mkpath
|
| 16 |
+
from .errors import DistutilsExecError
|
| 17 |
+
from .spawn import spawn
|
| 18 |
+
|
| 19 |
+
try:
|
| 20 |
+
from pwd import getpwnam
|
| 21 |
+
except ImportError:
|
| 22 |
+
getpwnam = None
|
| 23 |
+
|
| 24 |
+
try:
|
| 25 |
+
from grp import getgrnam
|
| 26 |
+
except ImportError:
|
| 27 |
+
getgrnam = None
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
def _get_gid(name):
|
| 31 |
+
"""Returns a gid, given a group name."""
|
| 32 |
+
if getgrnam is None or name is None:
|
| 33 |
+
return None
|
| 34 |
+
try:
|
| 35 |
+
result = getgrnam(name)
|
| 36 |
+
except KeyError:
|
| 37 |
+
result = None
|
| 38 |
+
if result is not None:
|
| 39 |
+
return result[2]
|
| 40 |
+
return None
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
def _get_uid(name):
|
| 44 |
+
"""Returns an uid, given a user name."""
|
| 45 |
+
if getpwnam is None or name is None:
|
| 46 |
+
return None
|
| 47 |
+
try:
|
| 48 |
+
result = getpwnam(name)
|
| 49 |
+
except KeyError:
|
| 50 |
+
result = None
|
| 51 |
+
if result is not None:
|
| 52 |
+
return result[2]
|
| 53 |
+
return None
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
def make_tarball(
|
| 57 |
+
base_name,
|
| 58 |
+
base_dir,
|
| 59 |
+
compress="gzip",
|
| 60 |
+
verbose=False,
|
| 61 |
+
dry_run=False,
|
| 62 |
+
owner=None,
|
| 63 |
+
group=None,
|
| 64 |
+
):
|
| 65 |
+
"""Create a (possibly compressed) tar file from all the files under
|
| 66 |
+
'base_dir'.
|
| 67 |
+
|
| 68 |
+
'compress' must be "gzip" (the default), "bzip2", "xz", or None.
|
| 69 |
+
|
| 70 |
+
'owner' and 'group' can be used to define an owner and a group for the
|
| 71 |
+
archive that is being built. If not provided, the current owner and group
|
| 72 |
+
will be used.
|
| 73 |
+
|
| 74 |
+
The output tar file will be named 'base_dir' + ".tar", possibly plus
|
| 75 |
+
the appropriate compression extension (".gz", ".bz2", ".xz" or ".Z").
|
| 76 |
+
|
| 77 |
+
Returns the output filename.
|
| 78 |
+
"""
|
| 79 |
+
tar_compression = {
|
| 80 |
+
'gzip': 'gz',
|
| 81 |
+
'bzip2': 'bz2',
|
| 82 |
+
'xz': 'xz',
|
| 83 |
+
None: '',
|
| 84 |
+
}
|
| 85 |
+
compress_ext = {'gzip': '.gz', 'bzip2': '.bz2', 'xz': '.xz'}
|
| 86 |
+
|
| 87 |
+
# flags for compression program, each element of list will be an argument
|
| 88 |
+
if compress is not None and compress not in compress_ext.keys():
|
| 89 |
+
raise ValueError(
|
| 90 |
+
"bad value for 'compress': must be None, 'gzip', 'bzip2', 'xz'"
|
| 91 |
+
)
|
| 92 |
+
|
| 93 |
+
archive_name = base_name + '.tar'
|
| 94 |
+
archive_name += compress_ext.get(compress, '')
|
| 95 |
+
|
| 96 |
+
mkpath(os.path.dirname(archive_name), dry_run=dry_run)
|
| 97 |
+
|
| 98 |
+
# creating the tarball
|
| 99 |
+
import tarfile # late import so Python build itself doesn't break
|
| 100 |
+
|
| 101 |
+
log.info('Creating tar archive')
|
| 102 |
+
|
| 103 |
+
uid = _get_uid(owner)
|
| 104 |
+
gid = _get_gid(group)
|
| 105 |
+
|
| 106 |
+
def _set_uid_gid(tarinfo):
|
| 107 |
+
if gid is not None:
|
| 108 |
+
tarinfo.gid = gid
|
| 109 |
+
tarinfo.gname = group
|
| 110 |
+
if uid is not None:
|
| 111 |
+
tarinfo.uid = uid
|
| 112 |
+
tarinfo.uname = owner
|
| 113 |
+
return tarinfo
|
| 114 |
+
|
| 115 |
+
if not dry_run:
|
| 116 |
+
tar = tarfile.open(archive_name, f'w|{tar_compression[compress]}')
|
| 117 |
+
try:
|
| 118 |
+
tar.add(base_dir, filter=_set_uid_gid)
|
| 119 |
+
finally:
|
| 120 |
+
tar.close()
|
| 121 |
+
|
| 122 |
+
return archive_name
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
def make_zipfile(base_name, base_dir, verbose=False, dry_run=False): # noqa: C901
|
| 126 |
+
"""Create a zip file from all the files under 'base_dir'.
|
| 127 |
+
|
| 128 |
+
The output zip file will be named 'base_name' + ".zip". Uses either the
|
| 129 |
+
"zipfile" Python module (if available) or the InfoZIP "zip" utility
|
| 130 |
+
(if installed and found on the default search path). If neither tool is
|
| 131 |
+
available, raises DistutilsExecError. Returns the name of the output zip
|
| 132 |
+
file.
|
| 133 |
+
"""
|
| 134 |
+
zip_filename = base_name + ".zip"
|
| 135 |
+
mkpath(os.path.dirname(zip_filename), dry_run=dry_run)
|
| 136 |
+
|
| 137 |
+
# If zipfile module is not available, try spawning an external
|
| 138 |
+
# 'zip' command.
|
| 139 |
+
if zipfile is None:
|
| 140 |
+
if verbose:
|
| 141 |
+
zipoptions = "-r"
|
| 142 |
+
else:
|
| 143 |
+
zipoptions = "-rq"
|
| 144 |
+
|
| 145 |
+
try:
|
| 146 |
+
spawn(["zip", zipoptions, zip_filename, base_dir], dry_run=dry_run)
|
| 147 |
+
except DistutilsExecError:
|
| 148 |
+
# XXX really should distinguish between "couldn't find
|
| 149 |
+
# external 'zip' command" and "zip failed".
|
| 150 |
+
raise DistutilsExecError(
|
| 151 |
+
f"unable to create zip file '{zip_filename}': "
|
| 152 |
+
"could neither import the 'zipfile' module nor "
|
| 153 |
+
"find a standalone zip utility"
|
| 154 |
+
)
|
| 155 |
+
|
| 156 |
+
else:
|
| 157 |
+
log.info("creating '%s' and adding '%s' to it", zip_filename, base_dir)
|
| 158 |
+
|
| 159 |
+
if not dry_run:
|
| 160 |
+
try:
|
| 161 |
+
zip = zipfile.ZipFile(
|
| 162 |
+
zip_filename, "w", compression=zipfile.ZIP_DEFLATED
|
| 163 |
+
)
|
| 164 |
+
except RuntimeError:
|
| 165 |
+
zip = zipfile.ZipFile(zip_filename, "w", compression=zipfile.ZIP_STORED)
|
| 166 |
+
|
| 167 |
+
with zip:
|
| 168 |
+
if base_dir != os.curdir:
|
| 169 |
+
path = os.path.normpath(os.path.join(base_dir, ''))
|
| 170 |
+
zip.write(path, path)
|
| 171 |
+
log.info("adding '%s'", path)
|
| 172 |
+
for dirpath, dirnames, filenames in os.walk(base_dir):
|
| 173 |
+
for name in dirnames:
|
| 174 |
+
path = os.path.normpath(os.path.join(dirpath, name, ''))
|
| 175 |
+
zip.write(path, path)
|
| 176 |
+
log.info("adding '%s'", path)
|
| 177 |
+
for name in filenames:
|
| 178 |
+
path = os.path.normpath(os.path.join(dirpath, name))
|
| 179 |
+
if os.path.isfile(path):
|
| 180 |
+
zip.write(path, path)
|
| 181 |
+
log.info("adding '%s'", path)
|
| 182 |
+
|
| 183 |
+
return zip_filename
|
| 184 |
+
|
| 185 |
+
|
| 186 |
+
ARCHIVE_FORMATS = {
|
| 187 |
+
'gztar': (make_tarball, [('compress', 'gzip')], "gzip'ed tar-file"),
|
| 188 |
+
'bztar': (make_tarball, [('compress', 'bzip2')], "bzip2'ed tar-file"),
|
| 189 |
+
'xztar': (make_tarball, [('compress', 'xz')], "xz'ed tar-file"),
|
| 190 |
+
'ztar': (make_tarball, [('compress', 'compress')], "compressed tar file"),
|
| 191 |
+
'tar': (make_tarball, [('compress', None)], "uncompressed tar file"),
|
| 192 |
+
'zip': (make_zipfile, [], "ZIP file"),
|
| 193 |
+
}
|
| 194 |
+
|
| 195 |
+
|
| 196 |
+
def check_archive_formats(formats):
|
| 197 |
+
"""Returns the first format from the 'format' list that is unknown.
|
| 198 |
+
|
| 199 |
+
If all formats are known, returns None
|
| 200 |
+
"""
|
| 201 |
+
for format in formats:
|
| 202 |
+
if format not in ARCHIVE_FORMATS:
|
| 203 |
+
return format
|
| 204 |
+
return None
|
| 205 |
+
|
| 206 |
+
|
| 207 |
+
def make_archive(
|
| 208 |
+
base_name,
|
| 209 |
+
format,
|
| 210 |
+
root_dir=None,
|
| 211 |
+
base_dir=None,
|
| 212 |
+
verbose=False,
|
| 213 |
+
dry_run=False,
|
| 214 |
+
owner=None,
|
| 215 |
+
group=None,
|
| 216 |
+
):
|
| 217 |
+
"""Create an archive file (eg. zip or tar).
|
| 218 |
+
|
| 219 |
+
'base_name' is the name of the file to create, minus any format-specific
|
| 220 |
+
extension; 'format' is the archive format: one of "zip", "tar", "gztar",
|
| 221 |
+
"bztar", "xztar", or "ztar".
|
| 222 |
+
|
| 223 |
+
'root_dir' is a directory that will be the root directory of the
|
| 224 |
+
archive; ie. we typically chdir into 'root_dir' before creating the
|
| 225 |
+
archive. 'base_dir' is the directory where we start archiving from;
|
| 226 |
+
ie. 'base_dir' will be the common prefix of all files and
|
| 227 |
+
directories in the archive. 'root_dir' and 'base_dir' both default
|
| 228 |
+
to the current directory. Returns the name of the archive file.
|
| 229 |
+
|
| 230 |
+
'owner' and 'group' are used when creating a tar archive. By default,
|
| 231 |
+
uses the current owner and group.
|
| 232 |
+
"""
|
| 233 |
+
save_cwd = os.getcwd()
|
| 234 |
+
if root_dir is not None:
|
| 235 |
+
log.debug("changing into '%s'", root_dir)
|
| 236 |
+
base_name = os.path.abspath(base_name)
|
| 237 |
+
if not dry_run:
|
| 238 |
+
os.chdir(root_dir)
|
| 239 |
+
|
| 240 |
+
if base_dir is None:
|
| 241 |
+
base_dir = os.curdir
|
| 242 |
+
|
| 243 |
+
kwargs = {'dry_run': dry_run}
|
| 244 |
+
|
| 245 |
+
try:
|
| 246 |
+
format_info = ARCHIVE_FORMATS[format]
|
| 247 |
+
except KeyError:
|
| 248 |
+
raise ValueError(f"unknown archive format '{format}'")
|
| 249 |
+
|
| 250 |
+
func = format_info[0]
|
| 251 |
+
kwargs.update(format_info[1])
|
| 252 |
+
|
| 253 |
+
if format != 'zip':
|
| 254 |
+
kwargs['owner'] = owner
|
| 255 |
+
kwargs['group'] = group
|
| 256 |
+
|
| 257 |
+
try:
|
| 258 |
+
filename = func(base_name, base_dir, **kwargs)
|
| 259 |
+
finally:
|
| 260 |
+
if root_dir is not None:
|
| 261 |
+
log.debug("changing back to '%s'", save_cwd)
|
| 262 |
+
os.chdir(save_cwd)
|
| 263 |
+
|
| 264 |
+
return filename
|
chatunivi/lib/python3.10/site-packages/setuptools/_distutils/cmd.py
ADDED
|
@@ -0,0 +1,462 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""distutils.cmd
|
| 2 |
+
|
| 3 |
+
Provides the Command class, the base class for the command classes
|
| 4 |
+
in the distutils.command package.
|
| 5 |
+
"""
|
| 6 |
+
|
| 7 |
+
from __future__ import annotations
|
| 8 |
+
|
| 9 |
+
import logging
|
| 10 |
+
import os
|
| 11 |
+
import re
|
| 12 |
+
import sys
|
| 13 |
+
from collections.abc import Callable
|
| 14 |
+
from typing import Any, ClassVar, TypeVar, overload
|
| 15 |
+
|
| 16 |
+
from . import _modified, archive_util, dir_util, file_util, util
|
| 17 |
+
from ._log import log
|
| 18 |
+
from .errors import DistutilsOptionError
|
| 19 |
+
|
| 20 |
+
_CommandT = TypeVar("_CommandT", bound="Command")
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
class Command:
|
| 24 |
+
"""Abstract base class for defining command classes, the "worker bees"
|
| 25 |
+
of the Distutils. A useful analogy for command classes is to think of
|
| 26 |
+
them as subroutines with local variables called "options". The options
|
| 27 |
+
are "declared" in 'initialize_options()' and "defined" (given their
|
| 28 |
+
final values, aka "finalized") in 'finalize_options()', both of which
|
| 29 |
+
must be defined by every command class. The distinction between the
|
| 30 |
+
two is necessary because option values might come from the outside
|
| 31 |
+
world (command line, config file, ...), and any options dependent on
|
| 32 |
+
other options must be computed *after* these outside influences have
|
| 33 |
+
been processed -- hence 'finalize_options()'. The "body" of the
|
| 34 |
+
subroutine, where it does all its work based on the values of its
|
| 35 |
+
options, is the 'run()' method, which must also be implemented by every
|
| 36 |
+
command class.
|
| 37 |
+
"""
|
| 38 |
+
|
| 39 |
+
# 'sub_commands' formalizes the notion of a "family" of commands,
|
| 40 |
+
# eg. "install" as the parent with sub-commands "install_lib",
|
| 41 |
+
# "install_headers", etc. The parent of a family of commands
|
| 42 |
+
# defines 'sub_commands' as a class attribute; it's a list of
|
| 43 |
+
# (command_name : string, predicate : unbound_method | string | None)
|
| 44 |
+
# tuples, where 'predicate' is a method of the parent command that
|
| 45 |
+
# determines whether the corresponding command is applicable in the
|
| 46 |
+
# current situation. (Eg. we "install_headers" is only applicable if
|
| 47 |
+
# we have any C header files to install.) If 'predicate' is None,
|
| 48 |
+
# that command is always applicable.
|
| 49 |
+
#
|
| 50 |
+
# 'sub_commands' is usually defined at the *end* of a class, because
|
| 51 |
+
# predicates can be unbound methods, so they must already have been
|
| 52 |
+
# defined. The canonical example is the "install" command.
|
| 53 |
+
sub_commands: ClassVar[ # Any to work around variance issues
|
| 54 |
+
list[tuple[str, Callable[[Any], bool] | None]]
|
| 55 |
+
] = []
|
| 56 |
+
|
| 57 |
+
user_options: ClassVar[
|
| 58 |
+
# Specifying both because list is invariant. Avoids mypy override assignment issues
|
| 59 |
+
list[tuple[str, str, str]] | list[tuple[str, str | None, str]]
|
| 60 |
+
] = []
|
| 61 |
+
|
| 62 |
+
# -- Creation/initialization methods -------------------------------
|
| 63 |
+
|
| 64 |
+
def __init__(self, dist):
|
| 65 |
+
"""Create and initialize a new Command object. Most importantly,
|
| 66 |
+
invokes the 'initialize_options()' method, which is the real
|
| 67 |
+
initializer and depends on the actual command being
|
| 68 |
+
instantiated.
|
| 69 |
+
"""
|
| 70 |
+
# late import because of mutual dependence between these classes
|
| 71 |
+
from distutils.dist import Distribution
|
| 72 |
+
|
| 73 |
+
if not isinstance(dist, Distribution):
|
| 74 |
+
raise TypeError("dist must be a Distribution instance")
|
| 75 |
+
if self.__class__ is Command:
|
| 76 |
+
raise RuntimeError("Command is an abstract class")
|
| 77 |
+
|
| 78 |
+
self.distribution = dist
|
| 79 |
+
self.initialize_options()
|
| 80 |
+
|
| 81 |
+
# Per-command versions of the global flags, so that the user can
|
| 82 |
+
# customize Distutils' behaviour command-by-command and let some
|
| 83 |
+
# commands fall back on the Distribution's behaviour. None means
|
| 84 |
+
# "not defined, check self.distribution's copy", while 0 or 1 mean
|
| 85 |
+
# false and true (duh). Note that this means figuring out the real
|
| 86 |
+
# value of each flag is a touch complicated -- hence "self._dry_run"
|
| 87 |
+
# will be handled by __getattr__, below.
|
| 88 |
+
# XXX This needs to be fixed.
|
| 89 |
+
self._dry_run = None
|
| 90 |
+
|
| 91 |
+
# verbose is largely ignored, but needs to be set for
|
| 92 |
+
# backwards compatibility (I think)?
|
| 93 |
+
self.verbose = dist.verbose
|
| 94 |
+
|
| 95 |
+
# Some commands define a 'self.force' option to ignore file
|
| 96 |
+
# timestamps, but methods defined *here* assume that
|
| 97 |
+
# 'self.force' exists for all commands. So define it here
|
| 98 |
+
# just to be safe.
|
| 99 |
+
self.force = None
|
| 100 |
+
|
| 101 |
+
# The 'help' flag is just used for command-line parsing, so
|
| 102 |
+
# none of that complicated bureaucracy is needed.
|
| 103 |
+
self.help = False
|
| 104 |
+
|
| 105 |
+
# 'finalized' records whether or not 'finalize_options()' has been
|
| 106 |
+
# called. 'finalize_options()' itself should not pay attention to
|
| 107 |
+
# this flag: it is the business of 'ensure_finalized()', which
|
| 108 |
+
# always calls 'finalize_options()', to respect/update it.
|
| 109 |
+
self.finalized = False
|
| 110 |
+
|
| 111 |
+
# XXX A more explicit way to customize dry_run would be better.
|
| 112 |
+
def __getattr__(self, attr):
|
| 113 |
+
if attr == 'dry_run':
|
| 114 |
+
myval = getattr(self, "_" + attr)
|
| 115 |
+
if myval is None:
|
| 116 |
+
return getattr(self.distribution, attr)
|
| 117 |
+
else:
|
| 118 |
+
return myval
|
| 119 |
+
else:
|
| 120 |
+
raise AttributeError(attr)
|
| 121 |
+
|
| 122 |
+
def ensure_finalized(self):
|
| 123 |
+
if not self.finalized:
|
| 124 |
+
self.finalize_options()
|
| 125 |
+
self.finalized = True
|
| 126 |
+
|
| 127 |
+
# Subclasses must define:
|
| 128 |
+
# initialize_options()
|
| 129 |
+
# provide default values for all options; may be customized by
|
| 130 |
+
# setup script, by options from config file(s), or by command-line
|
| 131 |
+
# options
|
| 132 |
+
# finalize_options()
|
| 133 |
+
# decide on the final values for all options; this is called
|
| 134 |
+
# after all possible intervention from the outside world
|
| 135 |
+
# (command-line, option file, etc.) has been processed
|
| 136 |
+
# run()
|
| 137 |
+
# run the command: do whatever it is we're here to do,
|
| 138 |
+
# controlled by the command's various option values
|
| 139 |
+
|
| 140 |
+
def initialize_options(self):
|
| 141 |
+
"""Set default values for all the options that this command
|
| 142 |
+
supports. Note that these defaults may be overridden by other
|
| 143 |
+
commands, by the setup script, by config files, or by the
|
| 144 |
+
command-line. Thus, this is not the place to code dependencies
|
| 145 |
+
between options; generally, 'initialize_options()' implementations
|
| 146 |
+
are just a bunch of "self.foo = None" assignments.
|
| 147 |
+
|
| 148 |
+
This method must be implemented by all command classes.
|
| 149 |
+
"""
|
| 150 |
+
raise RuntimeError(
|
| 151 |
+
f"abstract method -- subclass {self.__class__} must override"
|
| 152 |
+
)
|
| 153 |
+
|
| 154 |
+
def finalize_options(self):
|
| 155 |
+
"""Set final values for all the options that this command supports.
|
| 156 |
+
This is always called as late as possible, ie. after any option
|
| 157 |
+
assignments from the command-line or from other commands have been
|
| 158 |
+
done. Thus, this is the place to code option dependencies: if
|
| 159 |
+
'foo' depends on 'bar', then it is safe to set 'foo' from 'bar' as
|
| 160 |
+
long as 'foo' still has the same value it was assigned in
|
| 161 |
+
'initialize_options()'.
|
| 162 |
+
|
| 163 |
+
This method must be implemented by all command classes.
|
| 164 |
+
"""
|
| 165 |
+
raise RuntimeError(
|
| 166 |
+
f"abstract method -- subclass {self.__class__} must override"
|
| 167 |
+
)
|
| 168 |
+
|
| 169 |
+
def dump_options(self, header=None, indent=""):
|
| 170 |
+
from distutils.fancy_getopt import longopt_xlate
|
| 171 |
+
|
| 172 |
+
if header is None:
|
| 173 |
+
header = f"command options for '{self.get_command_name()}':"
|
| 174 |
+
self.announce(indent + header, level=logging.INFO)
|
| 175 |
+
indent = indent + " "
|
| 176 |
+
for option, _, _ in self.user_options:
|
| 177 |
+
option = option.translate(longopt_xlate)
|
| 178 |
+
if option[-1] == "=":
|
| 179 |
+
option = option[:-1]
|
| 180 |
+
value = getattr(self, option)
|
| 181 |
+
self.announce(indent + f"{option} = {value}", level=logging.INFO)
|
| 182 |
+
|
| 183 |
+
def run(self):
|
| 184 |
+
"""A command's raison d'etre: carry out the action it exists to
|
| 185 |
+
perform, controlled by the options initialized in
|
| 186 |
+
'initialize_options()', customized by other commands, the setup
|
| 187 |
+
script, the command-line, and config files, and finalized in
|
| 188 |
+
'finalize_options()'. All terminal output and filesystem
|
| 189 |
+
interaction should be done by 'run()'.
|
| 190 |
+
|
| 191 |
+
This method must be implemented by all command classes.
|
| 192 |
+
"""
|
| 193 |
+
raise RuntimeError(
|
| 194 |
+
f"abstract method -- subclass {self.__class__} must override"
|
| 195 |
+
)
|
| 196 |
+
|
| 197 |
+
def announce(self, msg, level=logging.DEBUG):
|
| 198 |
+
log.log(level, msg)
|
| 199 |
+
|
| 200 |
+
def debug_print(self, msg):
|
| 201 |
+
"""Print 'msg' to stdout if the global DEBUG (taken from the
|
| 202 |
+
DISTUTILS_DEBUG environment variable) flag is true.
|
| 203 |
+
"""
|
| 204 |
+
from distutils.debug import DEBUG
|
| 205 |
+
|
| 206 |
+
if DEBUG:
|
| 207 |
+
print(msg)
|
| 208 |
+
sys.stdout.flush()
|
| 209 |
+
|
| 210 |
+
# -- Option validation methods -------------------------------------
|
| 211 |
+
# (these are very handy in writing the 'finalize_options()' method)
|
| 212 |
+
#
|
| 213 |
+
# NB. the general philosophy here is to ensure that a particular option
|
| 214 |
+
# value meets certain type and value constraints. If not, we try to
|
| 215 |
+
# force it into conformance (eg. if we expect a list but have a string,
|
| 216 |
+
# split the string on comma and/or whitespace). If we can't force the
|
| 217 |
+
# option into conformance, raise DistutilsOptionError. Thus, command
|
| 218 |
+
# classes need do nothing more than (eg.)
|
| 219 |
+
# self.ensure_string_list('foo')
|
| 220 |
+
# and they can be guaranteed that thereafter, self.foo will be
|
| 221 |
+
# a list of strings.
|
| 222 |
+
|
| 223 |
+
def _ensure_stringlike(self, option, what, default=None):
|
| 224 |
+
val = getattr(self, option)
|
| 225 |
+
if val is None:
|
| 226 |
+
setattr(self, option, default)
|
| 227 |
+
return default
|
| 228 |
+
elif not isinstance(val, str):
|
| 229 |
+
raise DistutilsOptionError(f"'{option}' must be a {what} (got `{val}`)")
|
| 230 |
+
return val
|
| 231 |
+
|
| 232 |
+
def ensure_string(self, option, default=None):
|
| 233 |
+
"""Ensure that 'option' is a string; if not defined, set it to
|
| 234 |
+
'default'.
|
| 235 |
+
"""
|
| 236 |
+
self._ensure_stringlike(option, "string", default)
|
| 237 |
+
|
| 238 |
+
def ensure_string_list(self, option):
|
| 239 |
+
r"""Ensure that 'option' is a list of strings. If 'option' is
|
| 240 |
+
currently a string, we split it either on /,\s*/ or /\s+/, so
|
| 241 |
+
"foo bar baz", "foo,bar,baz", and "foo, bar baz" all become
|
| 242 |
+
["foo", "bar", "baz"].
|
| 243 |
+
"""
|
| 244 |
+
val = getattr(self, option)
|
| 245 |
+
if val is None:
|
| 246 |
+
return
|
| 247 |
+
elif isinstance(val, str):
|
| 248 |
+
setattr(self, option, re.split(r',\s*|\s+', val))
|
| 249 |
+
else:
|
| 250 |
+
if isinstance(val, list):
|
| 251 |
+
ok = all(isinstance(v, str) for v in val)
|
| 252 |
+
else:
|
| 253 |
+
ok = False
|
| 254 |
+
if not ok:
|
| 255 |
+
raise DistutilsOptionError(
|
| 256 |
+
f"'{option}' must be a list of strings (got {val!r})"
|
| 257 |
+
)
|
| 258 |
+
|
| 259 |
+
def _ensure_tested_string(self, option, tester, what, error_fmt, default=None):
|
| 260 |
+
val = self._ensure_stringlike(option, what, default)
|
| 261 |
+
if val is not None and not tester(val):
|
| 262 |
+
raise DistutilsOptionError(
|
| 263 |
+
("error in '%s' option: " + error_fmt) % (option, val)
|
| 264 |
+
)
|
| 265 |
+
|
| 266 |
+
def ensure_filename(self, option):
|
| 267 |
+
"""Ensure that 'option' is the name of an existing file."""
|
| 268 |
+
self._ensure_tested_string(
|
| 269 |
+
option, os.path.isfile, "filename", "'%s' does not exist or is not a file"
|
| 270 |
+
)
|
| 271 |
+
|
| 272 |
+
def ensure_dirname(self, option):
|
| 273 |
+
self._ensure_tested_string(
|
| 274 |
+
option,
|
| 275 |
+
os.path.isdir,
|
| 276 |
+
"directory name",
|
| 277 |
+
"'%s' does not exist or is not a directory",
|
| 278 |
+
)
|
| 279 |
+
|
| 280 |
+
# -- Convenience methods for commands ------------------------------
|
| 281 |
+
|
| 282 |
+
def get_command_name(self):
|
| 283 |
+
if hasattr(self, 'command_name'):
|
| 284 |
+
return self.command_name
|
| 285 |
+
else:
|
| 286 |
+
return self.__class__.__name__
|
| 287 |
+
|
| 288 |
+
def set_undefined_options(self, src_cmd, *option_pairs):
|
| 289 |
+
"""Set the values of any "undefined" options from corresponding
|
| 290 |
+
option values in some other command object. "Undefined" here means
|
| 291 |
+
"is None", which is the convention used to indicate that an option
|
| 292 |
+
has not been changed between 'initialize_options()' and
|
| 293 |
+
'finalize_options()'. Usually called from 'finalize_options()' for
|
| 294 |
+
options that depend on some other command rather than another
|
| 295 |
+
option of the same command. 'src_cmd' is the other command from
|
| 296 |
+
which option values will be taken (a command object will be created
|
| 297 |
+
for it if necessary); the remaining arguments are
|
| 298 |
+
'(src_option,dst_option)' tuples which mean "take the value of
|
| 299 |
+
'src_option' in the 'src_cmd' command object, and copy it to
|
| 300 |
+
'dst_option' in the current command object".
|
| 301 |
+
"""
|
| 302 |
+
# Option_pairs: list of (src_option, dst_option) tuples
|
| 303 |
+
src_cmd_obj = self.distribution.get_command_obj(src_cmd)
|
| 304 |
+
src_cmd_obj.ensure_finalized()
|
| 305 |
+
for src_option, dst_option in option_pairs:
|
| 306 |
+
if getattr(self, dst_option) is None:
|
| 307 |
+
setattr(self, dst_option, getattr(src_cmd_obj, src_option))
|
| 308 |
+
|
| 309 |
+
def get_finalized_command(self, command, create=True):
|
| 310 |
+
"""Wrapper around Distribution's 'get_command_obj()' method: find
|
| 311 |
+
(create if necessary and 'create' is true) the command object for
|
| 312 |
+
'command', call its 'ensure_finalized()' method, and return the
|
| 313 |
+
finalized command object.
|
| 314 |
+
"""
|
| 315 |
+
cmd_obj = self.distribution.get_command_obj(command, create)
|
| 316 |
+
cmd_obj.ensure_finalized()
|
| 317 |
+
return cmd_obj
|
| 318 |
+
|
| 319 |
+
# XXX rename to 'get_reinitialized_command()'? (should do the
|
| 320 |
+
# same in dist.py, if so)
|
| 321 |
+
@overload
|
| 322 |
+
def reinitialize_command(
|
| 323 |
+
self, command: str, reinit_subcommands: bool = False
|
| 324 |
+
) -> Command: ...
|
| 325 |
+
@overload
|
| 326 |
+
def reinitialize_command(
|
| 327 |
+
self, command: _CommandT, reinit_subcommands: bool = False
|
| 328 |
+
) -> _CommandT: ...
|
| 329 |
+
def reinitialize_command(
|
| 330 |
+
self, command: str | Command, reinit_subcommands=False
|
| 331 |
+
) -> Command:
|
| 332 |
+
return self.distribution.reinitialize_command(command, reinit_subcommands)
|
| 333 |
+
|
| 334 |
+
def run_command(self, command):
|
| 335 |
+
"""Run some other command: uses the 'run_command()' method of
|
| 336 |
+
Distribution, which creates and finalizes the command object if
|
| 337 |
+
necessary and then invokes its 'run()' method.
|
| 338 |
+
"""
|
| 339 |
+
self.distribution.run_command(command)
|
| 340 |
+
|
| 341 |
+
def get_sub_commands(self):
|
| 342 |
+
"""Determine the sub-commands that are relevant in the current
|
| 343 |
+
distribution (ie., that need to be run). This is based on the
|
| 344 |
+
'sub_commands' class attribute: each tuple in that list may include
|
| 345 |
+
a method that we call to determine if the subcommand needs to be
|
| 346 |
+
run for the current distribution. Return a list of command names.
|
| 347 |
+
"""
|
| 348 |
+
commands = []
|
| 349 |
+
for cmd_name, method in self.sub_commands:
|
| 350 |
+
if method is None or method(self):
|
| 351 |
+
commands.append(cmd_name)
|
| 352 |
+
return commands
|
| 353 |
+
|
| 354 |
+
# -- External world manipulation -----------------------------------
|
| 355 |
+
|
| 356 |
+
def warn(self, msg):
|
| 357 |
+
log.warning("warning: %s: %s\n", self.get_command_name(), msg)
|
| 358 |
+
|
| 359 |
+
def execute(self, func, args, msg=None, level=1):
|
| 360 |
+
util.execute(func, args, msg, dry_run=self.dry_run)
|
| 361 |
+
|
| 362 |
+
def mkpath(self, name, mode=0o777):
|
| 363 |
+
dir_util.mkpath(name, mode, dry_run=self.dry_run)
|
| 364 |
+
|
| 365 |
+
def copy_file(
|
| 366 |
+
self,
|
| 367 |
+
infile,
|
| 368 |
+
outfile,
|
| 369 |
+
preserve_mode=True,
|
| 370 |
+
preserve_times=True,
|
| 371 |
+
link=None,
|
| 372 |
+
level=1,
|
| 373 |
+
):
|
| 374 |
+
"""Copy a file respecting verbose, dry-run and force flags. (The
|
| 375 |
+
former two default to whatever is in the Distribution object, and
|
| 376 |
+
the latter defaults to false for commands that don't define it.)"""
|
| 377 |
+
return file_util.copy_file(
|
| 378 |
+
infile,
|
| 379 |
+
outfile,
|
| 380 |
+
preserve_mode,
|
| 381 |
+
preserve_times,
|
| 382 |
+
not self.force,
|
| 383 |
+
link,
|
| 384 |
+
dry_run=self.dry_run,
|
| 385 |
+
)
|
| 386 |
+
|
| 387 |
+
def copy_tree(
|
| 388 |
+
self,
|
| 389 |
+
infile,
|
| 390 |
+
outfile,
|
| 391 |
+
preserve_mode=True,
|
| 392 |
+
preserve_times=True,
|
| 393 |
+
preserve_symlinks=False,
|
| 394 |
+
level=1,
|
| 395 |
+
):
|
| 396 |
+
"""Copy an entire directory tree respecting verbose, dry-run,
|
| 397 |
+
and force flags.
|
| 398 |
+
"""
|
| 399 |
+
return dir_util.copy_tree(
|
| 400 |
+
infile,
|
| 401 |
+
outfile,
|
| 402 |
+
preserve_mode,
|
| 403 |
+
preserve_times,
|
| 404 |
+
preserve_symlinks,
|
| 405 |
+
not self.force,
|
| 406 |
+
dry_run=self.dry_run,
|
| 407 |
+
)
|
| 408 |
+
|
| 409 |
+
def move_file(self, src, dst, level=1):
|
| 410 |
+
"""Move a file respecting dry-run flag."""
|
| 411 |
+
return file_util.move_file(src, dst, dry_run=self.dry_run)
|
| 412 |
+
|
| 413 |
+
def spawn(self, cmd, search_path=True, level=1):
|
| 414 |
+
"""Spawn an external command respecting dry-run flag."""
|
| 415 |
+
from distutils.spawn import spawn
|
| 416 |
+
|
| 417 |
+
spawn(cmd, search_path, dry_run=self.dry_run)
|
| 418 |
+
|
| 419 |
+
def make_archive(
|
| 420 |
+
self, base_name, format, root_dir=None, base_dir=None, owner=None, group=None
|
| 421 |
+
):
|
| 422 |
+
return archive_util.make_archive(
|
| 423 |
+
base_name,
|
| 424 |
+
format,
|
| 425 |
+
root_dir,
|
| 426 |
+
base_dir,
|
| 427 |
+
dry_run=self.dry_run,
|
| 428 |
+
owner=owner,
|
| 429 |
+
group=group,
|
| 430 |
+
)
|
| 431 |
+
|
| 432 |
+
def make_file(
|
| 433 |
+
self, infiles, outfile, func, args, exec_msg=None, skip_msg=None, level=1
|
| 434 |
+
):
|
| 435 |
+
"""Special case of 'execute()' for operations that process one or
|
| 436 |
+
more input files and generate one output file. Works just like
|
| 437 |
+
'execute()', except the operation is skipped and a different
|
| 438 |
+
message printed if 'outfile' already exists and is newer than all
|
| 439 |
+
files listed in 'infiles'. If the command defined 'self.force',
|
| 440 |
+
and it is true, then the command is unconditionally run -- does no
|
| 441 |
+
timestamp checks.
|
| 442 |
+
"""
|
| 443 |
+
if skip_msg is None:
|
| 444 |
+
skip_msg = f"skipping {outfile} (inputs unchanged)"
|
| 445 |
+
|
| 446 |
+
# Allow 'infiles' to be a single string
|
| 447 |
+
if isinstance(infiles, str):
|
| 448 |
+
infiles = (infiles,)
|
| 449 |
+
elif not isinstance(infiles, (list, tuple)):
|
| 450 |
+
raise TypeError("'infiles' must be a string, or a list or tuple of strings")
|
| 451 |
+
|
| 452 |
+
if exec_msg is None:
|
| 453 |
+
exec_msg = "generating {} from {}".format(outfile, ', '.join(infiles))
|
| 454 |
+
|
| 455 |
+
# If 'outfile' must be regenerated (either because it doesn't
|
| 456 |
+
# exist, is out-of-date, or the 'force' flag is true) then
|
| 457 |
+
# perform the action that presumably regenerates it
|
| 458 |
+
if self.force or _modified.newer_group(infiles, outfile):
|
| 459 |
+
self.execute(func, args, exec_msg, level)
|
| 460 |
+
# Otherwise, print the "skip" message
|
| 461 |
+
else:
|
| 462 |
+
log.debug(skip_msg)
|
chatunivi/lib/python3.10/site-packages/setuptools/_distutils/errors.py
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Exceptions used by the Distutils modules.
|
| 3 |
+
|
| 4 |
+
Distutils modules may raise these or standard exceptions,
|
| 5 |
+
including :exc:`SystemExit`.
|
| 6 |
+
"""
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
class DistutilsError(Exception):
|
| 10 |
+
"""The root of all Distutils evil."""
|
| 11 |
+
|
| 12 |
+
pass
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
class DistutilsModuleError(DistutilsError):
|
| 16 |
+
"""Unable to load an expected module, or to find an expected class
|
| 17 |
+
within some module (in particular, command modules and classes)."""
|
| 18 |
+
|
| 19 |
+
pass
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
class DistutilsClassError(DistutilsError):
|
| 23 |
+
"""Some command class (or possibly distribution class, if anyone
|
| 24 |
+
feels a need to subclass Distribution) is found not to be holding
|
| 25 |
+
up its end of the bargain, ie. implementing some part of the
|
| 26 |
+
"command "interface."""
|
| 27 |
+
|
| 28 |
+
pass
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
class DistutilsGetoptError(DistutilsError):
|
| 32 |
+
"""The option table provided to 'fancy_getopt()' is bogus."""
|
| 33 |
+
|
| 34 |
+
pass
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
class DistutilsArgError(DistutilsError):
|
| 38 |
+
"""Raised by fancy_getopt in response to getopt.error -- ie. an
|
| 39 |
+
error in the command line usage."""
|
| 40 |
+
|
| 41 |
+
pass
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
class DistutilsFileError(DistutilsError):
|
| 45 |
+
"""Any problems in the filesystem: expected file not found, etc.
|
| 46 |
+
Typically this is for problems that we detect before OSError
|
| 47 |
+
could be raised."""
|
| 48 |
+
|
| 49 |
+
pass
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
class DistutilsOptionError(DistutilsError):
|
| 53 |
+
"""Syntactic/semantic errors in command options, such as use of
|
| 54 |
+
mutually conflicting options, or inconsistent options,
|
| 55 |
+
badly-spelled values, etc. No distinction is made between option
|
| 56 |
+
values originating in the setup script, the command line, config
|
| 57 |
+
files, or what-have-you -- but if we *know* something originated in
|
| 58 |
+
the setup script, we'll raise DistutilsSetupError instead."""
|
| 59 |
+
|
| 60 |
+
pass
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
class DistutilsSetupError(DistutilsError):
|
| 64 |
+
"""For errors that can be definitely blamed on the setup script,
|
| 65 |
+
such as invalid keyword arguments to 'setup()'."""
|
| 66 |
+
|
| 67 |
+
pass
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
class DistutilsPlatformError(DistutilsError):
|
| 71 |
+
"""We don't know how to do something on the current platform (but
|
| 72 |
+
we do know how to do it on some platform) -- eg. trying to compile
|
| 73 |
+
C files on a platform not supported by a CCompiler subclass."""
|
| 74 |
+
|
| 75 |
+
pass
|
| 76 |
+
|
| 77 |
+
|
| 78 |
+
class DistutilsExecError(DistutilsError):
|
| 79 |
+
"""Any problems executing an external program (such as the C
|
| 80 |
+
compiler, when compiling C files)."""
|
| 81 |
+
|
| 82 |
+
pass
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
class DistutilsInternalError(DistutilsError):
|
| 86 |
+
"""Internal inconsistencies or impossibilities (obviously, this
|
| 87 |
+
should never be seen if the code is working!)."""
|
| 88 |
+
|
| 89 |
+
pass
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
class DistutilsTemplateError(DistutilsError):
|
| 93 |
+
"""Syntax error in a file list template."""
|
| 94 |
+
|
| 95 |
+
|
| 96 |
+
class DistutilsByteCompileError(DistutilsError):
|
| 97 |
+
"""Byte compile error."""
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
# Exception classes used by the CCompiler implementation classes
|
| 101 |
+
class CCompilerError(Exception):
|
| 102 |
+
"""Some compile/link operation failed."""
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
class PreprocessError(CCompilerError):
|
| 106 |
+
"""Failure to preprocess one or more C/C++ files."""
|
| 107 |
+
|
| 108 |
+
|
| 109 |
+
class CompileError(CCompilerError):
|
| 110 |
+
"""Failure to compile one or more C/C++ source files."""
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
class LibError(CCompilerError):
|
| 114 |
+
"""Failure to create a static library from one or more C/C++ object
|
| 115 |
+
files."""
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
class LinkError(CCompilerError):
|
| 119 |
+
"""Failure to link one or more C/C++ object files into an executable
|
| 120 |
+
or shared library file."""
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
class UnknownFileError(CCompilerError):
|
| 124 |
+
"""Attempt to process an unknown file type."""
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (457 Bytes). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/contexts.cpython-310.pyc
ADDED
|
Binary file (3.93 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/environment.cpython-310.pyc
ADDED
|
Binary file (2.09 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/fixtures.cpython-310.pyc
ADDED
|
Binary file (4.11 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/mod_with_constant.cpython-310.pyc
ADDED
|
Binary file (180 Bytes). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/namespaces.cpython-310.pyc
ADDED
|
Binary file (2.73 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/script-with-bom.cpython-310.pyc
ADDED
|
Binary file (174 Bytes). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/server.cpython-310.pyc
ADDED
|
Binary file (3.38 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_archive_util.cpython-310.pyc
ADDED
|
Binary file (1.15 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_bdist_deprecations.cpython-310.pyc
ADDED
|
Binary file (1.03 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_bdist_egg.cpython-310.pyc
ADDED
|
Binary file (2.36 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_bdist_wheel.cpython-310.pyc
ADDED
|
Binary file (20.3 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_build.cpython-310.pyc
ADDED
|
Binary file (1.38 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_build_clib.cpython-310.pyc
ADDED
|
Binary file (2.26 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_build_ext.cpython-310.pyc
ADDED
|
Binary file (9.37 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_build_meta.cpython-310.pyc
ADDED
|
Binary file (28.8 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_build_py.cpython-310.pyc
ADDED
|
Binary file (10.8 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_config_discovery.cpython-310.pyc
ADDED
|
Binary file (20.5 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_core_metadata.cpython-310.pyc
ADDED
|
Binary file (14.9 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_depends.cpython-310.pyc
ADDED
|
Binary file (759 Bytes). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_develop.cpython-310.pyc
ADDED
|
Binary file (5.69 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_dist.cpython-310.pyc
ADDED
|
Binary file (6.93 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_dist_info.cpython-310.pyc
ADDED
|
Binary file (7.04 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_distutils_adoption.cpython-310.pyc
ADDED
|
Binary file (5.62 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_easy_install.cpython-310.pyc
ADDED
|
Binary file (44.4 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_editable_install.cpython-310.pyc
ADDED
|
Binary file (36.9 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_egg_info.cpython-310.pyc
ADDED
|
Binary file (30.7 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_extern.cpython-310.pyc
ADDED
|
Binary file (605 Bytes). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_find_packages.cpython-310.pyc
ADDED
|
Binary file (8.14 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_find_py_modules.cpython-310.pyc
ADDED
|
Binary file (2.67 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_glob.cpython-310.pyc
ADDED
|
Binary file (964 Bytes). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_install_scripts.cpython-310.pyc
ADDED
|
Binary file (3.66 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_logging.cpython-310.pyc
ADDED
|
Binary file (2.04 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_manifest.cpython-310.pyc
ADDED
|
Binary file (15.9 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_namespaces.cpython-310.pyc
ADDED
|
Binary file (3.48 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_packageindex.cpython-310.pyc
ADDED
|
Binary file (13.9 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_sandbox.cpython-310.pyc
ADDED
|
Binary file (6.25 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_sdist.cpython-310.pyc
ADDED
|
Binary file (28.2 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_setopt.cpython-310.pyc
ADDED
|
Binary file (1.9 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_setuptools.cpython-310.pyc
ADDED
|
Binary file (9.93 kB). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_shutil_wrapper.cpython-310.pyc
ADDED
|
Binary file (830 Bytes). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_unicode_utils.cpython-310.pyc
ADDED
|
Binary file (686 Bytes). View file
|
|
|
chatunivi/lib/python3.10/site-packages/setuptools/tests/__pycache__/test_virtualenv.cpython-310.pyc
ADDED
|
Binary file (2.78 kB). View file
|
|
|