lfddlZddlZddlmZgdZddZddZddZ dd lm Z n#e $rd Z YnwxYwd Z e e fZddlZn#e$r e ZddlZYnwxYwd Zd ZdZdS)N)VerificationError)sources include_dirs library_dirs extra_objectsdependsc tddlm}|g}|D]4}|tj|5|d||d|S)Nr) Extension)namerr )_hack_at_distutilsdistutils.corer appendospathnormpath) srcfilenamemodnamerkwdsr allsourcessrcs r/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib64/python3.11/site-packages/cffi/ffiplatform.py get_extensionrsz((((((J11"'**3//0000 9 >': > > > >>cttj} t ||||}tj|}|D]7\}}tj||kr|tj|<8nQ#|D]7\}}tj||kr|tj|<8wxYw|S)z-Compile a C extension module using distutils.) rrenvironcopy_buildrabspathitemsget)tmpdirextcompiler_verbosedebug saved_environoutputfilenamekeyvalues rcompiler+sJOO%%M(-=uEE88(--// ( (JCz~~c""e++"' 3 (---// ( (JCz~~c""e++"' 3 ( s 1B,,AC:cddlm}ddl}ddl}|d|gi}||d}|t jj}d|f|d<d|d<d|f|d <d|f|d < |j dpd} |j || d| d} | \} |j |n#|j |wxYwnA#|jj|jjf$r#} t%| jjd | d} ~ wwxYw| S) Nr) Distribution ext_modules build_ext ffiplatformr&)r0Tforce build_lib build_tempz: )rr-distutils.errors distutils.logparse_config_filesget_option_dictsysflagsr&log set_threshold set_verbosity run_commandget_command_obj get_outputserrors CompileError LinkErrorr __class____name__) r#r$r%r&r- distutilsdistoptions old_levelcmd_objsonamees rrr s++++++******** <. / /D"";//G } %u-GG,GG)62GK*F3GL FM//227a  3 M ' '(8 9 9 9   [ ) ) )**;77G**,,HV M ' ' 2 2 2 2IM ' ' 2 2 2 2 2   )   & (FFFAK,@,@,@!! DEEEF Ms14D&AD+D&D""D&&E$EE$)samefilectj|tj|kSN)rrr )f1f2s rrLrLAs)wr""bgoob&9&999rc|tj|s|S|}g} |}tj|\}}||ks|s|S|| t |tjr'|tjj|Sn#t$rYnwxYwrN) rrisabssplitrrLcurdirreversejoinOSError)rdirnamesprevdirr s rmaybe_relative_pathr[Ds 7==   C E GMM'** T '>>>K T RY'' , w|U++ ,    D  s+AB-- B:9B:ct|tr)|dt||fzdSt|trst |}|dt|z|D](}t||t|||)dSt|ttfr<|dt|z|D]}t||dSt|tr|d|fzdStd|)Nz%ds%sz%ddz%dlz%diz5the keywords to verify() contains unsupported object ) isinstancestrwritelendictsortedkeys_flattenlisttuple int_or_long TypeError)xfrcr)r*s rrdrd_sr!SN 3q661+%&&&&& At  Naffhh D !"""  C S!    QsVQ       Ae} % %N A  E UA       A{ # #N  iIJ LNN Nrcptj}t|||SrN) cStringIOStringIOrdgetvalue)rirjs rflattenrors+A QNNN ::<<rcVtjdkr ddl}dS#t$rYdSwxYwdS)Nwin32r)r8platform setuptools ImportError)rss rrrwsR |w           DD s  &&)r )rN)r8rerrorrLIST_OF_FILE_NAMESrr+ros.pathrLrtr[intlongrgrl NameErroriordrorr rrr|s\$$$$$$222???? <:       :::::::::(+KKNNN& s'22A AA