A dictionary containing name/value pairs is returned. If an optional dictionary is passed in as the second argument, it is used instead of a new dictionary. i����Ns"([a-zA-Z][a-zA-Z0-9_]+)\s*=\s*(.*)s\$\(([A-Za-z][A-Za-z0-9_]*)\)s\${([A-Za-z][A-Za-z0-9_]*)}t#tiis$$t$(tretcompileR3topent readlinest startswithtstriptmatchtgrouptreplacetintt ValueErrorR*tsearchRtstrRRR$tendtstartR+t isinstancetupdate(tfilenameR:RSt_variable_rxt_findvar1_rxt_findvar2_rxtdonetnotdonetftlinestlinetmtntvttmpvR6R0tfoundtitemtaftertk((s!/usr/lib64/python2.7/sysconfig.pyt_parse_makefile�sp !
cCs5trtjjtd�Stjjtd�dd�S(s Return the path of the Makefile.tMakefileRtconfig(t _PYTHON_BUILDRRRRtget_path(((s!/usr/lib64/python2.7/sysconfig.pytget_makefile_filenamesc Cs;ddl}i}t�}yt||�WnLtk rz}d|}t|d�rk|d|j}nt|��nXt�}y&t|��}t||�WdQXWnLtk r�}d|}t|d�r�|d|j}nt|��nXt r|d|d<nd}d t jkrYddl}|j |�} || _| t j|<nd t�t jd f} tt d�r�| d 7} nytj| �Wntk r�nXtjj| |d�}t|d��4}|jd�|jd�|j|d|�WdQXtdd��}|j| �WdQXdS(s;Generate the Python module containing build-time variables.i����Ns.invalid Python installation: unable to open %ststrerrors (%s)t BLDSHAREDtLDSHAREDt_sysconfigdataRDsbuild/lib.%s-%sitgettotalrefcounts-pydebugs.pytwbsB# system configuration generated and used by the sysconfig module sbuild_time_vars = tstreamspybuilddir.txttw(tpprintRzRutIOErrorthasattrR{tget_config_h_filenameRUtparse_config_hRxRHRItimpt new_moduletbuild_time_varstmodulestget_platformtversionRtmakedirsRRRtwrite(R�R:tmakefiletetmsgtconfig_hRjR6R�tmodulet pybuilddirtdestfile((s!/usr/lib64/python2.7/sysconfig.pyt_generate_posix_vars"sR
cCs!ddlm}|j|�dS(s7Initialize the module as appropriate for POSIX systems.i����(R�N(R~R�Rc(R:R�((s!/usr/lib64/python2.7/sysconfig.pyt_init_posixfscCsqtd�|d<td�|d<td�|d<d|d<d |d <t|d<tjjttj��|d<d S(s+Initialize the module as appropriate for NTRtLIBDESTRt BINLIBDESTRt INCLUDEPYs.pydtSOs.exetEXEtVERSIONtBINDIRN(Ryt_PY_VERSION_SHORT_NO_DOTRRtdirnameRRHt executable(R:((s!/usr/lib64/python2.7/sysconfig.pyt_init_non_posixls
c Cs�ddl}|dkr!i}n|jd�}|jd�}x�tr�|j�}|s^Pn|j|�}|r�|jdd�\}}yt|�}Wntk r�nX|||<qB|j|�}|rBd||jd�<qBqBW|S(s�Parse a config.h-style file.
A dictionary containing name/value pairs is returned. If an optional dictionary is passed in as the second argument, it is used instead of a new dictionary. i����Ns"#define ([A-Z][A-Za-z0-9_]+) (.*) s&/[*] #undef ([A-Z][A-Za-z0-9_]+) [*]/ iii( RSR3RTRtreadlineRYRZR\R]( tfpR:RSt define_rxtundef_rxRlRmRnRo((s!/usr/lib64/python2.7/sysconfig.pyR�|s*
cCsUtr6tjdkr-tjjtd�}qBt}ntd�}tjj|d�S(sReturns the path of pyconfig.h.RtPCRs pyconfig-64.h(RxRR6RRRRy(tinc_dir((s!/usr/lib64/python2.7/sysconfig.pyR��s cCs tj�}|j�t|�S(s-Returns a tuple containing the schemes names.(R5R*tsortttuple(tschemes((s!/usr/lib64/python2.7/sysconfig.pytget_scheme_names�s cCstS(s+Returns a tuple containing the paths names.(t_SCHEME_KEYS(((s!/usr/lib64/python2.7/sysconfig.pytget_path_names�scCs|rt||�St|SdS(s�Returns a mapping containing an install scheme.
``scheme`` is the install scheme name. If not provided, it will return the default scheme for the current platform. N(R<R5(R9R:texpand((s!/usr/lib64/python2.7/sysconfig.pyt get_paths�s cCst|||�|S(s\Returns a path corresponding to the scheme.
``scheme`` is the install scheme name. (R�(R6R9R:R�((s!/usr/lib64/python2.7/sysconfig.pyRy�scGs�ddl}tdkr�iattd<ttd<ttd<ttd<tdtdtd <ttd <ttd<ttd<tj dkr�t t�ntj dkr�tt�nt�td<dtkr�ttd<nt rutj dkrut}ytj�}Wntk rd}nXtjjtd�ru||krutjj|td�}tjj|�td<quntjdkr�ddl}|jt�q�n|r�g}x$|D]}|jtj|��q�W|StSdS(syWith no arguments, return a dictionary of all configuration variables relevant for the current platform.
On Unix, this means every variable defined in Python's installed Makefile; On Windows and Mac OS it's a much smaller set.
With arguments, return a list of values that result from looking up each argument in the configuration variable dictionary. i����Ntprefixtexec_prefixt py_versiontpy_version_shortiitpy_version_nodotRMtplatbasetprojectbaseRR R2tuserbasetsrcdirRD(RR (RSt_CONFIG_VARSR3t_PREFIXt_EXEC_PREFIXt_PY_VERSIONt_PY_VERSION_SHORTRRR6R�R�RORxtgetcwdRRtisabsRR8RHRIt_osx_supporttcustomize_config_varstappendRG(R?RSRMtcwdR�R�tvalsR6((s!/usr/lib64/python2.7/sysconfig.pyR4�sJ
cCst�j|�S(s�Return the value of a single variable using the dictionary returned by 'get_config_vars()'.
Equivalent to get_config_vars().get(name) (R4RG(R6((s!/usr/lib64/python2.7/sysconfig.pyRJscCs�ddl}tjdkr�d}tjj|�}|dkrFtjStjjd|�}tj|t|�|!j�}|dkr�dS|dkr�d StjSd tj kr�tj d Stjdks�t td�r�tjStj�\}}}}} |j�jd d�}| jdd�} | jd d�} |d dkrWd|| fS|d dkr�|ddkr�d}dt |d�d|df}idd6dd6} | d | tj7} q�n�|d! d"kr�d||fS|d d#kr d$|||fS|d% d&krYd&}|jd'�}|j|�}|r�|j�}q�nC|d% d(kr�ddl} | jt�||| �\}}} nd)||| fS(*s�Return 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'. i����NRs bit (t)tamd64s win-amd64titaniumswin-ia64t_PYTHON_HOST_PLATFORMR2tunamet/RQt t_t-itlinuxs%s-%stsunosit5tsolariss%d.%siit32biti���t64bitI�������s.%sitirixtaixs%s-%s.%sitcygwins[\d.]+RDs%s-%s-%s(RSRR6RHR�tfindRItlentlowerR$R�R�R[R\tmaxintRTRYRZR�tget_platform_osxR4(RSR�titjtlooktosnamethosttreleaseR�tmachinetbitnesstrel_reRmR�((s!/usr/lib64/python2.7/sysconfig.pyR�sZ "cCstS(N(R�(((s!/usr/lib64/python2.7/sysconfig.pytget_python_versionkscCsZxStt|j���D]9\}\}}|dkrCd|GHnd||fGHqWdS(Nis%s: s %s = "%s"(t enumeratetsortedR+(ttitleR tindexR/R0((s!/usr/lib64/python2.7/sysconfig.pyt_print_dictos+cCsddtjkrt�dSdt�GHdt�GHdt�GHHtdt��Htdt��dS(s*Display all information sysconfig detains.s--generate-posix-varsNsPlatform: "%s"sPython version: "%s"s!Current installation scheme: "%s"tPathst Variables( RHtargvR�R�R�R=R�R�R4(((s!/usr/lib64/python2.7/sysconfig.pyt_mainvst__main__(RRRRRRR (R R(=t__doc__RHRtos.pathRRR5R�R�tsplitR�R�R�RR8R�R�R�R�R3R�t _USER_BASERR�R�RR�R6R�RtbasenameR$tabspathR!RxR9R)R1R<R=RORuRzt_get_makefile_filenameR�R�R�R�R�R�R�RR�RyR4RJR�R�R�R�t__name__(((s!/usr/lib64/python2.7/sysconfig.pyt<module>s %%!6*$%!! V D G \