PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB`  pYZ@@sgdZddlZddlZddlZddlmZmZmZddlZddl m Z m Z ddl m Z ddlmZddlmZmZmZmZddlmZdd lmZdd lmZd d ZGd dde ZGdddeZdZdZdZ ddZ!ej"dZ#ddZ$ddZ%ddZ&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)PopenPIPE check_output)gen_preprocess_optionsgen_lib_options) UnixCCompiler) write_file)DistutilsExecErrorCCompilerError CompileErrorUnknownFileError)log) LooseVersion)find_executablecCstjjd}|dkrtj|d|d}|dkrLdgS|dkr_dgS|d krrd gS|d krd gS|d krdgStd|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)sysversionfind ValueError)Zmsc_posZmsc_verr./opt/python35/lib/python3.5/cygwinccompiler.py get_msvcr?s      rc @seZdZdZdZdZdZdZdZdZ dZ d d d d d Z d d Z dddddd dddddd Z d dddZdS)CygwinCCompilerz? Handles the Cygwin port of the GNU C compiler to Windows. cygwinz.oz.az.dllzlib%s%sz%s%sz.exerc CsPtj||||t\}}|jd||f|tk rY|jd|t\|_|_|_ |j|j d|j|j|j f|jdkrd|_ n d|_ |jdkrd}nd }|j d d d d dddddd|j |f|jdkr@dg|_ |jdn t|_ dS)Nz%Python's GCC status: %s (details: %s)zPython'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.90gccdllwrapz2.13z-sharedz -mdll -staticcompilerzgcc -mcygwin -O -Wall compiler_sozgcc -mcygwin -mdll -O -Wall compiler_cxxzg++ -mcygwin -O -Wall linker_exez gcc -mcygwin linker_soz%s -mcygwin %sz2.91.57msvcrtz,Consider upgrading to a newer version of gcc)r__init__check_config_hZ debug_print CONFIG_H_OKwarn get_versions gcc_version ld_versionZdllwrap_version compiler_type linker_dllset_executables dll_librariesr)selfverbosedry_runforcestatusZdetails shared_optionrrrr%ds<       zCygwinCCompiler.__init__cCs|dks|dkroy |jdd|d|gWqtk rk}zt|WYdd}~XqXn]y)|j|j||d|g|Wn1tk r}zt|WYdd}~XnXdS)z:Compiles the source by spawning GCC and windres if needed.z.rcz.resZwindresz-iz-oN)spawnr r r )r0objsrcextZcc_argsextra_postargsZpp_optsmsgrrr_compiles " zCygwinCCompiler._compileNcCstj| pg} tj|p$g}tj|p9g}|j|j|dk r||jksy|jdkrtjj|d}tjjtjj |\}}tjj ||d}tjj |d|d}dtjj |dg}x|D]}|j |q W|j t ||fd ||jd krx| jd |g| jd |gn |j || s| j d tj||||||||d| | | | | dS)zLink the objects.Nrrz.deflibz.az LIBRARY %sZEXPORTSz writing %srz --output-libz--defz-s)copyextendr/Z EXECUTABLEr-ospathdirnamesplitextbasenamejoinappendZexecuterrlink)r0Z target_descZobjectsZoutput_filename output_dirZ librariesZ library_dirsZruntime_library_dirsZexport_symbolsdebugZ extra_preargsr:Z build_tempZ target_langZtemp_dirZdll_nameZ dll_extensionZdef_fileZlib_filecontentsZsymrrrrGs:          zCygwinCCompiler.linkcCs|dkrd}g}x|D]}tjjtjj|\}}||jddgkrxtd||f|rtjj|}|dkr|jtjj||||j q|jtjj|||j qW|S)z#Adds supports for rc and res files.NrK.rc.resz"unknown file type '%s' (from '%s'))rMrL) r@rArCnormcaseZsrc_extensionsr rDrFrE obj_extension)r0Zsource_filenamesZ strip_dirrHZ obj_namesZsrc_namebaser9rrrobject_filenamess   $ z CygwinCCompiler.object_filenames)__name__ __module__ __qualname____doc__r,rOZstatic_lib_extensionZshared_lib_extensionZstatic_lib_formatZshared_lib_formatZ exe_extensionr%r<rGrQrrrrrYs ;   Krc@s1eZdZdZdZdddddZdS)Mingw32CCompilerz@ Handles the Mingw32 port of the GNU C compiler to Windows. Zmingw32rcCstj|||||jdkr.d}nd}|jdkrLd}nd}trgtd|jdd d d d d dddd|j||fg|_t |_dS)Nz2.13z-sharedz -mdll -staticz2.91.57z--entry _DllMain@12rKz1Cygwin gcc cannot be used with --compiler=mingw32rz gcc -O -Wallr zgcc -mdll -O -Wallr!z g++ -O -Wallr"rr#z%s %s %s) rr%r+r* is_cygwingccr r.r-r/r)r0r1r2r3r5Z entry_pointrrrr%s&       zMingw32CCompiler.__init__N)rRrSrTrUr,r%rrrrrVs rVokznot okZ uncertaincCsddlm}dtjkr)tdfS|j}yPt|}z2d|jkrgtd|fStd|fSWd|j XWn<t k r}zt d ||j ffSWYdd}~XnXdS) awCheck if the current Python installation appears amenable to building extensions with GCC. Returns a tuple (status, details), where 'status' is one of the following constants: - CONFIG_H_OK: all is well, go ahead and compile - CONFIG_H_NOTOK: doesn't look good - CONFIG_H_UNCERTAIN: not sure -- unable to read pyconfig.h 'details' is a human-readable string explaining the situation. Note there are two ways to conclude "OK": either 'sys.version' contains the string "GCC" (implying that this Python was built with GCC), or the installed "pyconfig.h" contains the string "__GNUC__". r) sysconfigZGCCzsys.version mentions 'GCC'Z__GNUC__z'%s' mentions '__GNUC__'z '%s' does not mention '__GNUC__'Nzcouldn't read '%s': %s) distutilsrYrrr'get_config_h_filenameopenreadCONFIG_H_NOTOKcloseOSErrorCONFIG_H_UNCERTAINstrerror)rYfnconfig_hexcrrrr&Hs   r&s(\d+\.\d+(\.\d+)*)c Cs|jd}t|dkr&dSt|dddtj}z|j}Wd|jXtj|}|dkr~dSt |j dj S)zFind the version of an executable by running `cmd` in the shell. If the command is not found, or the output does not match `RE_VERSION`, returns None. rNshellTstdoutr) splitrrrrgr]r_ RE_VERSIONsearchrgroupdecode)cmd executableout out_stringresultrrr_find_exe_versionus  rrcCs&dddg}tdd|DS)zg Try to find out the versions of gcc, ld and dllwrap. If not possible it returns None for it. zgcc -dumpversionzld -vzdllwrap --versioncSsg|]}t|qSr)rr).0rmrrr s z get_versions..)tuple)commandsrrrr)sr)cCs%tddg}|jjdS)z>Try to determine if the gcc that would be used is from cygwin.rz -dumpmachinescygwin)rstripendswith)rprrrrWsrW)'rUr@rr> subprocessrrrreZdistutils.ccompilerrrZdistutils.unixccompilerrZdistutils.file_utilrZdistutils.errorsr r r r rZr Zdistutils.versionrZdistutils.spawnrrrrVr'r^rar&compilerirrr)rWrrrrs.)    " 1 +