403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python2.6/distutils/command/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/distutils/command/build_ext.pyo
ɎJc@s1dZdZddkZddkZddkZddkZddkTddklZl	Z	ddk
lZddkTddk
lZlZddklZdd	klZdd
klZddklZeidjo#dd
klZeeZneidZdZdefdYZ dS(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 69317 2009-02-05 22:55:00Z tarek.ziade $iN(t*(t	USER_BASEt	USER_SITE(tCommand(tcustomize_compilertget_python_version(tnewer_group(t	Extension(tget_platform(tlogtnt(tget_build_versions3^[a-zA-Z_][a-zA-Z_0-9]*(\.[a-zA-Z_][a-zA-Z_0-9]*)*$cCsddkl}|dS(Ni(tshow_compilers(tdistutils.ccompilerR(R((s1/usr/lib/python2.6/distutils/command/build_ext.pyR st	build_extcBs6eZdZdeiZdEdFdd	d
efddd
dfdddefdGdHdIdddefdJdKdLdMdNdPdQdRdSgZdd$d'd-d3gZ	d5dOd6e
fgZd7Zd8Z
d9Zd:Zd;Zd<Zd=Zd>Zd?Zd@ZdAZdBZdCZdDZRS(Ts8build 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)s
plat-name=tps>platform name to cross-compile for, if supported (default: %s)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 executabletusers#add user include, library and rpaths
help-compilerslist available compilerscCsd|_d|_d|_d|_d|_d|_d|_d|_d|_	d|_
d|_d|_d|_
d|_d|_d|_d|_d|_d|_d|_dS(Ni(tNonet
extensionst	build_libt	plat_namet
build_tempRtpackagetinclude_dirstdefinetundeft	librariestlibrary_dirstrpathtlink_objectsRRtcompilertswigtswig_cppt	swig_optsR (tself((s1/usr/lib/python2.6/distutils/command/build_ext.pytinitialize_optionsls(																			c	
CsIddkl}|idd/d0d1d2d3d4|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|_ntidjo|iitiitid
|iotii|id|_ntii|id|_|i
itiitidtdjos|idjo
d}n|id}tiitid}|otii||}n|ii|qtdjo,|iitiitidddqtdjo)|iitiitiddq|iitiitiddntidjo&|iitiitidntid djptid d joltii tiitid!o3|iitiiti!d"d#t"d$qs|iid%n|i#d&tii d'p&tii d(ptii d)of|i#d&oVtii tiitid!o|ii|i#d*q|iid%n|i$o.t
i|i$d+}t%d,||_$n|i&ot
i|i&d+|_&n|i'djo
g|_'n|i'id-|_'|i(otiit)d.}tiit)d"}tii*|o|i
i|ntii*|o$|ii||ii|qEndS(5Ni(t	sysconfigtbuildR#R%R.RRR$t
plat_specificiR
tlibstDebugtReleasetPCi	twin32titPCbuildisVS8.0twin32releaseisVS7.1tVC6tos2tConfigitcygwintatheostbintlibtpythontconfigt.tPy_ENABLE_SHAREDtlinuxtgnutsunostLIBDIRt,cSs
|dfS(t1((tsymbol((s1/usr/lib/python2.6/distutils/command/build_ext.pyt<lambda>st tinclude(s	build_libs	build_lib(s
build_temps
build_temp(scompilerscompiler(sdebugsdebug(sforcesforce(s	plat_names	plat_name(+t	distutilsR4tset_undefined_optionsR&R!tdistributiontext_packagetext_modulesR"tget_python_incR'ttypet
StringTypetstringtsplittostpathseptappendR*R+R,tnametpathtjointsystexec_prefixRR%tMSVC_VERSIONR$tplatformt
executablet
startswithtprefixRtget_config_varR(tmapR)R1R Rtisdir(	R2R4t
py_includetplat_py_includetsuffixtnew_libtdefinestuser_includetuser_lib((s1/usr/lib/python2.6/distutils/command/build_ext.pytfinalize_optionss	



"
"




&(%

&%



c
Cs3ddkl}|ipdS|iioC|id}|ii|ipg|i	i
|in|d|id|i
d|id|i|_t|itidjo*|itjo|ii|in|idj	o|ii|in|idj	o1x.|iD]\}}|ii||q*Wn|idj	o(x%|iD]}|ii|qkWn|idj	o|ii|in|i	dj	o|ii|i	n|idj	o|ii |in|i!dj	o|ii"|i!n|i#dS(	Ni(tnew_compilert
build_clibR.tverbosetdry_runRR
($R
RvR"RVthas_c_librariestget_finalized_commandR*textendtget_library_namesR+R`RwR.RxRyRRR^RaR$Rt
initializeR'R!tset_include_dirsR(tdefine_macroR)tundefine_macrot
set_librariestset_library_dirsR,tset_runtime_library_dirsR-tset_link_objectstbuild_extensions(R2RvRwRatvaluetmacro((s1/usr/lib/python2.6/distutils/command/build_ext.pytrunsB
		
#

c
Csct|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|_d|jotidn|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)tsourcesR'R+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(RZtListTypetDistutilsSetupErrortrangetlent
isinstanceRR	twarnt	TupleTypeR[textension_name_retmatchtDictionaryTypetgetR!tsetattrtruntime_library_dirst
define_macrostundef_macrosR`(
R2R"Rtexttext_namet
build_infotkeytvalRR((s1/usr/lib/python2.6/distutils/command/build_ext.pytcheck_extensions_list^sd


	&




		$
cCs>|i|ig}x!|iD]}|i|iq W|S(N(RR"R|R(R2t	filenamesR((s1/usr/lib/python2.6/distutils/command/build_ext.pytget_source_filess
cCsh|i|ig}xK|iD]@}|i|i}|itii|i|i	|q W|S(N(
RR"tget_ext_fullnameRaR`R^RbRcR#tget_ext_filename(R2toutputsRtfullname((s1/usr/lib/python2.6/distutils/command/build_ext.pytget_outputss
cCs5|i|ix|iD]}|i|qWdS(N(RR"tbuild_extension(R2R((s1/usr/lib/python2.6/distutils/command/build_ext.pyRs
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	|idStid
|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 filenamesRHiitbuild_pytnewers$skipping '%s' extension (up-to-date)sbuilding '%s' extensiont
output_dirRR'Rtextra_postargstdependsR*R+Rtexport_symbolsR%ttarget_lang(-RR!RZRRRRatlistRRR\R]RcR{tget_package_dirR^RbRR#RRRR	Rtinfotswig_sourcesRRRR`R.tcompileR%R't_built_objectsRR|Rtlanguagetdetect_languagetlink_shared_objectt
get_librariesR+Rtget_export_symbols(R2RRRtmodpathR&tbaseRtpackage_dirtext_filenameRt
extra_argsRR)tobjectsR((s1/usr/lib/python2.6/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|S|ip
|i	}
|
dg}|i
|i|io|idn|ip%x"|iD]}|i|qKWnxE|D]=}||}
tid	||
|i|d
|
|gqmW|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(
R0R	RR1R^RbtsplitextR`R/t	find_swigR|Rtspawn(R2Rt	extensiontnew_sourcesRtswig_targetst
target_exttsourceRRR/tswig_cmdtottarget((s1/usr/lib/python2.6/distutils/command/build_ext.pyR;sD







cCstidjodStidjoJxldD]7}tiid|d}tii|o|Sq,WdSn&tid	jodStd
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.exeR@s>I don't know how to find (much less run) SWIG on platform '%s'N(s1.3s1.2s1.1(R^RaRbRctisfiletDistutilsPlatformError(R2tverstfn((s1/usr/lib/python2.6/distutils/command/build_ext.pyRus	cCs(|idjo|S|id|SdS(NRH(R&R!(R2R((s1/usr/lib/python2.6/distutils/command/build_ext.pyRscCsddkl}ti|d}tidjo*|t|dd |t|d<n|d}tidjo&|iotti	i
|d	|Sti	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(RkRHR@iitSOR
t_d(tdistutils.sysconfigRkR\R]R^RaRRtapplyRbRc(R2RRktext_pathtso_ext((s1/usr/lib/python2.6/distutils/command/build_ext.pyRs*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.
        tinitRHi(R\R]RaRR`(R2Rt
initfunc_name((s1/usr/lib/python2.6/distutils/command/build_ext.pyRscCsStidjo}ddkl}t|i|pOd}|io|d}n|tid?tid?d@f}|i|gS|iSntid	jo7d}|tid?tid?d@f}|i|gStid
 djo7d}|tid?tid?d@f}|i|gStid
 d
joddk	l
}d}|tid?tid?d@f}g}xO|idiD]8}|i
do|i|dq|i|qW|i|dg|Stidjo|iSddk	l
}|ido7d}|tid?tid?d@f}|i|gS|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).
        R;i(tMSVCCompilers
python%d%dRiiitos2emxiRBspython%d.%dRC(R4tSHLIBSs-litmtdarwinRIN(RdRgtdistutils.msvccompilerRRR.Rt
hexversionR*RTR4RkR]RiR`(R2RRttemplatet	pythonlibR4textraRE((s1/usr/lib/python2.6/distutils/command/build_ext.pyRsR

(s
build-lib=Rs(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(suserNs#add user include, library and rpath(t__name__t
__module__tdescriptionR^R_tsep_byRR!tuser_optionstboolean_optionsRthelp_optionsR3RuRRRRRRRRRRRR(((s1/usr/lib/python2.6/distutils/command/build_ext.pyR%sr



				D	V				b	:	"			(!t__doc__t__revision__RdR^R\trettypestsiteRRtdistutils.coreRtdistutils.errorsRRRtdistutils.dep_utilRtdistutils.extensionRtdistutils.utilRRTR	RaRRtintRfRRRR(((s1/usr/lib/python2.6/distutils/command/build_ext.pyt<module>s$0

		

Youez - 2016 - github.com/yon3zu
LinuXploit