Re@sddlZddlmZddlmZerrddlmZddlmZddl m Z ddl m Z eej Gdd d eZdS) N) add_metaclass)MYPY_CHECK_RUNNING)Optional) Distribution)InstallRequirement) PackageFindercsReZdZdZfddZejddZejddZS)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. cs tt|j||_dS)N)superr__init__req)selfr ) __class__/builddir/build/BUILDROOT/alt-python35-pip-20.2.4-5.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/pip/_internal/distributions/base.pyr szAbstractDistribution.__init__cCs tdS)N)NotImplementedError)r rrrget_pkg_resources_distribution%sz3AbstractDistribution.get_pkg_resources_distributioncCs tdS)N)r)r finderbuild_isolationrrrprepare_distribution_metadata*sz2AbstractDistribution.prepare_distribution_metadata) __name__ __module__ __qualname____doc__r abcabstractmethodrrrr)r rrs r)rZpip._vendor.sixrpip._internal.utils.typingrtypingrZpip._vendor.pkg_resourcesrZpip._internal.reqr"pip._internal.index.package_finderrABCMetaobjectrrrrrs