ó
0ħE^c           @   s   d  d l  Z  d  d l m Z d  d l m Z e ru d  d l m Z d  d l m Z d  d l	 m
 Z
 d  d l m Z n  e e  j  d e f d	     Y Z d S(
   i˙˙˙˙N(   t   add_metaclass(   t   MYPY_CHECK_RUNNING(   t   Optional(   t   Distribution(   t   InstallRequirement(   t   PackageFindert   AbstractDistributionc           B   s;   e  Z d  Z d   Z e j d    Z e j d    Z RS(   s  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.
    c         C   s    t  t |   j   | |  _ d  S(   N(   t   superR   t   __init__t   req(   t   selfR	   (    (    s=   /tmp/pip-build-iCT__d/pip/pip/_internal/distributions/base.pyR       s    c         C   s   t     d  S(   N(   t   NotImplementedError(   R
   (    (    s=   /tmp/pip-build-iCT__d/pip/pip/_internal/distributions/base.pyt   get_pkg_resources_distribution%   s    c         C   s   t     d  S(   N(   R   (   R
   t   findert   build_isolation(    (    s=   /tmp/pip-build-iCT__d/pip/pip/_internal/distributions/base.pyt   prepare_distribution_metadata*   s    (   t   __name__t
   __module__t   __doc__R   t   abct   abstractmethodR   R   (    (    (    s=   /tmp/pip-build-iCT__d/pip/pip/_internal/distributions/base.pyR      s   	(   R   t   pip._vendor.sixR    t   pip._internal.utils.typingR   t   typingR   t   pip._vendor.pkg_resourcesR   t   pip._internal.reqR   t"   pip._internal.index.package_finderR   t   ABCMetat   objectR   (    (    (    s=   /tmp/pip-build-iCT__d/pip/pip/_internal/distributions/base.pyt   <module>   s   