python (3.11.7)

(root)/
lib/
python3.11/
site-packages/
setuptools/
__pycache__/
monkey.cpython-311.pyc

*edZddlZddlZddlZddlZddlZddlmZddl	Z	ddl
Z
gZ	dZdZ
dZdZdZd	Zd
ZdZdS)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 S/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/site-packages/setuptools/monkey.py_get_mror
s7%''833v
%%>#ct|trtn#t|tjrt
nd}||S)NcdS)N)items r<lambda>zget_unpatched.<locals>.<lambda>(sTr)
isinstancetypeget_unpatched_classtypesFunctionTypeget_unpatched_function)rlookups  r
get_unpatchedr$sP)$55	",T53E"F"F	
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).0rs  r	<genexpr>z&get_unpatched_class.<locals>.<genexpr>3sL~((66r	distutilsz(distutils has already been patched by %r)r
nextrr AssertionError)rexternal_basesbasemsgs    rrr-sjC==N
D?%%k22"83>S!!!Krctjtj_tjdk}|rtjtj_dtjcxkodkncpdtjcxkodknc}|rd}|tjj	_
ttjtjtj
fD]}tjj|_tjjtj_tjjtj_dtjvr&tjjtjd_t%dS)N)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)has_issue_12885needs_warehouse	warehousemodules    r	patch_allrC?s7'/IN&)3O8%/%7	"	!----I----	/!....Y....F5	<E	&9 """.).)-?;;(o: *3=IN$.$8$BI!$33 *	12<()))))rcdD]<}ttj|}ttjj||=dS)zDPatch write_pkg_file and read_pkg_file for higher metadata standards)write_pkg_file
read_pkg_fileget_metadata_versionN)getattrrr8setattrr#DistributionMetadata)attrnew_vals  rr7r7dsJKDD*/400	3T7CCCCDDrct||}t|d|t|||dS)z
    Patch func_name in target_mod with replacement

    Important - original must be resolved by name to avoid
    patching an already patched function.
    	unpatchedN)rHvars
setdefaultrI)replacement
target_mod	func_nameoriginals    r
patch_funcrUksMz9--H	  h777J	;/////rc"t|dS)NrN)rH)	candidates rrr|s9k***rctdtjdkrdSfd}tj|d}	t|dn#t$rYnwxYw	t|ddS#t$rYdSwxYw)z\
    Patch functions in distutils to use standalone Microsoft Visual C++
    compilers.
    zsetuptools.msvcWindowsNcd}||dz}t|}t|}t||st	||||fS)zT
        Prepare the parameters for patch_func to patch indicated function.
        msvc14__)lstriprHrhasattrImportError)mod_namerSrepl_prefix	repl_namereplmodmsvcs      rpatch_paramsz9patch_for_msvc_specialized_compiler.<locals>.patch_paramssk )"2"23"7"77	tY''H%%sI&&	)i(((S)##rzdistutils._msvccompiler_get_vc_envgen_lib_options)rrsystem	functoolspartialrUr_)rfmsvc14res  @rr>r>s*++DI%%
$
$
$
$
$
|-F
G
GF
FF=))***




FF,--....



s$A
A%$A%)A==
B
B)__doc__r0distutils.filelistr#rrrj	importlibrr	r__all__r
rrrCr7rUrr>rrr<module>rqs


######
$"*"*"*JDDD000"+++%
%
%
%
%
r