3
ՔRe @ s d Z ddlZddlZddlZddlZddlZddlmZ ddl Z ddl
mZ ddlZg Z
dd Zdd Zd d
Zdd Zd
d Zdd Zdd Zdd Zdd ZdS )z
Monkey patching of distutils.
N)
import_module)sixc C s" t j dkr| f| j S tj| S )am
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.
Jython)platformpython_implementation __bases__inspectgetmro)cls r /builddir/build/BUILDROOT/alt-python36-setuptools-38.5.2-7.el9.x86_64/opt/alt/python36/lib/python3.6/site-packages/setuptools/monkey.py_get_mro s r
c C s0 t | tjrtnt | tjr tndd }|| S )Nc S s d S )Nr )itemr r r