Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/
Upload File :
Current File : //usr/lib/python2.7/sysconfig.pyc


|_c@s(dZddlZddlZddlmZmZi
idd6dd6dd	6d
d6dd
6dd6dd6dd6d6idd6dd6dd	6dd6dd
6dd6dd6dd6d6idd6dd6dd	6dd6dd
6dd6dd6dd6d6idd6dd6dd	6dd6d d
6d d6dd6dd6d!6id"d6d"d6d#d	6d#d6d$d
6d$d6d%d6dd6d&6id"d6d"d6d#d	6d#d6d$d
6d$d6d%d6dd6d'6id(d6d(d6d)d	6d)d6d*d
6d+d6d,d6d-6id.d6d.d6d/d	6d/d6d0d
6d1d6d,d6d26id(d6d(d6d)d	6d)d6d*d
6d+d6d,d6d36id4d6d4d6d5d	6d5d6d6d
6d+d6d,d6d76ZdXZejj	d8Z
ejd9 Ze
d8e
d:Zej
jejZej
jejZdadZd;Zejr2ej
jeejZneejZejd&krd<ed=jkreej
jeeZnejd&krd>ed?jkreej
jeeeZnejd&krd@edAjkreej
jeeeZndBZeZer[x-dYD]"Z dCee d
<dDee d<q2WndEZ!dFZ"dGZ#dHZ$dIZ%ddJZ&dKZ'dLZ(dMZ)ddNZ*dOZ+dPZ,dQZ-e$de.dRZ/e$de.dSZ0dTZ1dUZ2dVZ3dWZ4dS(Zs7Provide access to Python's configuration information.

iN(tpardirtrealpaths#{base}/lib/python{py_version_short}tstdlibs'{platbase}/lib/python{py_version_short}t
platstdlibs1{base}/lib/python{py_version_short}/site-packagestpurelibs5{platbase}/lib/python{py_version_short}/site-packagestplatlibs'{base}/include/python{py_version_short}tincludes+{platbase}/include/python{py_version_short}tplatincludes
{base}/bintscriptss{base}tdatatposix_prefixs7{base}/local/lib/python{py_version_short}/dist-packagess;{platbase}/local/lib/python{py_version_short}/dist-packagess-{base}/local/include/python{py_version_short}s1{platbase}/local/include/python{py_version_short}s{base}/local/bins{base}/localtposix_locals1{base}/lib/python{py_version_short}/dist-packagess5{platbase}/lib/python{py_version_short}/dist-packagest
deb_systems{base}/lib/pythons{base}/include/pythont
posix_homes
{base}/Libs{base}/Lib/site-packagess{base}/Includes{base}/Scriptstnttos2s'{userbase}/lib/python{py_version_short}s5{userbase}/lib/python{py_version_short}/site-packagess+{userbase}/include/python{py_version_short}s{userbase}/bins
{userbase}tos2_homes#{userbase}/Python{py_version_nodot}s1{userbase}/Python{py_version_nodot}/site-packagess+{userbase}/Python{py_version_nodot}/Includes{userbase}/Scriptstnt_usert
posix_users{userbase}/lib/pythons#{userbase}/lib/python/site-packagess{userbase}/includetosx_framework_useriiicCs'yt|SWntk
r"|SXdS(N(RtOSError(tpath((s/usr/lib/python2.7/sysconfig.pyt_safe_realpathus
tpcbuildis\pc\vis\pcbuild\amd64icCs=x6dD].}tjjtjjtd|rtSqWtS(Ns
Setup.distsSetup.localtModules(s
Setup.distsSetup.local(tosRtisfiletjoint
_PROJECT_BASEtTruetFalse(tfn((s/usr/lib/python2.7/sysconfig.pytis_python_builds
$s{projectbase}/Includes{srcdir}cCscy|j|SWnKtk
r^y|jtjSWq_tk
rZ}td|q_XnXdS(Ns{%s}(tformattKeyErrorRtenvirontAttributeError(tst
local_varstvar((s/usr/lib/python2.7/sysconfig.pyt_subst_varss
cCsI|j}x6|jD](\}}||kr7qn|||<qWdS(N(tkeystitems(ttarget_dictt
other_dictttarget_keystkeytvalue((s/usr/lib/python2.7/sysconfig.pyt_extend_dicts
cCsi}|dkri}nt|txat|jD]O\}}tjdkrltjj|}ntjj	t
||||<q<W|S(NtposixR(sposixsnt(tNoneR0tget_config_varst_INSTALL_SCHEMESR*RtnameRt
expandusertnormpathR((tschemetvarstresR.R/((s/usr/lib/python2.7/sysconfig.pyt_expand_varss	#cCstjdkrdStjS(NR1R(RR5(((s/usr/lib/python2.7/sysconfig.pyt_get_default_schemescCstjjdd}d}tjdkr\tjjdpBd}|rO|S||dStjdkrtd}|r|r|S|dd	|d
tjd Sn|r|S|ddS(
NtPYTHONUSERBASEcWstjjtjj|S(N(RRR6R(targs((s/usr/lib/python2.7/sysconfig.pytjoinusersRtAPPDATAt~tPythontdarwintPYTHONFRAMEWORKtLibrarys%d.%dis.local(	RR#tgetR2R5tsystplatformtget_config_vartversion_info(tenv_baseR?tbaset	framework((s/usr/lib/python2.7/sysconfig.pyt_getuserbases	
c	Csddl}|jd}|jd}|jd}|dkrNi}ni}i}t|}|j}	WdQXx|	D]}
|
jds|
jdkrqn|j|
}|r|jdd	\}}
|
j}
|
j	d
d}d|kr|
||<qZyt
|
}
Wn'tk
rL|
j	d
d||<qZX|
||<qqWt|j
}d}x/t|dkrxt|D]}||}|j|p|j|}|dk	r|jd}t}||krt||}n||krt}n|tjkr:tj|}nr||kr|jdrn|d|krnd}qd||krt}qt|d|}nd||<}|r||j}||j ||}d|kr|||<qyt
|}Wn!tk
r&|j||<nX|||<|j||jdr|d|kr|d}||kr|||<qqqq|||<|j|qWqyWx<|jD].\}}
t|
tr|
j||<qqW|j||S(sParse a Makefile-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.
    iNs"([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$tCFLAGStLDFLAGStCPPFLAGSitPY_i(sCFLAGSsLDFLAGSsCPPFLAGS(tretcompileR2topent	readlinest
startswithtstriptmatchtgrouptreplacetintt
ValueErrortlistR)tlenttupletsearchRtstrRRR#tendtstarttremoveR*t
isinstancetupdate(tfilenameR9RVt_variable_rxt_findvar1_rxt_findvar2_rxtdonetnotdonetftlinestlinetmtntvttmpvt	variablestrenamed_variablesR5R/tfoundtitemtaftertk((s/usr/lib/python2.7/sysconfig.pyt_parse_makefiles	
!


			






cCsWtrtjjtdStjjtdjddddtjrLdpOddS(	NtMakefileRs
/usr/locals/usritconfigt_dRP(	t
_PYTHON_BUILDRRRRtget_pathR^RGtpydebug(((s/usr/lib/python2.7/sysconfig.pyt_get_makefile_filenameHscCst}yt||WnLtk
rh}d|}t|drY|d|j}nt|nXt}y&t|}t||WdQXWnLtk
r}d|}t|dr|d|j}nt|nXtr|d|d<ndS(s7Initialize the module as appropriate for POSIX systems.s.invalid Python installation: unable to open %ststrerrors (%s)Nt	BLDSHAREDtLDSHARED(	RR~tIOErrorthasattrRtget_config_h_filenameRXtparse_config_hR(R9tmakefiletetmsgtconfig_hRq((s/usr/lib/python2.7/sysconfig.pyt_init_posixNs&	
	
cCsqtd|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(Rt_PY_VERSION_SHORT_NO_DOTRRtdirnameRRGt
executable(R9((s/usr/lib/python2.7/sysconfig.pyt_init_non_posixks


c	Csddl}|dkr!i}n|jd}|jd}xtr|j}|s^Pn|j|}|r|jdd\}}yt|}Wntk
rnX|||<qB|j|}|rBd||jd<qBqBW|S(sParse 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.
    iNs"#define ([A-Z][A-Za-z0-9_]+) (.*)
s&/[*] #undef ([A-Z][A-Za-z0-9_]+) [*]/
iii(	RVR2RWRtreadlineR\R]R_R`(	tfpR9RVt	define_rxtundef_rxRsRtRuRv((s/usr/lib/python2.7/sysconfig.pyR{s*		

cCswtr6tjdkr-tjjtd}qdt}n.tdjdddtj	r]dp`d}tjj|d	S(
sReturns the path of pyconfig.h.RtPCRs
/usr/locals/usriRRPs
pyconfig.h(
RRR5RRRRR^RGR(tinc_dir((s/usr/lib/python2.7/sysconfig.pyRs	.cCs tj}|jt|S(s-Returns a tuple containing the schemes names.(R4R)tsortRc(tschemes((s/usr/lib/python2.7/sysconfig.pytget_scheme_namess
cCstS(s+Returns a tuple containing the paths names.(t_SCHEME_KEYS(((s/usr/lib/python2.7/sysconfig.pytget_path_namesscCs|rt||St|SdS(sReturns 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;R4(R8R9texpand((s/usr/lib/python2.7/sysconfig.pyt	get_pathss
cCst||||S(s\Returns a path corresponding to the scheme.

    ``scheme`` is the install scheme name.
    (R(R5R8R9R((s/usr/lib/python2.7/sysconfig.pyRscGsHddl}tdkr	iattd<ttd<ttd<ttd<tdtdtd	<ttd
<ttd<ttd<tj	d"krt
tntj	dkrttnttd<dtkrttd<nt
rutj	dkrut}ytj}Wntk
rd}nXtjjtdru||krutjj|td}tjj|td<quntjdkr	tjd}t|jdd}|dkrxGd#D]D}t|}|jdd|}|jdd|}|t|<qWqdtjkrrtjd}	xHd$D]=}t|}|jdd|}|d|	}|t|<q.Wntjdd}
|jd|
}|dk	r|jd }tjj|sx:d%D]/}t|}|jd!d|}|t|<qWqqq	n|r@g}
x$|D]}|
jtj|qW|
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.
    iNtprefixtexec_prefixt
py_versiontpy_version_shortiitpy_version_nodotRLtplatbasetprojectbaseRRR1tuserbasetsrcdirRCt.iRSt
BASECFLAGSRRt	PY_CFLAGSRs
-arch\s+\w+\st s-isysroot [^ 	]*t	ARCHFLAGSRPs-isysroot\s+(\S+)is-isysroot\s+\S+(\s|$)(sntsos2(sLDFLAGSs
BASECFLAGSsCFLAGSs	PY_CFLAGSs	BLDSHARED(sLDFLAGSs
BASECFLAGSsCFLAGSs	PY_CFLAGSs	BLDSHARED(sLDFLAGSs
BASECFLAGSsCFLAGSs	PY_CFLAGSs	BLDSHARED( RVt_CONFIG_VARSR2t_PREFIXt_EXEC_PREFIXt_PY_VERSIONt_PY_VERSION_SHORTRRR5RRRNRtgetcwdRRtisabsRR7RGRHtunameR_tsplittsubR#RFRdR]texiststappend(R>RVRLtcwdRtkernel_versiont
major_versionR.tflagstarchRRRttsdktvalsR5((s/usr/lib/python2.7/sysconfig.pyR3s|





















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/lib/python2.7/sysconfig.pyRI;scCsddl}tjdkrd}tjj|}|dkrFtjStjjd|}tj|t||!j}|dkrdS|dkrd	StjStjd
kst	tdrtjStj
\}}}}}	|jjdd
}|	jdd}	|	jdd}	|d dkr=d||	fS|d dkr|ddkrd}dt|dd|df}idd6dd6}
|	d|
tj
7}	qn|d  d!krd||fS|d d"krd#|||fS|d$ d%kr?d%}|jd&}|j|}|r|j}qn@|d$ d'krt}
|
jd(}|}ytd)}Wntk
rncXzT|jd*d+|j}|dk	rd,j|jd-jd,d }nWd|jX|s|}n|r|}d.}|d,d/kr%d0tjd1d
jkr%d2}	tjd1}|jd3|}ttt|}t|d-kr|d}	qy|dAkrd2}	qy|dBkrd7}	qy|dCkrd8}	qy|dDkrd:}	qy|dEkrd;}	qyt d<|fq||	d4krLtj
dFkryd6}	qyq||	dGkr|tj
dHkrpd9}	qyd5}	q|qnd@|||	fS(IsReturn 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'.
    iNRs bit (t)tamd64s	win-amd64titaniumswin-ia64R1Rt/RPRt_t-itlinuxs%s-%stsunosit5tsolariss%d.%siit32bitit64bitIs.%sitirixtaixs%s-%s.%sitcygwins[\d.]+RCtMACOSX_DEPLOYMENT_TARGETs0/System/Library/CoreServices/SystemVersion.plists'<key>ProductUserVisibleVersion</key>\s*s<string>(.*?)</string>Ritmacosxs10.4.s-archRRtfats
-arch\s+(\S+)ti386tppctx86_64tinteltfat3tppc64tfat64t	universals%Don't know machine value for archs=%ri tPowerPCtPower_Macintoshs%s-%s-%s(si386sppc(si386sx86_64(si386sppcsx86_64(sppc64sx86_64(si386sppcsppc64sx86_64I(sPowerPCsPower_MacintoshI(!RVRR5RGtversiontfindRHRbtlowerRRR^R_tmaxintRWR\R]R3RFRXRRdtreadR2RRtcloseR[tfindallRctsortedtsetR`(RVRtitjtlooktosnamethosttreleaseRtmachinetbitnesstrel_reRttcfgvarstmacvert
macreleaseRqtcflagstarchs((s/usr/lib/python2.7/sysconfig.pytget_platformCs "	
,	!
						cCstS(N(R(((s/usr/lib/python2.7/sysconfig.pytget_python_versions(sstdlibs
platstdlibspurelibsplatlibsincludesscriptssdata(sposix_prefixsposix_locals
deb_systems
posix_home(5t__doc__RGRtos.pathRRR4RRRRRRRR7RRRRR2Rt
_USER_BASERRRRRR5RRR RR8R(R0R;R<RNR~RRRRRRRRRRR3RIRR(((s/usr/lib/python2.7/sysconfig.pyt<module>s
		%%!%!		
							w							|