File: //opt/alt/python27/lib/python2.7/site-packages/setuptools/monkey.pyo
�
אRec           @   s�   d  Z  d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l m	 Z	 d d l
 m Z d d l Z g  Z
 d �  Z d �  Z d �  Z d	 �  Z d
 �  Z d �  Z d �  Z d
 �  Z d �  Z d S(   s   
Monkey patching of distutils.
i����Ni   (   t
   import_module(   t   sixc         C   s-   t  j �  d k r  |  f |  j St j |  � S(   sm  
    Returns the bases classes for cls sorted by the MRO.
    Works around an issue on Jython where inspect.getmro will not return all
    base classes if multiple classes share the same name. Instead, this
    function will return a tuple containing the class itself, and the contents
    of cls.__bases__. See https://github.com/pypa/setuptools/issues/1024.
    t   Jython(   t   platformt   python_implementationt	   __bases__t   inspectt   getmro(   t   cls(    (    sB   /opt/alt/python27/lib/python2.7/site-packages/setuptools/monkey.pyt   _get_mro   s    	c         C   sC   t  |  t j � r t n t  |  t j � r0 t n d �  } | |  � S(   Nc         S   s   d  S(   N(   t   None(   t   item(    (    sB   /opt/alt/python27/lib/python2.7/site-packages/setuptools/monkey.pyt   <lambda>*   t    (   t
   isinstanceR   t   class_typest   get_unpatched_classt   typest   FunctionTypet   get_unpatched_function(   R   t   lookup(    (    sB   /opt/alt/python27/lib/python2.7/site-packages/setuptools/monkey.pyt
   get_unpatched&