tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[\¬Qc@sïdZdZddlZddlZddlZddlmZmZddlm    Z    ddl
m Z ddl m Z mZmZddlmZd    „Zd
e    fd „ƒYZd efd „ƒYZdZdZdZd„Zd„ZdS(sdistutils.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).
s$Id$iÿÿÿÿN(tgen_preprocess_optionstgen_lib_options(t UnixCCompiler(t
write_file(tDistutilsExecErrort CompileErrortUnknownFileError(tlogcCstjjdƒ}|dkr•tj|d|d!}|dkrIdgS|dkr\dgS|d    krod
gS|d kr‚d gStd |ƒ‚ngSdS(saInclude the appropriate MSVC runtime library if Python was built
    with MSVC 7.0 or later.
    sMSC v.iÿÿÿÿii
t1300tmsvcr70t1310tmsvcr71t1400tmsvcr80t1500tmsvcr90sUnknown MS Compiler version %s N(tsystversiontfindt
ValueError(tmsc_postmsc_ver((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/cygwinccompiler.pyt    get_msvcr;s     tCygwinCCompilerc Bs‰eZdZdZdZdZdZdZdZdZ    dddd    „Z
d
„Z ddddddddddd „
Z dd d „ZRS(tcygwins.os.as.dlls.dll.aslib%s%ss%s%ss.exeic CsStj||||ƒtƒ\}}|jd||fƒ|tk    r\|jd|ƒntƒ\|_|_|_    |j|j
d|j|j|j    fƒ|jdkr¼d|_ n    d|_ |jdkrÝd}nd    }|j d
d d d dddddd|j |fƒ|jdkrCdg|_ |jdƒn tƒ|_ dS(Ns%Python's GCC status: %s (details: %s)sƒPython's pyconfig.h doesn't seem to support your compiler. Reason: %s. Compiling may fail because of undefined preprocessor macros.s: gcc %s, ld %s, dllwrap %s
s2.10.90tgcctdllwraps2.13s-shareds -mdll -statictcompilersgcc -mcygwin -O -Wallt compiler_sosgcc -mcygwin -mdll -O -Wallt compiler_cxxsg++ -mcygwin -O -Wallt
linker_exes gcc -mcygwint    linker_sos%s -mcygwin %ss2.91.57tmsvcrts,Consider upgrading to a newer version of gcc(Rt__init__tcheck_config_ht debug_printt CONFIG_H_OKtwarnt get_versionst gcc_versiont
ld_versiontdllwrap_versiont compiler_typet
linker_dlltset_executablest dll_librariesR(tselftverbosetdry_runtforcetstatustdetailst shared_option((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/cygwinccompiler.pyR!ms<                
cCs¦|dks|dkrZy |jdd|d|gƒWq¢tk
rV}t|‚q¢XnHy)|j|j||d|g|ƒWntk
r¡}t|‚nXdS(Ns.rcs.restwindress-is-o(tspawnRRR(R.tobjtsrctexttcc_argstextra_postargstpp_optstmsg((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/cygwinccompiler.pyt_compile²s  cCsÖtj|
pgƒ}
tj|p$gƒ}tj|p9gƒ}|j|jƒ|dk    rˆ||jksy|jdkrˆtjj|dƒ}tjj    tjj
|ƒƒ\}}tjj ||dƒ}tjj |d|dƒ}dtjj
|ƒdg}x|D]}|j |ƒq W|j t||fd|ƒ|jd    krx|
jd
|gƒ|
jd |gƒqˆ|j |ƒn|    sž|
j d ƒntj||||||||d|    |
| | | ƒdS( NRis.deftlibs.as
LIBRARY %stEXPORTSs
writing %sRs --output-libs--defs-s(tcopytextendR-tNonet
EXECUTABLER+tostpathtdirnametsplitexttbasenametjointappendtexecuteRRtlink(R.t target_desctobjectstoutput_filenamet
output_dirt    librariest library_dirstruntime_library_dirstexport_symbolstdebugt extra_preargsR;t
build_tempt target_langttemp_dirtdll_namet dll_extensiontdef_filetlib_filetcontentstsym((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/cygwinccompiler.pyRMÀsJ                    tc    CsJ|dkrd}ng}x(|D] }tjj|ƒ\}}tjj|ƒ}|dkrg|}n||jddgkr–td||f‚ntjj|ƒd}|tjj|ƒ}|rÝtjj    |ƒ}n|dksõ|dkr|j
tjj ||||j ƒƒq"|j
tjj |||j ƒƒq"W|S(NRas.rcs.ress"unknown file type '%s' (from '%s')i(s.rcs.res( RCRERFRHtnormcasetsrc_extensionsRt
splitdrivetisabsRIRKRJt obj_extension(    R.tsource_filenamest    strip_dirRQt    obj_namestsrc_nametbaseR9t ext_normcase((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/cygwinccompiler.pytobject_filenames#s,          N(t__name__t
__module__R*Rftstatic_lib_extensiontshared_lib_extensiontdylib_lib_extensiontstatic_lib_formattshared_lib_formatt exe_extensionR!R>RCRMRm(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/cygwinccompiler.pyR`s,E     XtMingw32CCompilercBs eZdZdddd„ZRS(tmingw32icCs£tj||||ƒ|jdkr.d}nd}|jdkrLd}nd}|jddd    d
d d d ddd|j||fƒg|_tƒ|_dS(Ns2.13s-shareds -mdll -statics2.91.57s--entry _DllMain@12RaRsgcc -mno-cygwin -O -WallRsgcc -mno-cygwin -mdll -O -WallRsg++ -mno-cygwin -O -WallRsgcc -mno-cygwinRs%s -mno-cygwin %s %s(RR!R(R'R,R+R-R(R.R/R0R1R4t entry_point((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/cygwinccompiler.pyR!Ms                  (RnRoR*R!(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/cygwinccompiler.pyRvIstoksnot okt    uncertaincCsÝddlm}ddl}|jtjdƒdkrAtdfS|jƒ}y.t|ƒ}z|j    ƒ}Wd|j
ƒXWn't k
r¤}t d||j ffSX|j|dƒdkrËtd    |fStd
|fSdS( s¡Check if the current Python installation (specifically, pyconfig.h)
    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__".
    iÿÿÿÿ(t    sysconfigNtGCCissys.version mentions 'GCC'scouldn't read '%s': %st__GNUC__s'%s' mentions '__GNUC__'s '%s' does not mention '__GNUC__'(t    distutilsR{tstringRRRR$tget_config_h_filenametopentreadtclosetIOErrortCONFIG_H_UNCERTAINtstrerrortCONFIG_H_NOTOK(R{Rtfntftstexc((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/cygwinccompiler.pyR"€s  
  c Cs%ddlm}ddlm}ddl}tjjdƒpG|dƒ}tjjdƒpe|dƒ}|rtj|d    d
ƒ}|j    ƒ}|j
ƒ|j d |ƒ}|rÊ||j d ƒƒ}nd}tj|d d
ƒ}|j    ƒjdƒjƒd}|j
ƒnd}|rƒtj|dd
ƒ}|j    ƒ}|j
ƒ|j d |ƒ}|rz||j d ƒƒ}    q‰d}    nd}    tjjdƒp¤|dƒ}
|
rtj|
dd
ƒ}|j    ƒ}|j
ƒ|j d|ƒ}|r    ||j d ƒƒ} qd} nd} ||    | fS(sj Try to find out the versions of gcc, ld and dllwrap.
        If not possible it returns None for it.
    iÿÿÿÿ(t LooseVersion(tfind_executableNtCCRtLDtlds  -dumpversiontrs(\d+\.\d+(\.\d+)*)is --print-prog-name ldtasciiis -vtDLLWRAPRs
 --versions (\d+\.\d+(\.\d+)*)(tdistutils.versionRŒtdistutils.spawnRtreREtenvirontgettpopenR‚RƒtsearchtgroupRCtdecodetsplit( RŒRR–tgcc_exetld_exetoutt
out_stringtresultR'R(t dllwrap_exeR)((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/cygwinccompiler.pyR&µsJ  
 
     
    (t__doc__t __revision__RERRAtdistutils.ccompilerRRtdistutils.unixccompilerRtdistutils.file_utilRtdistutils.errorsRRRR~RRRRvR$R‡R…R"R&(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/cygwinccompiler.pyt<module>s+$    %é3    5