ef9dZddlZddlZddlmZmZmZmZmZddl m Z m Z ddl m Z ddlmZddlmZejd eGd d e ZdS) zdistutils.bcppcompiler Contains BorlandCCompiler, an implementation of the abstract CCompiler class for the Borland C++ compiler. N)DistutilsExecError CompileErrorLibError LinkErrorUnknownFileError) CCompilergen_preprocess_options) write_file)newer)logzbcppcompiler is deprecated and slated to be removed in the future. Please discontinue use or file an issue with pypa/distutils describing your use case.ceZdZdZdZiZdgZgdZeezZdZ dZ dZ dxZ Z d Zdfd Z dd Z ddZ ddZddZddZ ddZxZS) BCPPCompilerzConcrete class that implements an interface to the Borland C/C++ compiler, as defined by the CCompiler abstract class. bcppz.c)z.ccz.cppz.cxxz.objz.libz.dllz%s%sz.exerct|||d|_d|_d|_d|_gd|_gd|_gd|_gd|_ g|_ gd|_ gd|_ dS) Nz bcc32.exez ilink32.exeztlib.exe)/tWMz/O2/q/g0)rz/Odrr)z/Tpd/Gnr/x)rrr)rrrz/r) super__init__cclinkerlibpreprocess_optionscompile_optionscompile_options_debugldflags_sharedldflags_shared_debugldflags_static ldflags_exeldflags_exe_debug)selfverbosedry_runforce __class__s /builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/setuptools/_distutils/bcppcompiler.pyrzBCPPCompiler.__init__Bs '5111 # "&;;;%A%A%A"999$?$?$?! ...!:!:!:Nc ~|||||||\}} }} } |pg} | d|r| |jn| |j| D]H} | | \}}n#t $rYwxYwt j|}t j| } | t j | |dkr|dkr= | dd| |gn!#t$r}t|d}~wwxYw||jvrd}n||jvrd}nd}d| z} | |jg| z| z||gz|z|gz)#t$r}t|d}~wwxYw| S) Nz-c.res.rcbrcc32z-foz-P-o)_setup_compileappendextendrrKeyErrorospathnormpathmkpathdirnamespawnrr _c_extensions_cpp_extensionsr)r$sources output_dirmacros include_dirsdebug extra_preargsextra_postargsdependsobjectspp_optsbuild compile_optsobjsrcextmsg input_opt output_opts r)compilezBCPPCompiler.compileYsQ;?:M:M  gw; ; 7%%* D!!!  6    : ; ; ; ;    4 5 5 51 (1 (C  :SS    '""3''C'""3''C KK,, - - -f}}e||,JJ%c:;;;;),,,&s+++,d((( ,,,  J ( WI"#!*-.% % e & ( ( ("3''' (sB7 B BBD++ E 5EE --F F:&F55F:cT|||\}}|||}|||rL|dg|z}|r ||jg|zdS#t $r}t |d}~wwxYwtjd|dS)N)r>z/uskipping %s (up-to-date)) _fix_object_argslibrary_filename _need_linkr:rrrr rA) r$rEoutput_libnamer>rA target_langoutput_filenamelib_argsrLs r)create_static_libzBCPPCompiler.create_static_libs!% 5 5gz J J*//:/VV ??7O 4 4 C'.8H  $ DH:011111% $ $ $smm# $ I0/ B B B B BsA22 B<B  Bc|||\}}||||\}}}|r"tjdt || t j||}|||r|tj kr$d}| r|j dd}n3|j dd}n#d}| r|j dd}n|jdd}|d}nt j|\}}t j|\}}t j|d}t j|d|z}dg}|pgD]+}|d||,|t*||fd |zt-t jj|}|g}g}|D]r}t jt j|\}}|d kr||]||s|D]7}|d t j|z8|d |||d |g|d|D]F}|||| }|||1||G|d|d |g|d ||| r| |dd<| r|| |t j| ||jg|zdS#t<$r}t?|d}~wwxYwtj d|dS)Nz7I don't know what to do with 'runtime_library_dirs': %sc0w32c0d32r/rz%s.defEXPORTSz {}=_{}z writing %sr,z/L%sz/L.,z,,)import32cw32mtrQ)!rR _fix_lib_argsr warningstrr5r6joinrTr EXECUTABLEr#r"r rsplitsplitextr9r2formatexecuter mapr7normcaser3find_library_filer8r:rrrrA) r$ target_descrErWr> libraries library_dirsruntime_library_dirsexport_symbolsrArBrC build_temprV startup_objld_argsdef_fileheadtailmodnamerKtemp_dircontentssymobjects2 resourcesfilebaseellrlibfilerLs r)linkzBCPPCompiler.linksi&!% 5 5gz J J*:>:L:L |%9; ; 7L"6   KI())     ! gll:GGO ??7O 4 4_ Ci222% 2"4QQQ7GG".qqq1GG% 5"7:GG"1!!!4G%W]]?;; d!w//55 7??71:667<<(W2DEE%;)/RAACOOJ$5$5c3$?$?@@@@ Z(H)=|h?VWWW27+W55H#mGI  ) ) g..rw/?/?/E/EFF s&==$$T****NN4((((# ? ?v(8(8(=(==>>>> NN5 ! ! ! NN7 # # # NNC1 2 2 2 NN4  , ,00sEJJ?NN3''''NN7++++ NN1 2 2 2 NNC? + + + NN3    NN9 % % % ,+  /~... KK88 9 9 9 % DK=7233333% % % %nn$ % I0/ B B B B Bs)P P'P""P'c|r|dz}|dz|dz||f}n|dz|f}|D]_}|D]Z}tj|||}tj|r|ccS[`dS)N_d_bcpp)r5r6rdrSexists) r$dirsrrAdlib try_namesdirnamers r)rlzBCPPCompiler.find_library_file>s  -:DwcBIIw,I  C! # #',,sD,A,A$,G,GHH7>>'**#"NNNNN# # 4r*r/c|d}g}|D]J}tjtj|\}}||jddgzvr#t d|||rtj|}|dkr7|tj |||z|dkr8|tj ||dz|tj |||j zL|S)Nr/r-r,z"unknown file type '{}' (from '{}')) r5r6rgrksrc_extensionsrrhbasenamer2rd obj_extension)r$source_filenames strip_dirr> obj_namessrc_namerrKs r)object_filenameszBCPPCompiler.object_filenamesXsD  J ( V VH'**27+;+;H+E+EFFKT34.%@AA&8??XNN .w''--f}}  j$*!E!EFFFF  j$-!H!HIIII  j$AS:S!T!TUUUUr*c0|d||\}}}t||}dg|z} || d|z|r|| dd<|r| || ||js|t ||r||r2|tj | | | dS#t$r#} t| t| d} ~ wwxYwdS)Nz cpp32.exer0r)_fix_compile_argsr r2r3r'r r8r5r6r9r:rprintr) r$source output_filer?r@rBrC_rFpp_argsrLs r) preprocesszBCPPCompiler.preprocessqs@%)$:$:4$V$V!FL(>>-')  " NN4+- . . .  ('GBQBK  + NN> * * *v : (,fk0J0J, : BGOOK88999 ( 7#####% ( ( (c "3''' ( -,sC&& D0DD)rrr)NNNrNNN)NrN) NNNNNrNNNN)r)rr/)NNNNN)__name__ __module__ __qualname____doc__ compiler_type executablesr;r<rrstatic_lib_extensionshared_lib_extensionstatic_lib_formatshared_lib_format exe_extensionrrOrYrrlrr __classcell__)r(s@r)rr'spMKFM---O#_4NM!!,22)M;;;;;;4HHHHZNRCCCC0!@C@C@C@CL48((((((((r*r)rr5warningserrorsrrrrr ccompilerr r file_utilr _modifiedr _logr warnDeprecationWarningrr*r)rs 98888888!!!!!! 4 h(h(h(h(h(9h(h(h(h(h(r*