404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.147.71.116: ~ $
"""
Installation paths.

Map the .data/ subdirectory names to install paths.
"""

import distutils.command.install as install
import distutils.dist as dist
import os.path
import sys


def get_install_command(name):
    # late binding due to potential monkeypatching
    d = dist.Distribution({'name': name})
    i = install.install(d)
    i.finalize_options()
    return i


def get_install_paths(name):
    """
    Return the (distutils) install paths for the named dist.

    A dict with ('purelib', 'platlib', 'headers', 'scripts', 'data') keys.
    """
    paths = {}

    i = get_install_command(name)

    for key in install.SCHEME_KEYS:
        paths[key] = getattr(i, 'install_' + key)

    # pip uses a similar path as an alternative to the system's (read-only)
    # include directory:
    if hasattr(sys, 'real_prefix'):  # virtualenv
        paths['headers'] = os.path.join(sys.prefix,
                                        'include',
                                        'site',
                                        'python' + sys.version[:3],
                                        name)

    return paths

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
signatures Folder 0755
tool Folder 0755
__init__.py File 96 B 0644
__main__.py File 419 B 0644
archive.py File 2.32 KB 0644
bdist_wheel.py File 18.41 KB 0644
decorator.py File 541 B 0644
egg2wheel.py File 2.97 KB 0644
install.py File 18 KB 0644
metadata.py File 11.29 KB 0644
paths.py File 1.1 KB 0644
pep425tags.py File 5.63 KB 0644
pkginfo.py File 1.23 KB 0644
util.py File 4.62 KB 0644
wininst2wheel.py File 7.59 KB 0644