SILENT KILLERPanel

Current Path: > > opt > alt > python27 > lib64 > python2.7 > distutils


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/lib64/python2.7/distutils

NameTypeSizeLast ModifiedActions
command Directory - -
README File 295 bytes January 08 2025 10:43:28.
__init__.py File 236 bytes January 08 2025 10:43:29.
__init__.pyc File 428 bytes January 08 2025 10:43:30.
__init__.pyo File 428 bytes January 08 2025 10:43:30.
archive_util.py File 8219 bytes January 08 2025 10:43:30.
archive_util.pyc File 7705 bytes January 08 2025 10:43:30.
archive_util.pyo File 7705 bytes January 08 2025 10:43:30.
bcppcompiler.py File 14941 bytes January 08 2025 10:43:29.
bcppcompiler.pyc File 7999 bytes January 08 2025 10:43:30.
bcppcompiler.pyo File 7999 bytes January 08 2025 10:43:30.
ccompiler.py File 46726 bytes January 08 2025 10:43:30.
ccompiler.pyc File 37597 bytes January 08 2025 10:43:30.
ccompiler.pyo File 37456 bytes January 08 2025 10:43:30.
cmd.py File 19270 bytes January 08 2025 10:43:28.
cmd.pyc File 17285 bytes January 08 2025 10:43:30.
cmd.pyo File 17285 bytes January 08 2025 10:43:30.
config.py File 4134 bytes January 08 2025 10:43:29.
config.pyc File 3656 bytes January 08 2025 10:43:28.
config.pyo File 3656 bytes January 08 2025 10:43:28.
core.py File 9019 bytes January 08 2025 10:43:30.
core.pyc File 7588 bytes January 08 2025 10:43:30.
core.pyo File 7588 bytes January 08 2025 10:43:30.
cygwinccompiler.py File 17735 bytes January 08 2025 10:43:30.
cygwinccompiler.pyc File 9981 bytes January 08 2025 10:43:30.
cygwinccompiler.pyo File 9981 bytes January 08 2025 10:43:30.
debug.py File 162 bytes January 08 2025 10:43:29.
debug.pyc File 267 bytes January 08 2025 10:43:28.
debug.pyo File 267 bytes January 08 2025 10:43:28.
dep_util.py File 3509 bytes January 08 2025 10:43:28.
dep_util.pyc File 3232 bytes January 08 2025 10:43:30.
dep_util.pyo File 3232 bytes January 08 2025 10:43:30.
dir_util.py File 7868 bytes January 08 2025 10:43:30.
dir_util.pyc File 6877 bytes January 08 2025 10:43:30.
dir_util.pyo File 6877 bytes January 08 2025 10:43:30.
dist.py File 50049 bytes January 08 2025 10:43:30.
dist.pyc File 40047 bytes January 08 2025 10:43:30.
dist.pyo File 40047 bytes January 08 2025 10:43:30.
emxccompiler.py File 11931 bytes January 08 2025 10:43:29.
emxccompiler.pyc File 7584 bytes January 08 2025 10:43:30.
emxccompiler.pyo File 7584 bytes January 08 2025 10:43:30.
errors.py File 3494 bytes January 08 2025 10:43:29.
errors.pyc File 6545 bytes January 08 2025 10:43:29.
errors.pyo File 6545 bytes January 08 2025 10:43:29.
extension.py File 10904 bytes January 08 2025 10:43:30.
extension.pyc File 7464 bytes January 08 2025 10:43:30.
extension.pyo File 7238 bytes January 08 2025 10:43:30.
fancy_getopt.py File 17948 bytes January 08 2025 10:43:30.
fancy_getopt.pyc File 12231 bytes January 08 2025 10:43:30.
fancy_getopt.pyo File 12054 bytes January 08 2025 10:43:30.
file_util.py File 8131 bytes January 08 2025 10:43:30.
file_util.pyc File 6815 bytes January 08 2025 10:43:28.
file_util.pyo File 6815 bytes January 08 2025 10:43:28.
filelist.py File 12689 bytes January 08 2025 10:43:30.
filelist.pyc File 10977 bytes January 08 2025 10:43:28.
filelist.pyo File 10977 bytes January 08 2025 10:43:28.
log.py File 1686 bytes January 08 2025 10:43:30.
log.pyc File 2942 bytes January 08 2025 10:43:31.
log.pyo File 2942 bytes January 08 2025 10:43:31.
msvc9compiler.py File 31004 bytes January 08 2025 10:43:30.
msvc9compiler.pyc File 21900 bytes January 08 2025 10:43:30.
msvc9compiler.pyo File 21827 bytes January 08 2025 10:43:28.
msvccompiler.py File 23637 bytes January 08 2025 10:43:30.
msvccompiler.pyc File 17863 bytes January 08 2025 10:43:29.
msvccompiler.pyo File 17863 bytes January 08 2025 10:43:29.
spawn.py File 8648 bytes January 08 2025 10:43:30.
spawn.pyc File 6518 bytes January 08 2025 10:43:30.
spawn.pyo File 6518 bytes January 08 2025 10:43:30.
sysconfig.py File 17707 bytes January 08 2025 10:43:30.
sysconfig.py.debug-build File 17622 bytes January 08 2025 10:43:29.
sysconfig.pyc File 13609 bytes January 08 2025 10:43:30.
sysconfig.pyo File 13609 bytes January 08 2025 10:43:30.
text_file.py File 12428 bytes January 08 2025 10:43:30.
text_file.pyc File 9402 bytes January 08 2025 10:43:30.
text_file.pyo File 9402 bytes January 08 2025 10:43:30.
unixccompiler.py File 14222 bytes January 08 2025 10:43:28.
unixccompiler.py.distutils-rpath File 13677 bytes January 08 2025 10:43:30.
unixccompiler.pyc File 8385 bytes January 08 2025 10:43:28.
unixccompiler.pyo File 8385 bytes January 08 2025 10:43:28.
util.py File 18236 bytes January 08 2025 10:43:30.
util.pyc File 14568 bytes January 08 2025 10:43:28.
util.pyo File 14568 bytes January 08 2025 10:43:28.
version.py File 11433 bytes January 08 2025 10:43:29.
version.pyc File 7403 bytes January 08 2025 10:43:30.
version.pyo File 7403 bytes January 08 2025 10:43:30.
versionpredicate.py File 5095 bytes January 08 2025 10:43:30.
versionpredicate.pyc File 5633 bytes January 08 2025 10:43:30.
versionpredicate.pyo File 5633 bytes January 08 2025 10:43:30.

Reading File: //opt/alt/python27/lib64/python2.7/distutils/config.py

"""distutils.pypirc

Provides the PyPIRCCommand class, the base class for the command classes
that uses .pypirc in the distutils.command package.
"""
import os
from ConfigParser import ConfigParser

from distutils.cmd import Command

DEFAULT_PYPIRC = """\
[distutils]
index-servers =
    pypi

[pypi]
username:%s
password:%s
"""

class PyPIRCCommand(Command):
    """Base command that knows how to handle the .pypirc file
    """
    DEFAULT_REPOSITORY = 'https://upload.pypi.org/legacy/'
    DEFAULT_REALM = 'pypi'
    repository = None
    realm = None

    user_options = [
        ('repository=', 'r',
         "url of repository [default: %s]" % \
            DEFAULT_REPOSITORY),
        ('show-response', None,
         'display full response text from server')]

    boolean_options = ['show-response']

    def _get_rc_file(self):
        """Returns rc file path."""
        return os.path.join(os.path.expanduser('~'), '.pypirc')

    def _store_pypirc(self, username, password):
        """Creates a default .pypirc file."""
        rc = self._get_rc_file()
        f = os.fdopen(os.open(rc, os.O_CREAT | os.O_WRONLY, 0600), 'w')
        try:
            f.write(DEFAULT_PYPIRC % (username, password))
        finally:
            f.close()

    def _read_pypirc(self):
        """Reads the .pypirc file."""
        rc = self._get_rc_file()
        if os.path.exists(rc):
            self.announce('Using PyPI login from %s' % rc)
            repository = self.repository or self.DEFAULT_REPOSITORY
            config = ConfigParser()
            config.read(rc)
            sections = config.sections()
            if 'distutils' in sections:
                # let's get the list of servers
                index_servers = config.get('distutils', 'index-servers')
                _servers = [server.strip() for server in
                            index_servers.split('\n')
                            if server.strip() != '']
                if _servers == []:
                    # nothing set, let's try to get the default pypi
                    if 'pypi' in sections:
                        _servers = ['pypi']
                    else:
                        # the file is not properly defined, returning
                        # an empty dict
                        return {}
                for server in _servers:
                    current = {'server': server}
                    current['username'] = config.get(server, 'username')

                    # optional params
                    for key, default in (('repository',
                                          self.DEFAULT_REPOSITORY),
                                         ('realm', self.DEFAULT_REALM),
                                         ('password', None)):
                        if config.has_option(server, key):
                            current[key] = config.get(server, key)
                        else:
                            current[key] = default
                    if (current['server'] == repository or
                        current['repository'] == repository):
                        return current
            elif 'server-login' in sections:
                # old format
                server = 'server-login'
                if config.has_option(server, 'repository'):
                    repository = config.get(server, 'repository')
                else:
                    repository = self.DEFAULT_REPOSITORY
                return {'username': config.get(server, 'username'),
                        'password': config.get(server, 'password'),
                        'repository': repository,
                        'server': server,
                        'realm': self.DEFAULT_REALM}

        return {}

    def initialize_options(self):
        """Initialize options."""
        self.repository = None
        self.realm = None
        self.show_response = 0

    def finalize_options(self):
        """Finalizes options."""
        if self.repository is None:
            self.repository = self.DEFAULT_REPOSITORY
        if self.realm is None:
            self.realm = self.DEFAULT_REALM

SILENT KILLER Tool