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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
M\¬Qc @sòdZdZdZddlZddlZddlZddlZy ejZWn/e    k
r€ej
dZkrwd    Zqd
ZnXej d ƒZ ej d d d d„Zd„Zej dƒZej dƒZej dƒZd[Zd „Zd d d ed!d"„Zd d d ed#„Zd$d\d%„ƒYZd&dd'„Zd d(„Zej d)ƒZd d d d]d*„Zd d+„Zd d d d d,„Zdd-„Zd.„Z d/„Z!d0„Z"d d^d d1„Z#d2„Z$d d d_d`d3„Z%d4„Z&d5„Z'd d6„Z(e)ej*d7ƒsAej*j+ej*j,ej-ej*j.d8„Z/n ej*j0Z/d9„Z1d d:„Z2d d;„Z3idad6dbd6dcd6Z4ej d?ƒj5Z6ej d d d@„Z7da8dA„Z9dB„Z:dC„Z;dD„Z<dE„Z=dF„Z>dG„Z?ej dHƒZ@ej dIƒZAej dJƒZBiZCddK„ZDdL„ZEdM„ZFdN„ZGdO„ZHdP„ZIdQ„ZJdR„ZKiZLdSdSdT„Z
eMdUkrîdVejNkp¯dWejNkZOdXejNkoÍdYejNkZPe
ePeOƒGHejQdSƒndS(ds8 This module tries to retrieve as much platform-identifying data as
    possible. It makes this information available via function APIs.
 
    If called from the command line, it prints the platform
    information concatenated as single string to stdout. The output
    format is useable as part of a filename.
 
s
    Copyright (c) 1999-2000, Marc-Andre Lemburg; mailto:mal@lemburg.com
    Copyright (c) 2000-2010, eGenix.com Software GmbH; mailto:info@egenix.com
 
    Permission to use, copy, modify, and distribute this software and its
    documentation for any purpose and without fee or royalty is hereby granted,
    provided that the above copyright notice appear in all copies and that
    both that copyright notice and this permission notice appear in
    supporting documentation or portions thereof, including modifications,
    that you make.
 
    EGENIX.COM SOFTWARE GMBH DISCLAIMS ALL WARRANTIES WITH REGARD TO
    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
    FITNESS, IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL,
    INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
    FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
    NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
    WITH THE USE OR PERFORMANCE OF THIS SOFTWARE !
 
s1.0.7iÿÿÿÿNtdostwin32twin16tos2tNULs    /dev/nullsC(__libc_init)|(GLIBC_([0-9.]+))|(libc(_\w+)?\.so(?:\.(\d[0-9.]*))?)ticCs~ttjdƒr'tjj|ƒ}nt|dƒ}|j|ƒ}d}xtj||ƒ}|s‹|j|ƒ}|sPnd}qNn|jƒ\}}    }
} } } |r¿| r¿d}nœ|    rø|dkràd}|
}q[|
|kr[|
}q[nc| r[|dkr[d}| r+| |kr+| }n| rX|t    | ƒ | krX|| }qXq[n|j
ƒ}qN|j ƒ||fS(s Tries to determine the libc version that the file executable
        (which defaults to the Python interpreter) is linked against.
 
        Returns a tuple of strings (lib,version) which default to the
        given parameters in case the lookup fails.
 
        Note that the function has intimate knowledge of how different
        libc versions add symbols to the executable and thus is probably
        only useable for executables compiled using gcc.
 
        The file is read and scanned in chunks of chunksize bytes.
 
    trealpathtrbitlibctglibc( thasattrtostpathRtopentreadt _libc_searchtsearchtgroupstlentendtclose(t
executabletlibtversiont    chunksizetftbinarytpostmtlibcinitR    t glibcversiontsotthreadst    soversion((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pytlibc_vers@                 
c CsètjjdƒrÄtdƒjƒ}d}xŠ|D]‚}tj|ƒ}t|ƒdkr1|\}}nq1|dkrˆtj|ƒ}q1|dkr1tj|dƒ}|d}q1q1W|||fStjjdƒrAtdƒjƒ}xV|D]K}tj|dƒ}    t|    ƒdkrï|    dd    krïd    |    d
|fSqïWntjj    d ƒrÛtj
d ƒ}
xBt t|
ƒd
d d ƒD]$} |
| d  dkr|
| =qqW|
rÛ|
j ƒd}|
d d }|||fSn|||fS(sÙ Tries some special tricks to get the distribution
        information in case the default method fails.
 
        Currently supports older SuSE Linux, Caldera OpenLinux and
        Slackware Linux distributions.
 
    s/var/adm/inst-log/infotSuSEitMIN_DIST_VERSIONt
DIST_IDENTt-s/etc/.installedit    OpenLinuxis/usr/lib/setupiÿÿÿÿisslack-version-t    slackware( R R texistsR t    readlineststringtsplitRtstriptisdirtlistdirtrangetsort( tdistnameRtidtinfotlinettvttagtvaluetvaluestpkgtverfilestn((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyt_dist_try_harderÂs>         "#
s(\w+)[-_](release|version)s'(.+) release ([\d.]+)[^(]*(?:\((.+)\))?s1([^0-9]+)(?: release )?([\d.]+)[^(]*(?:\((.+)\))?R#tdebiantfedoratredhattcentostmandraketmandrivatrocksR(t    yellowdogtgentoot UnitedLinuxt
turbolinuxcCs¹d}d}tj|ƒ}|dk    r7t|jƒƒStj|ƒ}|dk    rbt|jƒƒStjtj|ƒƒ}|r¬|d}t    |ƒdkr¬|d}q¬nd||fS(NRii(
t_lsb_release_versiontmatchtNonettupleRt_release_versionR+R,R-R(t    firstlineRR3Rtl((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyt_parse_release_files  
icCs#ytjdƒ}Wntjk
r3|||fSX|jƒxd|D]L}tj|ƒ}|dk    rE|jƒ\}}    ||kr‘|}Pq‘qEqEWt|||ƒSt    d|dƒ}
|
j
ƒ} |
j ƒt | ƒ\}} } |rø|rø|}n| r| }n| r| }n|||fS(sä Tries to determine the name of the Linux OS distribution name.
 
        The function first looks for a distribution release file in
        /etc and then reverts to _dist_try_harder() in case no
        suitable files are found.
 
        supported_dists may be given to define the set of Linux
        distributions to look for. It defaults to a list of currently
        supported Linux distributions identified by their release file
        name.
 
        If full_distribution_name is true (default), the full
        distribution read from the OS is returned. Otherwise the short
        name taken from supported_dists is used.
 
        Returns a tuple (distname,version,id) which default to the
        args given as parameters.
 
    s/etcs/etc/trN( R R/terrorR1t_release_filenameRJRKRR=R treadlineRRP(R2RR3tsupported_diststfull_distribution_nametetctfileRt    _distnametdummyRRNt_versiont_id((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pytlinux_distribution#s0
 
             cCst|||d|ddƒS(sQ Tries to determine the name of the Linux OS distribution name.
 
        The function first looks for a distribution release file in
        /etc and then reverts to _dist_try_harder() in case no
        suitable files are found.
 
        Returns a tuple (distname,version,id) which default to the
        args given as parameters.
 
    RURVi(R](R2RR3RU((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pytdist[st_popencBsbeZdZdZdZdZdZddd„Zd„Z    d„Z
e j e j d„ZeZRS(s Fairly portable (alternative) popen implementation.
 
        This is mostly needed in case os.popen() is not available, or
        doesn't work as advertised, e.g. in Win9X GUI programs like
        PythonWin or IDLE.
 
        Writing to the pipe is currently not supported.
 
    RRQcCst|dkrtd‚nddl}|jƒ|_}tj|d|ƒt|dƒ|_||_||_    dS(NRQs)popen()-emulation only supports read modeiÿÿÿÿs > %sR(
t
ValueErrorttempfiletmktempttmpfileR tsystemR tpipetbufsizetmode(tselftcmdRgRfRaRc((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyt__init__}s       cCs |jjƒS(N(ReR(Rh((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyRˆscCs |jdk    r|jjƒSdS(N(RfRKReR*(Rh((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyR*ŒscCsV|jr|jjƒ}nd}|jrRy||jƒWqR|k
rNqRXn|S(Niÿ(ReRRc(RhtremoveRRtrc((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyR‘s         N(t__name__t
__module__t__doc__RcRKReRfRgRjRR*R tunlinkRRRt__del__(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyR_ms
        RQcCsëd}tjjddƒdkrQyddl}Wntk
rDqQX|j}n|dkr¾ttdƒrµtj}tj    dkr»y|dƒWq²tj
k
r®t }q²Xq»q¾t }n|dkr×|||ƒS||||ƒSdS(s! Portable popen() interface.
    tOSRt
Windows_NTiÿÿÿÿNtpopenR( RKR tenvirontgett    win32pipet ImportErrorRtR
tsystplatformRRR_(RiRgRfRtRw((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyRt£s&             cCs~tj|dƒ}|r(|j|ƒnytt|ƒ}Wntk
rT|}nXtt|ƒ}tj|d dƒ}|S(sŒ Normalize the version and build strings and return a single
        version string using the format major.minor.build (or patchlevel).
    t.i(R+R,tappendtmaptintR`tstrtjoin(RtbuildROtintststrings((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyt _norm_versionÄs 
s'(?:([\w ]+) ([\w.]+) .*\[.* ([\d.]+)\])c    Cs8tj|kr|||fSx„dD]o}y7t|ƒ}|jƒ}|jƒr_tjd‚nWn.tjk
r{}q#q#tk
r}q#q#XPq#W|||fStj    |ƒ}t
j |ƒ}|dk    r+|j ƒ\}}}|ddkrÿ|d }n|ddkr|d }nt|ƒ}n|||fS(    s2 Tries to figure out the OS version used and returns
        a tuple (system,release,version).
 
        It uses the "ver" shell command for this which is known
        to exists on Windows, DOS and OS/2. XXX Others too ?
 
        In case this fails, the given parameters are used as
        defaults.
 
    tverscommand /c vers
cmd /c verscommand failediÿÿÿÿR{(R…scommand /c vers
cmd /c verN(RyRzRtRRR RRtIOErrorR+R-t _ver_outputRJRKRR„(    RdtreleaseRtsupported_platformsRiReR4twhyR((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyt _syscmd_verâs0         cCs]yddlm}Wn&tk
r<ddl}|j}nXy|||ƒSWn|SXdS(se Read a value for name from the registry key.
 
        In case this fails, default is returned.
 
    iÿÿÿÿ(tRegQueryValueExN(twin32apiRŒRxt_winregt QueryValueEx(tkeytnametdefaultRŒRŽ((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyt_win32_getvalues   cCsCyTddl}ddlm}m}m}m}ddlm}    m}
m} m    } Wn”t
k
rêy t j Wnt k
r||||fSXddl} t j }| j}| j}| j}| j}    d} d}
d} d}d}nX|ƒ}|\}}}}}d|||d    @f}t|d
ƒrQ|jd krrd |j}qrn!|d  dkrrd|d }n|| krðd}|dkrØ|dkr¥d}qí|dkrºd}qí|dkrÏd}qíd}q±|dkr±d}q±nÁ||
krˆd}|dkrd}q±|dkrk|dkr8d}q…|dkrMd}q…|dkrbd}q…d}q±|d kr±t|d!ƒr’|j}nl| }yR||    |ƒ}||d"ƒ\}}||kré|jd#ƒdkré|}nWntk
rýnX|dkr(|| krd$}q‚d%}q…|dkrR|| krId&}q‚d'}q…|dkr||| krsd(}q‚d)}q…d*}q±n)|s¡d+||f}n||||fSy ||    |ƒ}||d,ƒWn||||fSXt|d-d/ƒd}t|d.|dfƒd}t||ƒ}||ƒ||||fS(0s  Get additional version information from the Windows Registry
        and return a tuple (version,csd,ptype) referring to version
        number, CSD level (service pack), and OS type (multi/single
        processor).
 
        As a hint: ptype returns 'Uniprocessor Free' on single
        processor NT machines and 'Multiprocessor Free' on multi
        processor machines. The 'Free' refers to the OS version being
        free of debugging code. It could also state 'Checked' which
        means the OS version uses debugging code, i.e. code that
        checks arguments, ranges, etc. (Thomas Heller).
 
        Note: this function works best with Mark Hammond's win32
        package installed, but also on Python 2.3 and later. It
        obviously only runs on Win32 compatible platforms.
 
    iÿÿÿÿN(RŒt RegOpenKeyExt RegCloseKeyt GetVersionEx(tHKEY_LOCAL_MACHINEtVER_PLATFORM_WIN32_NTtVER_PLATFORM_WIN32_WINDOWStVER_NT_WORKSTATIONiiis%i.%i.%iiÿÿt service_packRsSP%si s Service Pack tSPs)SOFTWARE\Microsoft\Windows\CurrentVersioniit95i
t98iZtMetpostMeit2000s,SOFTWARE\Microsoft\Windows NT\CurrentVersiontNTtXPt
2003Servertpost2003it product_typet ProductNametServertVistat
2008Servert7t 2008ServerR2t8t
2012Servertpost2012Servers%i.%it
SystemRoottCurrentBuildNumbert CurrentType(Ri(RRŒR”R•R–twin32conR—R˜R™RšRxRytgetwindowsversiontAttributeErrorRŽRt    OpenKeyExtCloseKeyR
R›tservice_pack_majorR¦tfindt WindowsErrorR“R„(RˆRtcsdtptypeRRŒR”R•R–R—R˜R™RšRŽt VER_NT_SERVERtREG_SZtwinvertmajtmintbuildnotplattregkeyR¦RR‘ttypet    keyCurVerR((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyt    win32_ver)sº "&                        
                                                       !                                  
cCs{ddlm}ddl}g}|j}xI|D]A}y|||ƒƒWq2t|jfk
rr||ƒq2Xq2W|S(Niÿÿÿÿ(tgestalt(RÈtMacOSR|t RuntimeErrortError(t    selectorsR’RÈRÉROR|tselector((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyt_mac_ver_lookupÎs      cCst|ƒdS(Ni(thex(tbcd((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyt_bcd2strÛsc
Cs yddl}ddl}Wntk
r0dSXtdƒ\}}|rÈ|d@d?}|d@d?}|d    @}||fdkr¬tdƒ\}}}d|||f}qÈdt|ƒ||f}n|røidd6dd6dd
6j|dƒ}nd}    ||    |fS(sã
        Thanks to Mark R. Levinson for mailing documentation links and
        code examples for this function. Documentation for the
        gestalt() API is available online at:
 
           http://www.rgaros.nl/gestalt/
    iÿÿÿÿNtsysvtsysaiÿiiðiii
tsys1tsys2tsys3s%i.%i.%is%s.%i.%it68kitPowerPCiti386R(ssysvssysa(i
i(RÔRÕRÖ(RRR(RÈRÉRxRKRÎRÑRv(
RÈRÉRÒRÓtmajortminortpatchRˆtmachinet versioninfo((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyt_mac_ver_gestaltßs(      
 
cCs’d}tjj|ƒsdSyddl}Wntk
r@dSX|j|ƒ}|d}d    }tjƒd}|d
kr…d}n|||fS( Ns0/System/Library/CoreServices/SystemVersion.plistiÿÿÿÿtProductVersionRitppcsPower MacintoshRØ(RRR(sppcsPower Macintosh(R R R)RKtplistlibRxt    readPlisttuname(tfnRâtplRˆRÞRÝ((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyt _mac_ver_xmls 
     cCs?tƒ}|dk    r|Stƒ}|dk    r2|S|||fS(s; Get MacOS version information and return it as tuple (release,
        versioninfo, machine) with versioninfo being a tuple (version,
        dev_stage, non_release_version).
 
        Entries which cannot be determined are set to the paramter values
        which default to ''. All tuple entries are strings.
    N(RçRKRß(RˆRÞRÝR4((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pytmac_vers          cCsPddlm}y'|j|ƒ}|dkr2|S|SWntk
rK|SXdS(Niÿÿÿÿ(tSystem(t    java.langRét getPropertyRKRµ(R‘R’RéR8((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyt _java_getprop6s  c Csõyddl}Wntk
r0||||fSXtd|ƒ}td|ƒ}|\}}}td|ƒ}td|ƒ}td|ƒ}|||f}|\}}    }
td|
ƒ}
td    |ƒ}td
|    ƒ}    ||    |
f}||||fS( sV Version interface for Jython.
 
        Returns a tuple (release,vendor,vminfo,osinfo) with vminfo being
        a tuple (vm_name,vm_release,vm_vendor) and osinfo being a
        tuple (os_name,os_version,os_arch).
 
        Values which cannot be determined are set to the defaults
        given as parameters (which all default to '').
 
    iÿÿÿÿNs java.vendors java.versions java.vm.namesjava.vm.vendorsjava.vm.versions java.os.archs java.os.namesjava.os.version(RêRxRì( Rˆtvendortvminfotosinfotjavatvm_namet
vm_releaset    vm_vendortos_namet
os_versiontos_arch((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pytjava_verAs"  cCs|dkrd|||fS|dkrÏ|dkrB|||fStj|dƒ}|r±yt|dƒ}Wntk
rq±X|d}t|ƒ|d<tj|dƒ}n|dkrÆd    }qd    }nC|d
krýd }|rô|d }qd }n|dkrd}n|||fS(sá Returns (system,release,version) aliased to common
        marketing names used for some systems.
 
        It also does some reordering of the information in some cases
        where it would otherwise cause confusion.
 
    tRhapsodysMacOS X ServertSunOSt5R{iit6tSolaristIRIX64tIRIXs (64bit)t64bitRRtWindows(swin32R(R+R,R~R`RR€(RdRˆRRORÚ((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyt system_aliasds2         
                    cGs%tjttjtt|ƒƒdƒ}tj}||ddƒ}||ddƒ}||ddƒ}||ddƒ}||ddƒ}||ddƒ}||d    dƒ}||d
dƒ}||d d ƒ}x+||d dƒ}||kr÷Pn|}qÕx|ddkr |d }qW|S(sq Helper to format the platform string in a filename
        compatible format e.g. "system-version-machine".
    R&t t_t/s\t:t;t"t(t)tunknownRs--iÿÿÿÿ(R+R€R}R-tfilterRtreplace(targsRzR tcleaned((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyt    _platformšs,                 cCsOyddl}Wntk
r$|SXy|jƒSWn|jk
rJ|SXdS(s8 Helper to determine the node name of this machine.
    iÿÿÿÿN(tsocketRxt gethostnameRR(R’R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyt_node¾s tabspathcCs+||ƒs!||ƒ|ƒ}n||ƒS(N((R tisabsR€tgetcwdtnormpath((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyt_abspathÐs cCs_t|ƒ}xLtjj|ƒrZtjjtjjtjj|ƒtj|ƒƒƒ}qW|S(sT In case filepath is a symlink, follow it until a
        real file is reached.
    (RR R tislinkRR€tdirnametreadlink(tfilepath((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyt_follow_symlinksÝs
     1cCsˆtjdkr|Sytjd|tfƒ}Wnttjfk
rM|SXtj|j    ƒƒ}|j
ƒ}| s||r€|S|SdS(s. Interface to the system's uname command.
    RRRRsuname %s 2> %sN(Rswin32swin16sos2( RyRzR RttDEV_NULLRµRRR+R-RR(toptionR’RtoutputRl((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyt _syscmd_unameès  cCs©ddl}tjd kr|St|ƒ}y+|jd|gd|jd    |jƒ}Wnttj    fk
rs|SX|j
ƒd
}|j ƒ}| s|r¡|S|SdS( s& Interface to the system's file command.
 
        The function uses the -b option of the file command to have it
        ommit the filename in its output and if possible the -L option
        to have the command follow symlinks. It returns default in
        case the command should fail.
 
    iÿÿÿÿNRRRRRXtstdouttstderri(sdosswin32swin16sos2( t
subprocessRyRzRtPopentPIPEtSTDOUTRµR RRt communicatetwait(ttargetR’R#tprocRRl((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyt _syscmd_fileús    t    WindowsPERtMSDOSs[\s,]c    Cs»|sbddl}y|jdƒ}Wn#|jk
rJ|jdƒ}nXt|dƒd}n|rzt|dƒ}nd}| rã|tjkrãtjtkrÙttj\}}|rÇ|}n|rÙ|}qÙn||fSt    |ƒd}d    |kr    ||fSd
|krd }n*d |kr3d }nd|krHd}nd|kr]d}nTd|kr‡d|kr~d}q±d}n*d|krœd}nd|kr±d}n||fS(s“ Queries the given executable (defaults to the Python interpreter
        binary) for various architecture information.
 
        Returns a tuple (bits,linkage) which contains information about
        the bit architecture and the linkage format used for the
        executable. Both values are returned as strings.
 
        Values that cannot be determined are returned as given by the
        parameter presets. If bits is given as '', the sizeof(pointer)
        (or sizeof(long) on Python version < 1.5.2) is used as
        indicator for the supported pointer size.
 
        The function relies on the system's "file" command to do the
        actual work. This is available on most if not all Unix
        platforms. On some non-Unix platforms where the "file" command
        does not exist and the executable is set to the Python interpreter
        binary defaults from _default_architecture are used.
 
    iÿÿÿÿNtPROitbitRiRs32-bitt32bittN32tn32bits64-bitRÿtELFtPERR,tCOFFsMS-DOSR-(
tstructtcalcsizeRRRR+RyRRzt_default_architecturet_architecture_split(    RtbitstlinkageR6tsizeRtbROtfileout((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyt architecture5sN      
 
                                        c Cs¨d}tdk    rtSd}ytjƒ\}}}}}Wntk
rTd}nX|sztd|||||fƒ rG|r§tj}d}d}tƒ}d}nd}|dkrIt    ƒ\}}}}    |rã|rãd}n|s(dtj
krtj
j ddƒ}q(tj
j ddƒ}n|sItj
j d|ƒ}qIn|r¼t |ƒ\}}}|dkryd    }q¼|d
kr¼|d    kr¼d    }d |d  kr°d }q¹d}q¼n|dkrõ|sì|dkrãd}qìd}nd    }qG|d dkrGt ƒ\}}
} } d}tj| dƒ}|sD|
}qDqGn|dkrÏ| sf|dkru|}d}nyddl} Wntk
r˜qÏX| jddƒ\}}|dkrÆd}qÏd}n|sçtddƒ}n|dkrüd}n|dkrd}n|dkr&d}n|dkr;d}n|dkrPd}n|dkred}n|d
krŒ|d    krŒd    }d }n||||||fatS( si Fairly portable uname interface. Returns a tuple
        of strings (system,node,release,version,machine,processor)
        identifying the underlying platform.
 
        Note that unlike the os.uname function this also returns
        possible processor information as an additional tuple entry.
 
        Entries which cannot be determined are set to ''.
 
    iRiRtPROCESSOR_ARCHITEW6432tPROCESSOR_ARCHITECTUREtPROCESSOR_IDENTIFIERsMicrosoft WindowsRt    Microsofts6.0iR©RR0t16bitiRðtJavas, tOpenVMSt0iÿÿÿÿNsSYI$_CPUi€tAlphatVAXs-pR
(swin32swin16(t _uname_cacheRKR RäRµR RyRzRRÇRuRvR‹R÷R+R€tvms_libRxtgetsyiR (t no_os_unamet    processorRdtnodeRˆRRÝtuse_syscmd_verR»R¼RíRîRïRKtcsidt
cpu_number((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyRäŽsœ   
%                                                                                           cCs tƒdS(s Returns the system/OS name, e.g. 'Linux', 'Windows' or 'Java'.
 
        An empty string is returned if the value cannot be determined.
 
    i(Rä(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyRdscCs tƒdS(s Returns the computer's network name (which may not be fully
        qualified)
 
        An empty string is returned if the value cannot be determined.
 
    i(Rä(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyRO scCs tƒdS(s Returns the system's release, e.g. '2.2.0' or 'NT'
 
        An empty string is returned if the value cannot be determined.
 
    i(Rä(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyRˆ*scCs tƒdS(s‡ Returns the system's release version, e.g. '#3 on degas'
 
        An empty string is returned if the value cannot be determined.
 
    i(Rä(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyR3scCs tƒdS(st Returns the machine type, e.g. 'i386'
 
        An empty string is returned if the value cannot be determined.
 
    i(Rä(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyRÝ<scCs tƒdS(s Returns the (true) processor name, e.g. 'amdk6'
 
        An empty string is returned if the value cannot be
        determined. Note that many platforms do not provide this
        information or simply return the same value as for machine(),
        e.g.  NetBSD does this.
 
    i(Rä(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyRNEs
sB([\w.+]+)\s*\(#?([^,]+),\s*([\w ]+),\s*([\w :]+)\)\s*\[([^\]]+)\]?s;IronPython\s*([\d\.]+)(?: \(([\d\.]+)\))? on (.NET [\d\.]+)sE([\w.+]+)\s*\(#?([^,]+),\s*([\w ]+),\s*([\w :]+)\)\s*\[PyPy [^\]]+\]?cCs…|dkrtj}ntj|dƒ}|dk    r:|S|d dkr¨d}tj|ƒ}|dkr„tdt|ƒƒ‚n|j    ƒ\}}}d}d}n>tj
d dkrd}t j|ƒ}|dkrõtdt|ƒƒ‚n|j    ƒ\}}}}    }
tj
}nÊd    |krƒd    }t j|ƒ}|dkrbtd
t|ƒƒ‚n|j    ƒ\}}}}    d}nct j|ƒ}|dkr·td t|ƒƒ‚n|j    ƒ\}}}}    }d }|d |    }t tdƒr
tj\}
} } n d} d} tj|dƒ} t| ƒdkr\| jdƒtj| dƒ}n||| | |||f}|t|<|S(sÛ Returns a parsed version of Python's sys.version as tuple
        (name, version, branch, revision, buildno, builddate, compiler)
        referring to the Python implementation name, version, branch,
        revision, build number, build date/time as string and the compiler
        identification string.
 
        Note that unlike the Python sys.version, the returned value
        for the Python version will always include the patchlevel (it
        defaults to '.0').
 
        The function returns empty strings for tuple entries that
        cannot be determined.
 
        sys_version may be given to parse an alternative version
        string, e.g. if the version was read from a different Python
        interpreter.
 
    i
t
IronPythons*failed to parse IronPython sys.version: %sRiRðtJythons&failed to parse Jython sys.version: %stPyPys$failed to parse PyPy sys.version: %ss'failed to parse CPython sys.version: %stCPythonRt
subversionR{iRGN(RKRyRt_sys_version_cacheRvt_ironpython_sys_version_parserRJR`treprRRzt_sys_version_parsert_pypy_sys_version_parserR
RWR+R,RR|R€(t sys_versiontresultR‘RJRt alt_versiontcompilerRÂt    builddatet    buildtimeRtbranchtrevisionRO((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyt _sys_versionesf                  
cCs tƒdS(sR Returns a string identifying the Python implementation.
 
        Currently, the following implementations are identified:
          'CPython' (C implementation of Python),
          'IronPython' (.NET implementation of Python),
          'Jython' (Java implementation of Python),
          'PyPy' (Python implementation of Python).
 
    i(Re(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pytpython_implementationÂs cCs tƒdS(sÈ Returns the Python version as string 'major.minor.patchlevel'
 
        Note that unlike the Python sys.version, the returned value
        will always include the patchlevel (it defaults to 0).
 
    i(Re(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pytpython_versionÏscCsttjtƒddƒƒS(sÝ Returns the Python version as tuple (major, minor, patchlevel)
        of strings.
 
        Note that unlike the Python sys.version, the returned value
        will always include the patchlevel (it defaults to 0).
 
    iR{(RLR+R,Re(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pytpython_version_tupleÙs    cCs tƒdS(sè Returns a string identifying the Python implementation
        branch.
 
        For CPython this is the Subversion branch from which the
        Python binary was built.
 
        If not available, an empty string is returned.
 
    i(Re(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyt python_branchäs cCs tƒdS(sì Returns a string identifying the Python implementation
        revision.
 
        For CPython this is the Subversion revision from which the
        Python binary was built.
 
        If not available, an empty string is returned.
 
    i(Re(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pytpython_revisionòs cCstƒdd!S(sh Returns a tuple (buildno, builddate) stating the Python
        build number and date as strings.
 
    ii(Re(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyt python_buildÿscCs tƒdS(sS Returns a string identifying the compiler used for compiling
        Python.
 
    i(Re(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pytpython_compilersic
Cs[tj||fdƒ}|dk    r(|Stƒ\}}}}}}||krXd}n|r|t|||ƒ\}}}n|dkrÐt|ƒ\}    }
} } |r¸t||ƒ} qGt|||| ƒ} nw|d    krYtdƒ\}}}|r"| r"t||||d|||ƒ} qGtt    j
ƒ\}}t||||d||ƒ} nî|dkrÆt ƒ\}}}\}}}|s| r¥t|||ƒ} qGt|||d|||ƒ} n|dkrÿ|rêt||ƒ} qGt|||ƒ} nH|rt||ƒ} n0t t    j
ƒ\}}t||||||ƒ} | t||f<| S(
sË Returns a single string identifying the underlying platform
        with as much useful information as possible (but no more :).
 
        The output is intended to be human readable rather than
        machine parseable. It may look different on different
        platforms and this is intended.
 
        If "aliased" is true, the function will use aliases for
        various platforms that report system names which differ from
        their common names, e.g. SunOS will be reported as
        Solaris. The system_alias() function is used to implement
        this.
 
        Setting terse to true causes the function to return only the
        absolute minimum information needed to identify the platform.
 
    RRtLinuxtwithREtonRÉN(Rm( t_platform_cacheRvRKRäRRÇRR^R"RyRR÷R?(taliasedtterseR^RdRORˆRRÝRNtreltversR»R¼RzR2t distversiontdistidtlibcnamet libcversionRQtvRîRôRõRöR:R;((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyRzsP             t__main__Rrs--terset
nonaliaseds --nonaliased(sdosswin32swin16sos2( sSuSER>R?R@RARBRCRDs    slackwareRERFRGRH((swin32swin16sdossos2(RRR(RRR(RRR(Rs    WindowsPE(RsWindows(RsMSDOS(RRot __copyright__t __version__RyR+R tretdevnullRRµRztcompileRRR"R=RSRIRMt_supported_distsRPR]R^R_RKRtR„R‡R‹R“RÇRÎRÑRßRçRèRìR÷RRRR
R RR€RRRRRR R+R8R,R9R?RJRäRdRORˆRRÝRNR[RYR\RXReRfRgRhRiRjRkRlRpRmtargvRrRqtexit(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/platform.pyt<module>
s¬f0      
  3    2          5     6!      2 ¥        )         #    6    $        3
W    ‰            
                                        ]        
                   
R