ef|dZddlZddlZddlZddlZddlZddlmZddlZ gZ dZ dZ dZ dZdZd Zd Zd ZdS) z Monkey patching of distutils. N) import_modulecntjdkr |f|jzStj|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 q/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/setuptools/monkey.py_get_mror s7%''833v %% >#  ct|trtn#t|tjrt nd}||S)NcdS)N)items r zget_unpatched..*s$r) isinstancetypeget_unpatched_classtypes FunctionTypeget_unpatched_function)rlookups r get_unpatchedr$sT dD ! !  dE. / / # #     6$<<rcdt|D}t|}|jdsd|z}t ||S)zProtect against re-patching the distutils if reloaded Also ensures that no other distutils extension monkeypatched the distutils first. c3NK|] }|jd|V!dS) setuptoolsN) __module__ startswith).0r s r z&get_unpatched_class..5sKCN,E,El,S,S r distutilsz(distutils has already been patched by %r)r nextrr AssertionError)r external_basesbasemsgs r rr/sj }}N   D ? % %k 2 2"83>S!!! Krcddl}|jtj_tjdk}|r|jtj_dtjcxkodkncpdtjcxkodknc}|rd}|tjj _ ttj tjtj fD]}|j j|_|jjtj_|jjtj_dtjvr!|jjtjd_t%dS)Nr)r*)r*)r*r,)r*r+zhttps://upload.pypi.org/legacy/zdistutils.command.build_ext)rCommandr#coresys version_infofindallfilelistconfig PyPIRCCommandDEFAULT_REPOSITORY_patch_distribution_metadatadistcmd Distribution extension Extensionmodules#patch_for_msvc_specialized_compiler)rhas_issue_12885needs_warehouse warehousemodules r patch_allrC?sc(/IN&)3O8%/%7 "s/;;;;);;;;&@ @&@&@&@&&@&@&@&@&O F5 .patch_paramssk )"2"23"7"77 tY''H%%sI&& )i(( (S)##rzdistutils._msvccompiler _get_vc_env)rrsystem functoolspartialrYrc)rjmsvc14ris @r r>r>s * + +DI%% $ $ $ $ $ |-F G GF FF=))****      sA A'&A')__doc__rmr rr0r importlibrdistutils.filelistr#__all__r rrrCr7rYrr>rrr rts ######        #*#*#*L D D D000"+++     r