SILENT KILLERPanel

Current Path: > > opt > alt > python27 > lib > > python2.7 > site-packages > pip > _vendor > > pep517


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 ]

Files and Folders in: //opt/alt/python27/lib//python2.7/site-packages/pip/_vendor//pep517

NameTypeSizeLast ModifiedActions
__init__.py File 84 bytes November 13 2023 21:11:11.
__init__.pyc File 336 bytes November 13 2023 21:11:11.
_in_process.py File 8438 bytes November 13 2023 21:11:11.
_in_process.pyc File 12489 bytes November 13 2023 21:11:11.
build.py File 3335 bytes November 13 2023 21:11:11.
build.pyc File 4846 bytes November 13 2023 21:11:11.
check.py File 5961 bytes November 13 2023 21:11:11.
check.pyc File 6417 bytes November 13 2023 21:11:11.
colorlog.py File 4098 bytes November 13 2023 21:11:11.
colorlog.pyc File 4074 bytes November 13 2023 21:11:11.
compat.py File 780 bytes November 13 2023 21:11:11.
compat.pyc File 1783 bytes November 13 2023 21:11:11.
dirtools.py File 1129 bytes November 13 2023 21:11:11.
dirtools.pyc File 2007 bytes November 13 2023 21:11:11.
envbuild.py File 6041 bytes November 13 2023 21:11:11.
envbuild.pyc File 6083 bytes November 13 2023 21:11:11.
meta.py File 2463 bytes November 13 2023 21:11:11.
meta.pyc File 3995 bytes November 13 2023 21:11:11.
wrappers.py File 10783 bytes November 13 2023 21:11:11.
wrappers.pyc File 14890 bytes November 13 2023 21:11:11.

Reading File: //opt/alt/python27/lib//python2.7/site-packages/pip/_vendor//pep517/dirtools.py

import os
import io
import contextlib
import tempfile
import shutil
import errno
import zipfile


@contextlib.contextmanager
def tempdir():
    """Create a temporary directory in a context manager."""
    td = tempfile.mkdtemp()
    try:
        yield td
    finally:
        shutil.rmtree(td)


def mkdir_p(*args, **kwargs):
    """Like `mkdir`, but does not raise an exception if the
    directory already exists.
    """
    try:
        return os.mkdir(*args, **kwargs)
    except OSError as exc:
        if exc.errno != errno.EEXIST:
            raise


def dir_to_zipfile(root):
    """Construct an in-memory zip file for a directory."""
    buffer = io.BytesIO()
    zip_file = zipfile.ZipFile(buffer, 'w')
    for root, dirs, files in os.walk(root):
        for path in dirs:
            fs_path = os.path.join(root, path)
            rel_path = os.path.relpath(fs_path, root)
            zip_file.writestr(rel_path + '/', '')
        for path in files:
            fs_path = os.path.join(root, path)
            rel_path = os.path.relpath(fs_path, root)
            zip_file.write(fs_path, rel_path)
    return zip_file

SILENT KILLER Tool