config root man

Current Path : /usr/local/lib/python2.5/distutils/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/distutils/sysconfig.pyc

hRc	@sdZdZddkZddkZddkZddkZddklZeii	ei
Zeii	eiZ
eiieiieiZeiieddZeiieZ[dZddd	Zdddd
ZdZdZd
ZddZeidZeidZ eidZ!ddZ"dZ#da$dZ%dZ&dZ'dZ(dZ)dZ*dS(sProvide access to Python's configuration information.  The specific
configuration variables available depend heavily on the platform and
configuration.  The values may be retrieved using
get_config_var(name), and the list of variables is available via
get_config_vars().keys().  Additional convenience functions are also
available.

Written by:   Fred L. Drake, Jr.
Email:        <fdrake@acm.org>
s>$Id: sysconfig.py 52234 2006-10-08 17:50:26Z ronald.oussoren $iN(tDistutilsPlatformErrortModulestSetupcCstid S(sReturn a string containing the major and minor Python version,
    leaving off the patchlevel.  Sample return values could be '1.5'
    or '2.2'.
    i(tsystversion(((s//usr/local/lib/python2.5/distutils/sysconfig.pytget_python_version%sicCs|d
jo|otpt}ntidjototiitiit	i
}|o
|}nNtii|d}tii|p%tiitii|d}n|Sntii|ddt
Sntidjotii|dSntidjo8|otii|ddSqtii|dSn;tidjotii|dSntd	tid
S(sReturn the directory containing installed Python header files.

    If 'plat_specific' is false (the default), this is the path to the
    non-platform-specific header files, i.e. Python.h and so on;
    otherwise, this is the path to platform-specific header files
    (namely pyconfig.h).

    If 'prefix' is supplied, use it instead of sys.prefix or
    sys.exec_prefix -- i.e., ignore 'plat_specific'.
    tposixtIncludetincludetpythontnttmactMactos2sFI don't know where Python installs its C header files on platform '%s'N(tNonetEXEC_PREFIXtPREFIXtostnametpython_buildtpathtdirnametabspathRt
executabletjointexistsRR(t
plat_specifictprefixtbasetinc_dir((s//usr/local/lib/python2.5/distutils/sysconfig.pytget_python_inc-s.
!
%!cCs|djo|otpt}ntidjoEtii|ddt}|o|Sqtii|dSnFtidjoP|otii|dSqtdjo|SqtiitddSntidjoz|o;|otii|dd	Sq`tii|ddSq|otii|dSqtii|ddSn\tid
jo8|otiitdSqtiitddSntdtidS(
sIReturn the directory containing the Python library (standard or
    site additions).

    If 'plat_specific' is true, return the directory containing
    platform-specific modules, i.e. any module from a non-pure-Python
    module distribution; otherwise, return the platform-shared library
    directory.  If 'standard_lib' is true, return the directory
    containing standard Python library modules; otherwise, return the
    directory for site-specific modules.

    If 'prefix' is supplied, use it instead of sys.prefix or
    sys.exec_prefix -- i.e., ignore 'plat_specific'.
    RtlibR	s
site-packagesR
tLibs2.2Rslib-dynloadR
s?I don't know where Python installs its library on platform '%s'N(	RRRRRRRRR(Rtstandard_libRt	libpython((s//usr/local/lib/python2.5/distutils/sysconfig.pytget_python_libTs:
c

Cs|idjotddddddd\}}}}}}}tiidotid}ntiidotid}ntiidotid}ntiid	otid	}n|d
}tiido|dtid}ntiido.|dtid}|dtid}ntiid
oC|dtid
}|dtid
}|dtid
}n|d|}	|id|d|	d|	d|d|d|d|||_ndS(sDo any platform-specific customization of a CCompiler instance.

    Mainly needed on Unix, so we can plug in the information that
    varies across Unices and is stored in Python's Makefile.
    tunixtCCtCXXtOPTtCFLAGStCCSHAREDtLDSHAREDtSOtCPPs -EtLDFLAGSt tCPPFLAGStpreprocessortcompilertcompiler_sotcompiler_cxxt	linker_sot
linker_exeN(t
compiler_typetget_config_varsRtenvironthas_keytset_executablestshared_lib_extension(
R1tcctcxxtopttcflagstccsharedtldsharedtso_exttcpptcc_cmd((s//usr/local/lib/python2.5/distutils/sysconfig.pytcustomize_compilers<$
	cCsSto
t}ntdd}tdjo
d}nd}tii||S(s2Return full pathname of installed pyconfig.h file.Ris2.2sconfig.hs
pyconfig.h(Rt
argv0_pathRRRRR(Rtconfig_h((s//usr/local/lib/python2.5/distutils/sysconfig.pytget_config_h_filenames

cCsXto&tiitiitidSntdddd}tii|ddS(sAReturn full pathname of installed Makefile from the Python build.tMakefileRiR!tconfig(RRRRRRRR#(tlib_dir((s//usr/local/lib/python2.5/distutils/sysconfig.pytget_makefile_filenames&cCs|djo
h}ntid}tid}x|i}|pPn|i|}|oL|idd\}}yt|}Wntj
onX|||<q8|i|}|od||id<q8q8|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.
    s"#define ([A-Z][A-Za-z0-9_]+) (.*)
s&/[*] #undef ([A-Z][A-Za-z0-9_]+) [*]/
iiiN(Rtretcompiletreadlinetmatchtgrouptintt
ValueError(tfptgt	define_rxtundef_rxtlinetmtntv((s//usr/local/lib/python2.5/distutils/sysconfig.pytparse_config_hs(

s"([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_]*)}c
Csddkl}||dddddd}|d
jo
h}nh}h}x|i}|d
joPnti|}|ov|idd\}}	ti|	}	d|	jo|	||<qyt	|	}	Wnt
j
onX|	||<qTqTx{|osxl|iD]^}
||
}ti
|p
ti
|}|o!|id}t}|i|ot||}
nM|i|o
t}n3tii|oti|}
nd	||<}
|o||i}||i |
|}d|jo|||
<qkyt	|}Wn&t
j
oti|||
<nX|||
<||
=qvq||
=qWqW|i|i||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.
    i(tTextFiletstrip_commentsitskip_blankst
join_linesit$tN(tdistutils.text_fileR]RROt_variable_rxRPRQtstringtstripRRRStkeyst_findvar1_rxtsearcht_findvar2_rxtTrueR9tstrtFalseRR8tendtstarttclosetupdate(tfnRUR]RTtdonetnotdoneRXRYRZR[Rtvaluetfoundtitemtafter((s//usr/local/lib/python2.5/distutils/sysconfig.pytparse_makefilesh










cCsrxkti|p
ti|}|oA|i\}}|d|!|i|id||}qPq|S(sExpand Makefile-style variables -- "${foo}" or "$(foo)" -- in
    'string' according to 'vars' (a dictionary mapping variable names to
    values).  Variables not present in 'vars' are silently expanded to the
    empty string.  The variable values in 'vars' should not contain further
    variable expansions; if 'vars' is the output of 'parse_makefile()',
    you're fine.  Returns a variable-expanded version of 's'.
    ii(RhRiRjtspantgetRQ(tstvarsRYtbegRn((s//usr/local/lib/python2.5/distutils/sysconfig.pytexpand_makefile_vars9s/cCsh}yt}t||WnPtj
oD}d|}t|do|d|i}nt|nXy t}tt||WnPtj
oD}d|}t|do|d|i}nt|nXt	i
djo|ido|d}ti
dd}|djo|}tid|qtt|idtt|idjo d||f}t|qnto|d	|d
<ntdjot	i
djo^td
d}tii|dd}tii|dd}d||d|f|d
<qt	i
djontd
d}ti|d
d}	tii|	}
tii|d|
}d|ttf|d
<qn|adS(s7Initialize the module as appropriate for POSIX systems.s.invalid Python installation: unable to open %ststrerrors (%s)tdarwintMACOSX_DEPLOYMENT_TARGETRbt.sF$MACOSX_DEPLOYMENT_TARGET mismatch: now "%s" but "%s" during configuret	BLDSHAREDR*s2.1taix4R!iRJt	ld_so_aixs
python.exps%s %s -bI:%sR%tbeosis%s -L%s/lib -lpython%sN(RLRytIOErrorthasattrRRRHR\tfileRtplatformR9RtgetenvtputenvtmapRRtsplitRRR#RRRetbasenameRt_config_vars(RUtfilenametmsgtmy_msgt
cfg_targett
cur_targett
python_libRt
python_exptlinkerscript_pathtlinkerscript_nametlinkerscript((s//usr/local/lib/python2.5/distutils/sysconfig.pyt_init_posixTsX	
	
 

1
	cCsih}tdddd|d<tdddd|d<tdd|d<d|d	<d
|d<|adS(
s+Initialize the module as appropriate for NTRiR!itLIBDESTt
BINLIBDESTt	INCLUDEPYs.pydR+s.exetEXEN(R#RR(RU((s//usr/local/lib/python2.5/distutils/sysconfig.pyt_init_nts

cCsh}tdddd|d<tdddd|d<tdd|d<dd	k}t|d
pd|d<nd
|i|d<tiitd|d<tiitdd|d<d|d<|a	d	S(s:Initialize the module as appropriate for Macintosh systemsRiR!iRRRiNtruntimemodels.ppc.slbR+s.%s.slbR tinstall_libRtinstall_platlibt:tsrcdir(
R#RtMacOSRRRRRRR(RUR((s//usr/local/lib/python2.5/distutils/sysconfig.pyt	_init_macs
cCsih}tdddd|d<tdddd|d<tdd|d<d|d	<d
|d<|adS(
s-Initialize the module as appropriate for OS/2RiR!iRRRs.pydR+s.exeRN(R#RR(RU((s//usr/local/lib/python2.5/distutils/sysconfig.pyt	_init_os2s

cGs7tdjotidti}|o|nhattd<ttd<ti	djoti
d}t|idd}|djoSxPdD]D}t|}t
idd|}t
idd|}|t|<qWqqn|o5g}x$|D]}|iti|qW|SntSdS(sWith no arguments, return a dictionary of all configuration
    variables relevant for the current platform.  Generally this includes
    everything needed to build extensions and install both pure modules and
    extensions.  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.
    t_init_Rtexec_prefixRiRiiR-t
BASECFLAGSR(t	PY_CFLAGSRs
-arch\s+\w+\sR.s-isysroot [^ 	]*N(sLDFLAGSRsCFLAGSRs	BLDSHARED(RRtglobalsR{RRRRRRtunameRRRRMtsubtappend(targstfunctkernel_versiont
major_versiontkeytflagstvalsR((s//usr/local/lib/python2.5/distutils/sysconfig.pyR7s2




cCsti|S(sReturn the value of a single variable using the dictionary
    returned by 'get_config_vars()'.  Equivalent to
    get_config_vars().get(name)
    (R7R{(R((s//usr/local/lib/python2.5/distutils/sysconfig.pytget_config_vars(+t__doc__t__revision__RRMReRtdistutils.errorsRRtnormpathRRRRRRRRFRtlandmarktisfileRRRRR#RERHRLR\RNRdRhRjRyRRRRRRR7R(((s//usr/local/lib/python2.5/distutils/sysconfig.pys<module>
s>!	':	+		G		O				3

Man Man