OXIESEC PANEL
- Current Dir:
/
/
snap
/
certbot
/
4737
/
lib
/
python3.12
/
site-packages
/
cffi
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
06/12/2025 06:19:50 PM
rwxr-xr-x
📄
__init__.py
513 bytes
06/12/2025 06:19:38 PM
rw-r--r--
📁
__pycache__
-
06/12/2025 06:19:48 PM
rwxr-xr-x
📄
_cffi_errors.h
3.82 KB
06/12/2025 06:19:38 PM
rw-r--r--
📄
_cffi_include.h
14.7 KB
06/12/2025 06:19:38 PM
rw-r--r--
📄
_embedding.h
18.35 KB
06/12/2025 06:19:38 PM
rw-r--r--
📄
_imp_emulation.py
2.89 KB
06/12/2025 06:19:38 PM
rw-r--r--
📄
_shimmed_dist_utils.py
2.18 KB
06/12/2025 06:19:38 PM
rw-r--r--
📄
api.py
41.18 KB
06/12/2025 06:19:38 PM
rw-r--r--
📄
backend_ctypes.py
41.46 KB
06/12/2025 06:19:38 PM
rw-r--r--
📄
cffi_opcode.py
5.6 KB
06/12/2025 06:19:38 PM
rw-r--r--
📄
commontypes.py
2.74 KB
06/12/2025 06:19:38 PM
rw-r--r--
📄
cparser.py
43.74 KB
06/12/2025 06:19:38 PM
rw-r--r--
📄
error.py
877 bytes
06/12/2025 06:19:38 PM
rw-r--r--
📄
ffiplatform.py
3.5 KB
06/12/2025 06:19:38 PM
rw-r--r--
📄
lock.py
747 bytes
06/12/2025 06:19:38 PM
rw-r--r--
📄
model.py
21.29 KB
06/12/2025 06:19:38 PM
rw-r--r--
📄
parse_c_type.h
5.84 KB
06/12/2025 06:19:38 PM
rw-r--r--
📄
pkgconfig.py
4.27 KB
06/12/2025 06:19:38 PM
rw-r--r--
📄
recompiler.py
63.83 KB
06/12/2025 06:19:38 PM
rw-r--r--
📄
setuptools_ext.py
8.66 KB
06/12/2025 06:19:38 PM
rw-r--r--
📄
vengine_cpy.py
42.73 KB
06/12/2025 06:19:38 PM
rw-r--r--
📄
vengine_gen.py
26.31 KB
06/12/2025 06:19:38 PM
rw-r--r--
📄
verifier.py
10.92 KB
06/12/2025 06:19:38 PM
rw-r--r--
Editing: _shimmed_dist_utils.py
Close
""" Temporary shim module to indirect the bits of distutils we need from setuptools/distutils while providing useful error messages beyond `No module named 'distutils' on Python >= 3.12, or when setuptools' vendored distutils is broken. This is a compromise to avoid a hard-dep on setuptools for Python >= 3.12, since many users don't need runtime compilation support from CFFI. """ import sys try: # import setuptools first; this is the most robust way to ensure its embedded distutils is available # (the .pth shim should usually work, but this is even more robust) import setuptools except Exception as ex: if sys.version_info >= (3, 12): # Python 3.12 has no built-in distutils to fall back on, so any import problem is fatal raise Exception("This CFFI feature requires setuptools on Python >= 3.12. The setuptools module is missing or non-functional.") from ex # silently ignore on older Pythons (support fallback to stdlib distutils where available) else: del setuptools try: # bring in just the bits of distutils we need, whether they really came from setuptools or stdlib-embedded distutils from distutils import log, sysconfig from distutils.ccompiler import CCompiler from distutils.command.build_ext import build_ext from distutils.core import Distribution, Extension from distutils.dir_util import mkpath from distutils.errors import DistutilsSetupError, CompileError, LinkError from distutils.log import set_threshold, set_verbosity if sys.platform == 'win32': try: # FUTURE: msvc9compiler module was removed in setuptools 74; consider removing, as it's only used by an ancient patch in `recompiler` from distutils.msvc9compiler import MSVCCompiler except ImportError: MSVCCompiler = None except Exception as ex: if sys.version_info >= (3, 12): raise Exception("This CFFI feature requires setuptools on Python >= 3.12. Please install the setuptools package.") from ex # anything older, just let the underlying distutils import error fly raise Exception("This CFFI feature requires distutils. Please install the distutils or setuptools package.") from ex del sys