- Overview
- Tutorial
- Installation
- Testing
- First steps
- Using the database API
- Distribution dependencies
- Using the locators API
- Using the index API
- Using the metadata and markers APIs
- Using the resource API
- Using the scripts API
- Using the version API
- Using the wheel API
- Using the manifest API
- Next steps
- Distlib’s design
- API Reference
- The
distlibpackage - The
distlib.databasepackage - The
distlib.resourcespackage - The
distlib.scriptspackage- Classes
ScriptMakerScriptMaker.source_dirScriptMaker.target_dirScriptMaker.add_launchersScriptMaker.forceScriptMaker.clobberScriptMaker.executableScriptMaker.set_modeScriptMaker.script_templateScriptMaker.version_infoScriptMaker.variant_separatorScriptMaker.__init__()ScriptMaker.make()ScriptMaker.make_multiple()ScriptMaker.get_script_filenames()
- Functions
- Classes
- The
distlib.locatorspackage - The
distlib.indexpackage- Classes
PackageIndexPackageIndex.__init__()PackageIndex.register()PackageIndex.upload_file()PackageIndex.upload_documentation()PackageIndex.verify_signature()PackageIndex.read_configuration()PackageIndex.save_configuration()PackageIndex.search()PackageIndex.usernamePackageIndex.passwordPackageIndex.gpgPackageIndex.gpg_homePackageIndex.mirrorsPackageIndex.boundary
- Classes
- The
distlib.utilpackage - The
distlib.wheelpackage - The
distlib.versionspackage - The
distlib.manifestpackage - The
distlib.metadatapackage - The
distlib.markerspackage - Next steps
- The
- Migrating from older APIs
Source code for distlib
# -*- coding: utf-8 -*-
#
# Copyright (C) 2012-2024 Vinay Sajip.
# Licensed to the Python Software Foundation under a contributor agreement.
# See LICENSE.txt and CONTRIBUTORS.txt.
#
import logging
__version__ = '0.4.1.dev0'
try:
from logging import NullHandler
except ImportError: # pragma: no cover
class NullHandler(logging.Handler):
def handle(self, record):
pass
def emit(self, record):
pass
def createLock(self):
self.lock = None
logger = logging.getLogger(__name__)
logger.addHandler(NullHandler())