> d Z ddlZddlZddlZddlZddlZddlZddlmZ ddl m Z ddlmZ ddl mZmZmZmZ ddlmZmZ dd lmZ ej d gdgdgd gdgdgdgdgej d Zd ZdZ G d de Z G d de ZdZdZdZ d Z!d Z"dZ#dS )a distutils.cygwinccompiler Provides the CygwinCCompiler class, a subclass of UnixCCompiler that handles the Cygwin port of the GNU C compiler to Windows. It also contains the Mingw32CCompiler class which handles the mingw32 port of GCC (same as cygwin in no-cygwin mode). N)check_output ) UnixCCompiler) write_file)DistutilsExecErrorDistutilsPlatformErrorCCompilerErrorCompileError)LooseVersionsuppress_known_deprecation)RangeMapmsvcr70msvcr71msvcr80msvcr90msvcr100msvcr110msvcr120vcruntime140) i i ix i i@ i i il i c t j dt j } t | d }n# t $ r Y dS w xY w t | S # t $ r t d|z w xY w)zaInclude the appropriate MSVC runtime library if Python was built with MSVC 7.0 or later. zMSC v\.(\d{4})r NzUnknown MS Compiler version %s ) researchsysversionintgroupAttributeError _msvcr_lookupKeyError ValueError)matchmsc_vers /builddir/build/BUILD/imunify360-venv-2.6.2/opt/imunify360/venv/lib/python3.11/site-packages/setuptools/_distutils/cygwinccompiler.py get_msvcrr$ 4 s I'55Eekk!nn%% FW%% F F F:WDEEEFs "A AAA# #B zxUnable to set runtime library search path on Windows, usually indicated by `runtime_library_dirs` parameter to Extensionc e Zd ZdZdZdZdZdZdZdZ dZ dZd Zd fd Z ed Zd Z ddZd Z fdZe fd Z xZS )CygwinCCompilerz9Handles the Cygwin port of the GNU C compiler to Windows.cygwinz.oz.az.dll.az.dllzlib%s%szcyg%s%sz.exer c t ||| t \ }}| d || |t ur| d|z t j dd | _ t j dd | _ | j | _ d}| d| j z d | j z d| j z d | j z d | j | t | _ d S ) Nz%Python's GCC status: {} (details: {})zPython's pyconfig.h doesn't seem to support your compiler. Reason: %s. Compiling may fail because of undefined preprocessor macros.CCgccCXXzg++-sharedz%s -mcygwin -O -Wallz%s -mcygwin -mdll -O -Wallz%s -mcygwinz{} -mcygwin {}compilercompiler_socompiler_cxx linker_exe linker_so)super__init__check_config_hdebug_printformatCONFIG_H_OKwarnosenvirongetcccxx linker_dllset_executablesr$ dll_libraries)selfverbosedry_runforcestatusdetails shared_option __class__s r# r4 zCygwinCCompiler.__init__V s7 '5111(**3::67KK $$IIOQXY *..u--:>>%//'! +dg54tw>/$(:$tw.'..t NN '[[ c t j dt d t 5 t d cd d d S # 1 swxY w Y d S )Nzgcc_version attribute of CygwinCCompiler is deprecated. Instead of returning actual gcc version a fixed value 11.2.0 is returned. ) stacklevelz11.2.0)warningsr9 DeprecationWarningr r )rB s r# gcc_versionzCygwinCCompiler.gcc_versionv s X ( ) ) * *)) * * * * * * * * * * * * * * * * * *s AAAc |dv r> | dd|d|g dS # t $ r}t | d}~ww xY w | | j |z |d|gz |z dS # t $ r}t | d}~ww xY w)z:Compiles the source by spawning GCC and windres if needed.).rc.reswindresz-iz-oN)spawnr r r/ )rB objsrcextcc_argsextra_postargspp_optsmsgs r# _compilezCygwinCCompiler._compile s /!! ( ItS$<=====% ( ( ("3''' ( ( $w.#tS1AANR &