xfc@s dZddlZddlZddlmZmZiidd6dd6dd 6d d 6d d 6dd6dd6dd6d6idd6dd6dd 6dd 6dd 6dd6dd6dd6d6idd6dd6dd 6dd 6dd 6dd6dd6dd6d6idd6dd6dd 6dd 6dd 6dd6dd6dd6d6idd6dd6d d 6d d 6d!d 6d"d6d#d6d$6id%d6d%d6d&d 6d&d 6d'd 6d(d6d#d6d)6id*d6d*d6d d 6d+d 6d!d 6d"d6d#d6d,6id-d6d-d6d.d 6d.d 6d/d 6d"d6d#d6d06ZdWZejj d1Z ejd2 Z e d1e d3Z ej jejZej jejZdadZd4Zejrej jeejZneejZejdkr d5ed6jkr eej jeeZnejdkrOd7ed8jkrOeej jeeeZnejdkrd9ed:jkreej jeeeZnd;ejkrej jej jd<Znd=Z e Z!e!r x-dXD]"Z"d>ee"d RRRLtcwdRRtvalsR5((s!/usr/lib64/python2.7/sysconfig.pyR3sJ                   cCstj|S(sReturn the value of a single variable using the dictionary returned by 'get_config_vars()'. Equivalent to get_config_vars().get(name) (R3RF(R5((s!/usr/lib64/python2.7/sysconfig.pyRIscCsddl}tjdkrd}tjj|}|dkrFtjStjjd|}tj|t||!j}|dkrdS|dkrd StjSd tj krtj d Stjd kst td  rtjStj \}}}}} |jj d d}| j dd} | j d d} |d dkrWd|| fS|d dkr|ddkrd}dt |dd|df}idd6dd6} | d | tj7} qn|d! d"krd||fS|d d#kr d$|||fS|d% d&krYd&}|jd'} | j|} | r| j}qnC|d% d(krddl} | jt||| \}}} nd)||| fS(*sReturn a string that identifies the current platform. This is used mainly to distinguish platform-specific build directories and platform-specific built distributions. Typically includes the OS name and version and the architecture (as supplied by 'os.uname()'), although the exact information included depends on the OS; eg. for IRIX the architecture isn't particularly important (IRIX only runs on SGI hardware), but for Linux the kernel version isn't particularly important. Examples of returned values: linux-i586 linux-alpha (?) solaris-2.6-sun4u irix-5.3 irix64-6.2 Windows will return one of: win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc) win-ia64 (64bit Windows on Itanium) win32 (all others - specifically, sys.platform is returned) For other non-POSIX platforms, currently just returns 'sys.platform'. iNR s bit (t)tamd64s win-amd64titaniumswin-ia64t_PYTHON_HOST_PLATFORMR1tunamet/RPt t_t-itlinuxs%s-%stsunosit5tsolariss%d.%siit32bitit64bitIs.%sitirixtaixs%s-%s.%sitcygwins[\d.]+RCs%s-%s-%s(RRRR5RGRtfindRHtlentlowerR#RRRZR[tmaxintRSRXRYRtget_platform_osxR3(RRRtitjtlooktosnamethosttreleaseRtmachinetbitnesstrel_reRlR((s!/usr/lib64/python2.7/sysconfig.pyRsZ      " cCstS(N(R(((s!/usr/lib64/python2.7/sysconfig.pytget_python_versionbscCsZxStt|jD]9\}\}}|dkrCd|GHnd||fGHqWdS(Nis%s: s %s = "%s"(t enumeratetsortedR*(ttitleR tindexR.R/((s!/usr/lib64/python2.7/sysconfig.pyt _print_dictfs+  cCsddtjkrtdSdtGHdtGHdtGHHtdtHtdtdS(s*Display all information sysconfig detains.s--generate-posix-varsNsPlatform: "%s"sPython version: "%s"s!Current installation scheme: "%s"tPathst Variables( RGtargvRRRR<RRR3(((s!/usr/lib64/python2.7/sysconfig.pyt_mainms   t__main__(sstdlibs platstdlibspurelibsplatlibsincludesscriptssdata(s posix_prefixs posix_home(;t__doc__RGRtos.pathRRR4RRtsplitRRRRR7RRRRR2Rt _USER_BASERRRRRR5RRR#tabspathR RwR8R(R0R;R<RNRtRyRRRRRRRRRRxR3RIRRRRt__name__(((s!/usr/lib64/python2.7/sysconfig.pyts            %%!%!!       V  D       G  \