ԺhddlZddlZdejvZdZdZdZdZdZGdd Z Gd d Z e j D]Z e e d e e je Zd ZGddZdZdZejdkreZdSdS)N__pypy__cdtjvrdStrtjdkrdSddl}|ddS)N distutils)raDistutils was imported before Setuptools, but importing Setuptools also replaces the `distutils` module in `sys.modules`. This may lead to undesirable behaviors or errors. To avoid these issues, avoid using distutils directly, ensure that setuptools is installed in the traditional way (e.g. not an editable install), and/or make sure that setuptools is always imported before distutils.)sysmodulesis_pypy version_infowarningswarn)r s O/opt/imunify360/venv/lib64/python3.11/site-packages/_distutils_hack/__init__.pywarn_distutils_presentr s^#+%%3#f,, OOO MM ?cdtjvrdSddl}|ddtjD}|D]}tj|=dS)Nrrz"Setuptools is replacing distutils.cHg|]}|dks|d| S)rz distutils.) startswith).0names r z#clear_distutils.."s>     ;  $//,"?"?    r)rr r r )r modsrs rclear_distutilsrsx#+%%OOO MM6777  K   D  K  rcNtjdd}|dkS)z? Allow selection of distutils by environment variable. SETUPTOOLS_USE_DISTUTILSlocal)osenvironget)whichs renabledr +s% JNN5w ? ?E G rcddl}tt5|ddddn #1swxYwY|d}d|jvsJ|jdt jvsJdS)Nrrzdistutils.core _distutilszsetuptools._distutils.log) importlibrshim import_module__file__rr )r#cores rensure_local_distutilsr(3s -- ,,,---------------  " "#3 4 4D 4= ( ( ($- ( ( ( &ck 9 9 9 9 9 9sAA Ac^trttdSdS)z Ensure that the local copy of distutils is preferred over stdlib. See https://github.com/pypa/setuptools/issues/417#issuecomment-392298401 for more motivation. N)r rr(rr do_overrider+Ds8yy!        !!rceZdZdZdZdS) _TrivialRec||_dSN) _patterns)selfpatternss r__init__z_TrivialRe.__init__Qs !rcDtfd|jDS)Nc3 K|]}|vV dSr/r*)rpatstrings r z#_TrivialRe.match..Us';;S3&=;;;;;;r)allr0)r1r7s `rmatchz_TrivialRe.matchTs(;;;;DN;;;;;;rN)__name__ __module__ __qualname__r3r:r*rrr-r-Ps2"""<<<<z/DistutilsMetaFinder.find_spec..`sDrr*)rformatlocalsgetattr)r1fullnamepathtarget method_namemethods r find_speczDistutilsMetaFinder.find_specYs]  H$7$7$@$@  F2+2>>VXX>> {LL99vxxrc |rdSddl}ddl}ddl} |dn#t $rYdSwxYwGfdd|jj}|j d|j S)Nrzsetuptools._distutilsc eZdZfdZdZdS)?DistutilsMetaFinder.spec_for_distutils..DistutilsLoadercd_S)Nr)r;)r1specmods r create_modulezMDistutilsMetaFinder.spec_for_distutils..DistutilsLoader.create_moduleys*  rcdSr/r*)r1modules r exec_modulezKDistutilsMetaFinder.spec_for_distutils..DistutilsLoader.exec_module}srN)r;r<r=rRrU)rQsrDistutilsLoaderrNxs=          rrVr)origin) is_cpythonr# importlib.abcimportlib.utilr% ExceptionabcLoaderutilspec_from_loaderr&)r1r#rVrQs @rspec_for_distutilsz&DistutilsMetaFinder.spec_for_distutilscs ??    F ))*ABBCC    FF        im2   ~.. **3</   s; A A c@tjdS)zj Suppress supplying distutils for CPython (build and tests). Ref #2965 and #3007. zpybuilddir.txt)rrGisfiler*rrrXzDistutilsMetaFinder.is_cpythons w~~.///rc~tjdks|rdStd|_dS)zj Ensure stdlib distutils when running under pip. See pypa/pip#8761 for rationale. r NcdSr/r*r*rrrBz2DistutilsMetaFinder.spec_for_pip..$r)rr pip_imported_during_buildrr`r1s r spec_for_pipz DistutilsMetaFinder.spec_for_pipsD  w & &$*H*H*J*J & F".,rchddl}tfd|dDS)zO Detect if pip is being imported in a build script. Ref #2355. rNc3HK|]\}}|VdSr/)frame_file_is_setup)rframelineclss rr8z@DistutilsMetaFinder.pip_imported_during_build..sF  /:udC # #E * *      r) tracebackany walk_stack)rprqs` rrhz-DistutilsMetaFinder.pip_imported_during_buildsX     >G>R>RSW>X>X      rc^|jdddS)zN Return True if the indicated frame suggests a setup.py file. r&zsetup.py) f_globalsrendswith)rns rrmz'DistutilsMetaFinder.frame_file_is_setups* "":r22;;JGGGrc2td|_dS)zp Ensure stdlib distutils when running select tests under CPython. python/cpython#91169 cdSr/r*r*rrrBz>DistutilsMetaFinder.spec_for_sensitive_tests..rgrN)rr`ris rspec_for_sensitive_testsz,DistutilsMetaFinder.spec_for_sensitive_testss ".,r)r )test.test_distutilsztest.test_peg_generatorztest.test_importlibr|r/)r;r<r=rKr` staticmethodrXrj classmethodrhrmrzrr sensitive_testsr*rrr?r?Xs   B00\0///  [ HH\H///  g % %      " OOrr? spec_for_cNttjvptdSdSr/)DISTUTILS_FINDERr meta_path insert_shimr*rradd_shimrs$ %6666rceZdZdZdZdS)r$c"tdSr/)rris r __enter__zshim.__enter__s rc"tdSr/) _remove_shim)r1excvaluetbs r__exit__z shim.__exit__srN)r;r<r=rrr*rrr$r$s2rr$cPtjdtdS)Nr)rrinsertrr*rrrrs!M,-----rcr tjtdS#t$rYdSwxYwr/)rrremover ValueErrorr*rrrrsF  -.....      s $( 66rd)rrbuiltin_module_namesr rrr r(r+r-r?rrsetattrrzrrr$rrr remove_shimr*rrrs  0 0&   :::" ! ! !<<<<<<<<ddddddddN /D GD4'&((777...   gKKKr