_i9 d Z ddlZddlZddlmZmZmZmZmZ ddl m Z mZ ddlm Z ddlmZ ddlmZ ej$ d e G d de Zy)zdistutils.bcppcompiler Contains BorlandCCompiler, an implementation of the abstract CCompiler class for the Borland C++ compiler. N )DistutilsExecErrorCompileErrorLibError 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.c e Zd ZdZdZi ZdgZg dZeez ZdZ dZ dZdxZZ d Zd fd Z ddZ ddZ dd ZddZddZ ddZ xZS )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.exec t | ||| d| _ d| _ d| _ d | _ g d| _ g d| _ g d| _ g d| _ g | _ g d| _ g d| _ y ) Nz bcc32.exezilink32.exeztlib.exe)/tWMz/O2/q/g0)r z/Odr r )z/Tpd/Gnr /x)r r r )r r r z/r) super__init__cclinkerlibpreprocess_optionscompile_optionscompile_options_debugldflags_sharedldflags_shared_debugldflags_staticldflags_exeldflags_exe_debug)selfverbosedry_runforce __class__s /builddir/build/BUILDROOT/alt-python312-setuptools-69.0.2-3.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/setuptools/_distutils/bcppcompiler.pyr zBCPPCompiler.__init__B sk '51 #"&;%A"9$?! .!: c Z | j |||||| \ }} }} }|xs g }|j d |r|j | j n|j | j | D ] } || \ }}t j j | }t j j | } | j t j j | |dk( r~|dk( r | j dd| |g || j v rd}n|| j v rd}nd}d| z } | j | j g|z | z ||gz |z |gz | S # t $ r Y w xY w# t $ r}t | d }~ww xY w# t $ r}t | d }~ww xY w) Nz-c.res.rcbrcc32z-fo z-P-o)_setup_compileappendextendr r KeyErrorospathnormpathmkpathdirnamespawnr r _c_extensions_cpp_extensionsr )r$ sources output_dirmacrosinclude_dirsdebug extra_preargsextra_postargsdependsobjectspp_optsbuildcompile_optsobjsrcextmsg input_opt output_opts r) compilezBCPPCompiler.compileY s ;?:M:Mgw; 7% %*D! : :; 4 45C :S ''""3'C''""3'C KK,-f}e|,JJ%c:; d((( ,,, J ( WWI"# !*-. % % eQ f a * ,&s++,: &