config root man

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

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/command/build_ext.pyc

hRc@sdZdZddkZddkZddkZddkZddkTddklZddk	Tddk
lZlZddk
lZddklZdd	klZeid
ZdZdefd
YZdS(sdistutils.command.build_ext

Implements the Distutils 'build_ext' command, for building extension
modules (currently limited to C extensions, should accommodate C++
extensions ASAP).s;$Id: build_ext.py 54942 2007-04-24 15:27:25Z georg.brandl $iN(t*(tCommand(tcustomize_compilertget_python_version(tnewer_group(t	Extension(tlogs3^[a-zA-Z_][a-zA-Z_0-9]*(\.[a-zA-Z_][a-zA-Z_0-9]*)*$cCsddkl}|dS(Ni(tshow_compilers(tdistutils.ccompilerR(R((s7/usr/local/lib/python2.5/distutils/command/build_ext.pyRst	build_extcBseZdZdeiZd@dAdd	d
dfdd
defdBdCdDdddefdEdFdGdHdIdKdLdMgZdd!d$d*gZd0dJd1e	fgZ
d2Zd3Zd4Z
d5Zd6Zd7Zd8Zd9Zd:Zd;Zd<Zd=Zd>Zd?ZRS(Ns8build C/C++ extensions (compile/link to build directory)s (separated by '%s')s
build-lib=tbs(directory for compiled extension modulessbuild-temp=tts1directory for temporary files (build by-products)tinplacetis=ignore build-lib and put compiled extensions into the source s,directory alongside your pure Python moduless
include-dirs=tIs.list of directories to search for header filessdefine=tDsC preprocessor macros to definesundef=tUs!C preprocessor macros to undefines
libraries=tls!external C libraries to link withs
library-dirs=tLs.directories to search for external C librariessrpath=tRs7directories to search for shared C libraries at runtimes
link-objects=tOs2extra explicit link objects to include in the linktdebugtgs'compile/link with debugging informationtforcetfs2forcibly build everything (ignore file timestamps)s	compiler=tcsspecify the compiler typesswig-cpps)make SWIG create C++ files (default is C)s
swig-opts=s!list of SWIG command line optionssswig=spath to the SWIG executables
help-compilerslist available compilerscCsd|_d|_d|_d|_d|_d|_d|_d|_d|_	d|_
d|_d|_d|_
d|_d|_d|_d|_d|_dS(Ni(tNonet
extensionst	build_libt
build_tempRtpackagetinclude_dirstdefinetundeft	librariestlibrary_dirstrpathtlink_objectsRRtcompilertswigtswig_cppt	swig_opts(tself((s7/usr/local/lib/python2.5/distutils/command/build_ext.pytinitialize_optionsas$																	c	Csddkl}|idd"d#d$d%d&|idjo|ii|_n|ii|_|i	}|i	d	d
}|i
djo|ii
pg|_
nt|i
tjot
i|i
ti|_
n|i
i|||jo|i
i|nt|itjo|ig|_n|idjo
g|_n|idjo
g|_n6t|itjot
i|iti|_n|idjo
g|_n6t|itjot
i|iti|_ntidjo|iitiitid|iotii|id
|_ntii|id|_|i
itiitid|iitiitidntidjo&|iitiitidntid djptid djoltiitiitido3|iitiitiddt dq~|iidntiidptiidof|i!doVtiitiitido|ii|i!dq
|iidn|i"o.t
i|i"d}t#d ||_"n|i$ot
i|i$d|_$n|i%djo
g|_%n|i%id!|_%dS('Ni(t	sysconfigtbuildRRR&RRt
plat_specificitnttlibstDebugtReleasetPCtPCBuildtos2tConfigitcygwintatheostbintlibtpythontconfigt.tlinuxtgnutPy_ENABLE_SHAREDtLIBDIRt,cSs
|dfS(t1((tsymbol((s7/usr/local/lib/python2.5/distutils/command/build_ext.pyt<lambda>st (s	build_libs	build_lib(s
build_temps
build_temp(scompilerscompiler(sdebugsdebug(sforcesforce(&t	distutilsR,tset_undefined_optionsRRtdistributiontext_packagetext_modulesRtget_python_incRttypet
StringTypetstringtsplittostpathseptappendR"R#R$tnametpathtjointsystexec_prefixRRtplatformt
executablet
startswithtprefixRtget_config_varR tmapR!R)(R*R,t
py_includetplat_py_includetdefines((s7/usr/local/lib/python2.5/distutils/command/build_ext.pytfinalize_optionsvsv	



"
"&&(%
&%


c
Csddkl}|ipdSn|iioC|id}|ii|ipg|i	i
|in|d|id|i
d|id|i|_t|i|idj	o|ii|in|idj	o1x.|iD]\}}|ii||qWn|idj	o(x%|iD]}|ii|q4Wn|idj	o|ii|in|i	dj	o|ii|i	n|idj	o|ii|in|idj	o|ii|in|idS(Ni(tnew_compilert
build_clibR&tverbosetdry_runR(RRcRRIthas_c_librariestget_finalized_commandR"textendtget_library_namesR#RSRdR&ReRfRRRRtset_include_dirsR tdefine_macroR!tundefine_macrot
set_librariestset_library_dirsR$tset_runtime_library_dirsR%tset_link_objectstbuild_extensions(R*RcRdRTtvaluetmacro((s7/usr/local/lib/python2.5/distutils/command/build_ext.pytruns>
		


c
Csft|tj	o
tdnx?tt|D]+}||}t|toq3n|\}}tid|t|t	j	o t|djo
tdnt|t
jo
ti|p
tdnt|t
j	o
tdnt||d}x>dD]6}|i|}|dj	ot|||qqW|id|_|idotidn|id}|og|_g|_x|D]}	t|	t	jo!dt|	jo
djnp
tdnt|	djo|ii|	dqt|	djo|ii|	qqWn|||<q3WdS(sEnsure that the list of extensions (presumably provided as a
        command option 'extensions') is valid, i.e. it is a list of
        Extension objects.  We also support the old-style list of 2-tuples,
        where the tuples are (ext_name, build_info), which are converted to
        Extension instances here.

        Raise DistutilsSetupError if the structure is invalid anywhere;
        just returns otherwise.
        s:'ext_modules' option must be a list of Extension instancessuold-style (ext_name, build_info) tuple found in ext_modules for extension '%s'-- please convert to Extension instanceisMeach element of 'ext_modules' option must be an Extension instance or 2-tuplesRfirst element of each tuple in 'ext_modules' must be the extension name (a string)sOsecond element of each tuple in 'ext_modules' must be a dictionary (build info)tsourcesRR#R"t
extra_objectstextra_compile_argstextra_link_argsR$tdef_files9'def_file' element of build info dict no longer supportedtmacrosis9'macros' element of build info dict must be 1- or 2-tupleiN(sinclude_dirsslibrary_dirss	librariess
extra_objectssextra_compile_argssextra_link_args(RMtListTypetDistutilsSetupErrortrangetlent
isinstanceRRtwarnt	TupleTypeRNtextension_name_retmatchtDictionaryTypetgetRtsetattrtruntime_library_dirsthas_keyt
define_macrostundef_macrosRS(
R*RR
texttext_namet
build_infotkeytvalR{Rt((s7/usr/local/lib/python2.5/distutils/command/build_ext.pytcheck_extensions_list'sd


	&



		$
cCs>|i|ig}x!|iD]}|i|iq W|S(N(RRRiRv(R*t	filenamesR((s7/usr/local/lib/python2.5/distutils/command/build_ext.pytget_source_files}s
cCsh|i|ig}xK|iD]@}|i|i}|itii|i|i	|q W|S(N(
RRtget_ext_fullnameRTRSRQRURVRtget_ext_filename(R*toutputsRtfullname((s7/usr/local/lib/python2.5/distutils/command/build_ext.pytget_outputss
cCs5|i|ix|iD]}|i|qWdS(N(RRtbuild_extension(R*R((s7/usr/local/lib/python2.5/distutils/command/build_ext.pyRrs
cCs|i}|djpt|ttfjotddd|int|}|i|i}|i	out
i|d}t
i|dd!d}|d}|i
d}|i|}tii||i|}	n"tii|i|i|}	||i}
|ipt|
|	dptid	|idSntid
|i|i||}|ipg}|i}x!|iD]}
|i|
fqW|ii|d|i d|d
|i!d|id|d|i}||_"|i#o|i$|i#n|i%pg}|i&p|ii'|}|ii(||	d|i)|d|i*d|i+d|d|i,|d|id|i d|dS(Ns*in 'ext_modules' option (extension '%s'), s&'sources' must be present and must be sa list of source filenamesR=iitbuild_pytnewers$skipping '%s' extension (up-to-date)sbuilding '%s' extensiont
output_dirR{RRtextra_postargstdependsR"R#Rtexport_symbolsRttarget_lang(-RvRRMR|RR}RTtlistRRRORPRVRhtget_package_dirRQRURRRRRRRtinfotswig_sourcesRxRRRSR&tcompileRRt_built_objectsRwRiRytlanguagetdetect_languagetlink_shared_objectt
get_librariesR#Rtget_export_symbols(R*RRvRtmodpathRtbaseRtpackage_dirtext_filenameRt
extra_argsR{R!tobjectsR((s7/usr/local/lib/python2.5/distutils/command/build_ext.pyRsd	&




			

						c
Csg}g}h}|iotidn|ip d|ijpd|ijo
d}nd}xt|D]l}tii|\}}	|	djo4|i|d||i||d||<qn|i|qnW|p|Sn|ip
|i	}
|
dg}|i
|i|io|idn|ip%x"|iD]}|i|qNWnxE|D]=}||}
tid	||
|i|d
|
|gqpW|S(sWalk the list of source files in 'sources', looking for SWIG
        interface (.i) files.  Run SWIG on all that are found, and
        return a modified 'sources' list with SWIG source files replaced
        by the generated C (or C++) files.
        s/--swig-cpp is deprecated - use --swig-opts=-c++s-c++s.cpps.cs.it_wrapis-pythonsswigging %s to %ss-o(
R(RRR)RQRUtsplitextRSR't	find_swigRiRtspawn(R*Rvt	extensiontnew_sourcesRtswig_targetst
target_exttsourceRRR'tswig_cmdtottarget((s7/usr/local/lib/python2.5/distutils/command/build_ext.pyRsD







cCstidjodSntidjoMxrdD]:}tiid|d}tii|o|Sq/q/WdSn)tid	jodSntd
tidS(
sReturn the name of the SWIG executable.  On Unix, this is
        just "swig" -- it should be in the PATH.  Tries a bit harder on
        Windows.
        tposixR'R/s1.3s1.2s1.1s	c:\swig%ssswig.exeR5s>I don't know how to find (much less run) SWIG on platform '%s'N(s1.3s1.2s1.1(RQRTRURVtisfiletDistutilsPlatformError(R*tverstfn((s7/usr/local/lib/python2.5/distutils/command/build_ext.pyR>scCs+|idjo|Sn|id|SdS(NR=(RR(R*R((s7/usr/local/lib/python2.5/distutils/command/build_ext.pyR`scCsddkl}ti|d}tidjo*|t|dd |t|d<n|d}tidjo)|iotti	i
|d	|Sntti	i
||S(
sConvert the name of an extension (eg. "foo.bar") into the name
        of the file from which it will be loaded (eg. "foo/bar.so", or
        "foo\bar.pyd").
        i(R]R=R5iitSOR/t_d(tdistutils.sysconfigR]RORPRQRTRRtapplyRURV(R*RR]text_pathtso_ext((s7/usr/local/lib/python2.5/distutils/command/build_ext.pyRfs*cCsHdti|idd}||ijo|ii|n|iS(sReturn the list of symbols that a shared extension has to
        export.  This either uses 'ext.export_symbols' or, if it's not
        provided, "init" + module_name.  Only relevant on Windows, where
        the .pyd file (DLL) must export the module "init" function.
        tinitR=i(RORPRTRRS(R*Rt
initfunc_name((s7/usr/local/lib/python2.5/distutils/command/build_ext.pyRwscCsetidjoddkl}t|i|pRd}|io|d}n|tid?tid?d@f}|i|gSqa|iSntid	jo:d}|tid?tid?d@f}|i|gSntid
 djo:d}|tid?tid?d@f}|i|gSn:tid
 d
joddk	l
}d}|tid?tid?d@f}g}xO|idiD]8}|i
do|i|dq|i|qW|i|dg|Sn}tidjo|iSnbddk	l
}|ido:d}|tid?tid?d@f}|i|gSn|iSdS(sReturn the list of libraries to link against when building a
        shared extension.  On most platforms, this is just 'ext.libraries';
        on Windows and OS/2, we add the Python library (eg. python20.dll).
        twin32i(tMSVCCompilers
python%d%dRiiitos2emxiR7spython%d.%dR8(R,tSHLIBSs-litmtdarwinR@N(RWRYtdistutils.msvccompilerRRR&Rt
hexversionR"RGR,R]RPR[RS(R*RRttemplatet	pythonlibR,textraR:((s7/usr/local/lib/python2.5/distutils/command/build_ext.pyRsR

(s
build-lib=R
s(directory for compiled extension modules(sbuild-temp=Rs1directory for temporary files (build by-products)(sdefine=RsC preprocessor macros to define(sundef=Rs!C preprocessor macros to undefine(s
libraries=Rs!external C libraries to link with(srpath=Rs7directories to search for shared C libraries at runtime(s
link-objects=Rs2extra explicit link objects to include in the link(sdebugRs'compile/link with debugging information(sforceRs2forcibly build everything (ignore file timestamps)(s	compiler=Rsspecify the compiler typeN(sswig-cppNs)make SWIG create C++ files (default is C)(s
swig-opts=Ns!list of SWIG command line options(sswig=Nspath to the SWIG executable(t__name__t
__module__tdescriptionRQRRtsep_byRtuser_optionstboolean_optionsRthelp_optionsR+RbRuRRRRrRRRRRRR(((s7/usr/local/lib/python2.5/distutils/command/build_ext.pyR	sh


			r	?	V				b	:	"			(t__doc__t__revision__RWRQROtrettypestdistutils.coreRtdistutils.errorsRRRtdistutils.dep_utilRtdistutils.extensionRRGRRRRR	(((s7/usr/local/lib/python2.5/distutils/command/build_ext.pys<module>s0

		

Man Man