Viewing File: /opt/imunify360/venv/lib/python3.11/site-packages/setuptools/__pycache__/monkey.cpython-311.pyc
]j | d Z ddlZddlZddlZddlZddlZddlmZ ddlZ g Z
d Zd Zd Z
d Zd Zd Zd
Zd ZdS )z
Monkey patching of distutils.
N)
import_modulec n t j dk r| f| j z S t j | 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)clss H/opt/imunify360/venv/lib64/python3.11/site-packages/setuptools/monkey.py_get_mror
s7 %''833v
%%># c t | t rt n#t | t j rt
nd } || S )Nc d S )N )items r <lambda>zget_unpatched.<locals>.<lambda>* s $ r )
isinstancetypeget_unpatched_classtypesFunctionTypeget_unpatched_function)r lookups r
get_unpatchedr $ sT dD!! dE.//
#
#
6$<<r c d t | D }t | }|j d sd| z }t | |S )zProtect against re-patching the distutils if reloaded
Also ensures that no other distutils extension monkeypatched the distutils
first.
c 3 N K | ] }|j d |V !dS )
setuptoolsN)
__module__
startswith).0r s r <genexpr>z&get_unpatched_class.<locals>.<genexpr>5 sK CN,E,El,S,S r distutilsz(distutils has already been patched by %r)r
nextr r AssertionError)r external_basesbasemsgs r r r / sj }} N D?%%k22 "83>S!!!Kr c dd l } | j t j _ t j dk }|r| j t j _ dt j cxk odk nc pdt j cxk odk nc }|rd}|t j j _
t t j t j t j
fD ]}| j j |_ | j j t j _ | j j t j _ dt j v r!| j j t j d _ t% d S )Nr ) r* )r* )r* r, )r* r+ zhttps://upload.pypi.org/legacy/zdistutils.command.build_ext)r Commandr# coresysversion_infofindallfilelistconfig
PyPIRCCommandDEFAULT_REPOSITORY_patch_distribution_metadatadistcmdDistribution extension Extensionmodules#patch_for_msvc_specialized_compiler)r has_issue_12885needs_warehouse warehousemodules r patch_allrC ? sc (/IN&)3O 8%/%7 "s/;;;;);;;; &