ž «ÿf}@ c @ sa d Z d d l Z d d l Z d d l Z d d l m Z m Z m Z d d l Z d d l m Z m Z d d l m Z d d l m Z d d l m Z m Z m Z d d l m Z d d l m Z d d l m Z d d „ Z Gd d „ d e ƒ Z Gd d „ d e ƒ Z d Z d Z d Z d d „ Z e j! d ƒ Z" d d „ Z# d d „ Z$ d d „ Z% d S( u 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). i N( u Popenu PIPEu check_output( u gen_preprocess_optionsu gen_lib_options( u UnixCCompiler( u write_file( u DistutilsExecErroru CompileErroru UnknownFileError( u log( u LooseVersion( u find_executablec C s¯ t j j d ƒ } | d k r« t j | d | d … } | d k rL d g S| d k r_ d g S| d k rr d g S| d k r… d g S| d k r˜ d g St d | ƒ ‚ n d S( ua Include the appropriate MSVC runtime library if Python was built with MSVC 7.0 or later. u MSC v.i i i u 1300u msvcr70u 1310u msvcr71u 1400u msvcr80u 1500u msvcr90u 1600u msvcr100u Unknown MS Compiler version %s Niÿÿÿÿ( u sysu versionu findu ValueError( u msc_posu msc_ver( ( u> /opt/alt/python33/lib64/python3.3/distutils/cygwinccompiler.pyu get_msvcr> s u get_msvcrc B s¡ | Ee Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d d d d d „ Z d d „ Z d d d d d d d d d d d d „ Z d d d d „ Z d S( u CygwinCCompileru? Handles the Cygwin port of the GNU C compiler to Windows. u cygwinu .ou .au .dllu lib%s%su %s%su .exei c C sS t j | | | | ƒ t ƒ \ } } | j d | | f ƒ | t k r\ | j d | ƒ n t ƒ \ | _ | _ | _ | j | j d | j | j | j f ƒ | j d k r¼ d | _ n d | _ | j d k rÝ d } n d } | j d d d d d d d d d d | j | f ƒ | j d k rCd g | _ | j d ƒ n t ƒ | _ d S( Nu% Python's GCC status: %s (details: %s)uƒ Python's pyconfig.h doesn't seem to support your compiler. Reason: %s. Compiling may fail because of undefined preprocessor macros.u : gcc %s, ld %s, dllwrap %s u 2.10.90u gccu dllwrapu 2.13u -sharedu -mdll -staticu compileru gcc -mcygwin -O -Wallu compiler_sou gcc -mcygwin -mdll -O -Wallu compiler_cxxu g++ -mcygwin -O -Wallu linker_exeu gcc -mcygwinu linker_sou %s -mcygwin %su 2.91.57u msvcrtu, Consider upgrading to a newer version of gcc( u UnixCCompileru __init__u check_config_hu debug_printu CONFIG_H_OKu warnu get_versionsu gcc_versionu ld_versionu dllwrap_versionu compiler_typeu linker_dllu set_executablesu dll_librariesu get_msvcr( u selfu verboseu dry_runu forceu statusu detailsu shared_option( ( u> /opt/alt/python33/lib64/python3.3/distutils/cygwinccompiler.pyu __init__c s<