X7ROOT File Manager
Current Path:
/opt/alt/python313/lib/python3.13/site-packages/setuptools/_distutils
opt
/
alt
/
python313
/
lib
/
python3.13
/
site-packages
/
setuptools
/
_distutils
/
ðŸ“
..
📄
__init__.py
(359 B)
ðŸ“
__pycache__
📄
_collections.py
(5.18 KB)
📄
_functools.py
(1.73 KB)
📄
_log.py
(43 B)
📄
_macos_compat.py
(239 B)
📄
_modified.py
(2.35 KB)
📄
_msvccompiler.py
(19.16 KB)
📄
archive_util.py
(8.37 KB)
📄
bcppcompiler.py
(14.38 KB)
📄
ccompiler.py
(47.5 KB)
📄
cmd.py
(17.44 KB)
ðŸ“
command
📄
config.py
(4.8 KB)
📄
core.py
(9.18 KB)
📄
cygwinccompiler.py
(11.64 KB)
📄
debug.py
(139 B)
📄
dep_util.py
(349 B)
📄
dir_util.py
(7.88 KB)
📄
dist.py
(49 KB)
📄
errors.py
(3.5 KB)
📄
extension.py
(10.03 KB)
📄
fancy_getopt.py
(17.48 KB)
📄
file_util.py
(8.02 KB)
📄
filelist.py
(13.39 KB)
📄
log.py
(1.17 KB)
📄
msvc9compiler.py
(29.48 KB)
📄
msvccompiler.py
(23.02 KB)
📄
py38compat.py
(217 B)
📄
py39compat.py
(1.92 KB)
📄
spawn.py
(3.41 KB)
📄
sysconfig.py
(18.48 KB)
📄
text_file.py
(11.8 KB)
📄
unixccompiler.py
(15.24 KB)
📄
util.py
(17.68 KB)
📄
version.py
(12.65 KB)
📄
versionpredicate.py
(5.08 KB)
Editing: py39compat.py
import functools import itertools import platform import sys def add_ext_suffix_39(vars): """ Ensure vars contains 'EXT_SUFFIX'. pypa/distutils#130 """ import _imp ext_suffix = _imp.extension_suffixes()[0] vars.update( EXT_SUFFIX=ext_suffix, # sysconfig sets SO to match EXT_SUFFIX, so maintain # that expectation. # https://github.com/python/cpython/blob/785cc6770588de087d09e89a69110af2542be208/Lib/sysconfig.py#L671-L673 SO=ext_suffix, ) needs_ext_suffix = sys.version_info < (3, 10) and platform.system() == 'Windows' add_ext_suffix = add_ext_suffix_39 if needs_ext_suffix else lambda vars: None # from more_itertools class UnequalIterablesError(ValueError): def __init__(self, details=None): msg = 'Iterables have different lengths' if details is not None: msg += (': index 0 has length {}; index {} has length {}').format(*details) super().__init__(msg) # from more_itertools def _zip_equal_generator(iterables): _marker = object() for combo in itertools.zip_longest(*iterables, fillvalue=_marker): for val in combo: if val is _marker: raise UnequalIterablesError() yield combo # from more_itertools def _zip_equal(*iterables): # Check whether the iterables are all the same size. try: first_size = len(iterables[0]) for i, it in enumerate(iterables[1:], 1): size = len(it) if size != first_size: raise UnequalIterablesError(details=(first_size, i, size)) # All sizes are equal, we can use the built-in zip. return zip(*iterables) # If any one of the iterables didn't have a length, start reading # them until one runs out. except TypeError: return _zip_equal_generator(iterables) zip_strict = ( _zip_equal if sys.version_info < (3, 10) else functools.partial(zip, strict=True) )
Upload File
Create Folder