3 BuÆ_‘ã@srddlZddlmZddlmZerTddlmZddlmZddl m Z ddl m Z eej ƒGdd „d eƒƒZdS) éN)Ú add_metaclass)ÚMYPY_CHECK_RUNNING)ÚOptional)Ú Distribution)ÚInstallRequirement)Ú PackageFindercs<eZdZdZ‡fdd„Zejdd„ƒZejdd„ƒZ‡Z S)ÚAbstractDistributiona A base class for handling installable artifacts. The requirements for anything installable are as follows: - we must be able to determine the requirement name (or we can't correctly handle the non-upgrade case). - for packages with setup requirements, we must also be able to determine their requirements without installing additional packages (for the same reason as run-time dependencies) - we must be able to create a Distribution object exposing the above metadata. cstt|ƒjƒ||_dS)N)ÚsuperrÚ__init__Úreq)Úselfr )Ú __class__©ú/builddir/build/BUILDROOT/alt-python36-pip-20.2.4-1.el7.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/distributions/base.pyr szAbstractDistribution.__init__cCs tƒ‚dS)N)ÚNotImplementedError)r rrrÚget_pkg_resources_distribution%sz3AbstractDistribution.get_pkg_resources_distributioncCs tƒ‚dS)N)r)r ÚfinderÚbuild_isolationrrrÚprepare_distribution_metadata*sz2AbstractDistribution.prepare_distribution_metadata) Ú__name__Ú __module__Ú __qualname__Ú__doc__r ÚabcÚabstractmethodrrÚ __classcell__rr)r rrs r)rZpip._vendor.sixrÚpip._internal.utils.typingrÚtypingrZpip._vendor.pkg_resourcesrZpip._internal.reqrÚ"pip._internal.index.package_finderrÚABCMetaÚobjectrrrrrÚs