1 #ˆl–äY>” je¶…8 Cq§nµ1hß ƒy°3ÁÀ¿!7a ´iü?ã@sâdZddlZddlZddlZddlmZmZmZddlZddl m Z ddl m Z ddl mZmZmZmZddlmZddlmZd d „ZGd d „d e ƒZGd d„deƒZdZdZdZdd„Ze d¡Zdd„Zdd„Z dd„Z!dS)adistutils.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)ÚPopenÚPIPEÚ check_output)Ú UnixCCompiler)Ú write_file)ÚDistutilsExecErrorÚCCompilerErrorÚ CompileErrorÚUnknownFileError)Ú LooseVersion)Úfind_executablecCs€tj d¡}|dkr|tj|d|d…}|dkr8dgS|dkrFdgS|d krTd gS|d krbd gS|d krpdgStd|ƒ‚dS)zaInclude the appropriate MSVC runtime library if Python was built with MSVC 7.0 or later. zMSC v.éÿÿÿÿéé Z1300Zmsvcr70Z1310Zmsvcr71Z1400Zmsvcr80Z1500Zmsvcr90Z1600Zmsvcr100zUnknown MS Compiler version %s N)ÚsysÚversionÚfindÚ ValueError)Zmsc_posZmsc_ver©rú1/usr/lib64/python3.9/distutils/cygwinccompiler.pyÚ get_msvcr=s rc @sReZdZdZdZdZdZdZdZdZ dZ dd d „Z d d „Z ddd„Z ddd„ZdS)ÚCygwinCCompilerz? Handles the Cygwin port of the GNU C compiler to Windows. Úcygwinz.oú.az.dllzlib%s%sz%s%sz.exercCsèt ||||¡tƒ\}}| d||f¡|turB| d|¡tƒ\|_|_|_ | |j d|j|j|j f¡|jdkr†d|_ nd|_ |jdkrœd}nd }|j d d d d d|j |fd�|jdkrÜdg|_ | d¡ntƒ|_ dS)Nz%Python's GCC status: %s (details: %s)zƒPython's pyconfig.h doesn't seem to support your compiler. Reason: %s. Compiling may fail because of undefined preprocessor macros.z: gcc %s, ld %s, dllwrap %s z2.10.90ÚgccÚdllwrapú2.13ú-sharedú -mdll -staticzgcc -mcygwin -O -Wallzgcc -mcygwin -mdll -O -Wallzg++ -mcygwin -O -Wallz gcc -mcygwinz%s -mcygwin %s©ZcompilerÚ compiler_soZ compiler_cxxZ linker_exeZ linker_soú2.91.57Úmsvcrtz,Consider upgrading to a newer version of gcc)rÚ__init__Úcheck_config_hZ debug_printÚ CONFIG_H_OKÚwarnÚ get_versionsÚ gcc_versionÚ ld_versionZdllwrap_versionÚ compiler_typeÚ linker_dllÚset_executablesÚ dll_librariesr)ÚselfÚverboseÚdry_runÚforceÚstatusÚdetailsÚ shared_optionrrrr#bsN ÿýÿÿ þÿ  ÿü ÿzCygwinCCompiler.__init__c Cs¬|dks|dkrXz| dd|d|g¡Wq¨tyT}zt|ƒ‚WYd}~q¨d}~00nPz"| |j||d|g|¡Wn,ty¦}zt|ƒ‚WYd}~n d}~00dS)z:Compiles the source by spawning GCC and windres if needed.ú.rcú.resZwindresz-iz-oN)Úspawnrr r )r.ÚobjÚsrcÚextZcc_argsÚextra_postargsZpp_optsÚmsgrrrÚ_compile�s ÿ zCygwinCCompiler._compileNcCsPt | p g¡} t |pg¡}t |p&g¡}| |j¡|du�r||jksV|jdk�rtj |d¡}tj tj  |¡¡\}}tj  ||d¡}tj  |d|d¡}dtj  |¡dg}|D]}|  |¡q¾|  t ||fd |¡|jd k�r|  d |g¡|  d |g¡n |  |¡| �s(|   d ¡t ||||||||d| | | | | ¡dS)zLink the objects.Nrrz.defÚlibrz LIBRARY %sZEXPORTSz writing %srz --output-libz--defz-s)ÚcopyÚextendr-Z EXECUTABLEr+ÚosÚpathÚdirnameÚsplitextÚbasenameÚjoinÚappendZexecuterrÚlink)r.Z target_descZobjectsZoutput_filenameÚ output_dirZ librariesZ library_dirsZruntime_library_dirsZexport_symbolsÚdebugZ extra_preargsr;Z build_tempZ target_langZtemp_dirZdll_nameZ dll_extensionZdef_fileZlib_fileÚcontentsZsymrrrrH¬sH  ÿÿ  ÿþ  ÿ