asda?‰PNG  IHDR ? f ??C1 sRGB ??é gAMA ±? üa pHYs ? ??o¨d GIDATx^íüL”÷e÷Y?a?("Bh?_ò???¢§?q5k?*:t0A-o??¥]VkJ¢M??f?±8\k2íll£1]q?ù???T usr/lib64/python2.7/distutils/command/build_ext.pyc000064400000045620151027757570016232 0ustar00 {fc@s/dZdZddlZddlZddlZddlZddlTddlmZm Z ddl m Z ddl Tddl mZmZddlmZdd lmZdd lmZdd lmZejd krdd lmZeeZnejdZdZde fdYZ 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$iN(t*(t USER_BASEt USER_SITE(tCommand(tcustomize_compilertget_python_version(t newer_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]*)*$cCsddlm}|dS(Ni(tshow_compilers(tdistutils.ccompilerR (R ((s3/usr/lib64/python2.7/distutils/command/build_ext.pyR st build_extcBs?eZdZdejZdFdGdd d efd d d dfdddefdHdIdJdddefdKdLdMdNdOdQdRdSdTgZd d$d'd-d3gZ d5dPd6e fgZ d7Z d8Z d9Zd:Zd;Zd<Zd=Zd>Zd?Zd@ZdAZdBZdCZdDZdEZRS(Us8build C/C++ extensions (compile/link to build directory)s (separated by '%s')s build-lib=tbs(directory for compiled extension moduless build-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((s3/usr/lib64/python2.7/distutils/command/build_ext.pytinitialize_optionsls(                   c Csddlm}|jdd.d/d0d1d2d3|jdkrP|jj|_n|jj|_|j }|j d d }|j dkr|jj pg|_ nt |j t r|j j tj|_ n|j j|||kr|j j|n|jd |jd |jdkr5g|_n|jdkrPg|_n3t|jtkrtj |jtj|_n|jdkrg|_n3t|jtkrtj |jtj|_ntjdkr|jjtjjtjd|jr)tjj|jd|_ntjj|jd|_|j jtjjtjdtdkr|j dkrd}n |j d}xd4d5fD]L}tjjtj|}|rtjj||}n|jj|qWqtdkr+|jjtjjtjddqtdkr_|jjtjjtjddq|jjtjjtjddntjdkr|jjtjjtjdntj!d d!kstj!d d"krJtj"j#tjjtjd#r7|jjtjjtj$d$d%t%d&qJ|jjd'n|j&d(r|j's~|jj|j&d)q|jjd'n|j(r|j(j d*}t)d+||_(n|j*r|j*j d*|_*n|j+dkrg|_+n|j+j d,|_+|j,rtjjt-d-}tjjt-d$} tjj.|rm|j j|ntjj.| r|jj| |jj| qndS(6Ni(t sysconfigtbuildR#R%R.RRR$t plat_specificiR*R-R tlibstDebugtReleasetPCi twin32titPCbuildsVS9.0isVS8.0isVS7.1tVC6tos2tConfigitcygwintatheostbintlibtpythontconfigt.tPy_ENABLE_SHAREDtLIBDIRt,cSs |dfS(Nt1((tsymbol((s3/usr/lib64/python2.7/distutils/command/build_ext.pytR<t tinclude(R#R#(R%R%(R.R.(RR(RR(R$R$(R=(R:sVS9.0(/t distutilsR4tset_undefined_optionsR&R!t distributiont ext_packaget ext_modulesR"tget_python_incR't isinstancetstrtsplittostpathseptappendtensure_string_listR*R+ttypet StringTypetstringR,tnametpathtjointsyst exec_prefixRR%t MSVC_VERSIONR$tplatformt executablet startswithtprefixRtget_config_vart python_buildR(tmapR)R1R Rtisdir( R2R4t py_includetplat_py_includetsuffixtdtnew_libtdefinest user_includetuser_lib((s3/usr/lib64/python2.7/distutils/command/build_ext.pytfinalize_optionss        " "     %&$       c Csddlm}|jsdS|jjrm|jd}|jj|jpSg|j j |j n|d|j d|j d|jd|j|_ t|j tjdkr|jtkr|j j|jn|jdk r|j j|jn|jdk rEx-|jD]\}}|j j||qWn|jdk r{x$|jD]}|j j|q^Wn|jdk r|j j|jn|j dk r|j j|j n|jdk r|j j |jn|j!dk r|j j"|j!n|j#dS( Ni(t new_compilert build_clibR.tverbosetdry_runRR ($R RwR"RRthas_c_librariestget_finalized_commandR*textendtget_library_namesR+R[RxR.RyRzRRRYR`R$Rt initializeR'R!tset_include_dirsR(t define_macroR)tundefine_macrot set_librariestset_library_dirsR,tset_runtime_library_dirsR-tset_link_objectstbuild_extensions(R2RwRxR`tvaluetmacro((s3/usr/lib64/python2.7/distutils/command/build_ext.pytruns>    !c Cs!t|tstdnxt|D]\}}t|trIq(nt|t skt|dkrwtdn|\}}tjd|t|t ot j |stdnt|t stdnt||d}x<dD]4}|j |}|dk rt|||qqW|j d|_d|krYtjdn|j d}|rg|_g|_x|D]} t| tot| dkstdnt| dkr|jj| dqt| dkr|jj| qqWn||||j|jg}x!|jD]}|j|jq W|S(N(RR"R}R(R2t filenamesR((s3/usr/lib64/python2.7/distutils/command/build_ext.pytget_source_filess cCsG|j|jg}x*|jD]}|j|j|jq W|S(N(RR"R[tget_ext_fullpathR`(R2toutputsR((s3/usr/lib64/python2.7/distutils/command/build_ext.pyt get_outputss cCs5|j|jx|jD]}|j|qWdS(N(RR"tbuild_extension(R2R((s3/usr/lib64/python2.7/distutils/command/build_ext.pyRsc Cs|j}|dks-t|ttfkrHtddd|jnt|}|j|j}||j }|j pt ||dst j d|jdSt jd|j|j||}|jpg}|j}x!|jD]}|j|fqW|jj|d|jd|d |jd |j d |d |j }||_|jro|j|jn|jp{g}|jp|jj|} |jj||d |j|d|j d|j!d |d|j"|d |j d|jd| dS(Ns*in 'ext_modules' option (extension '%s'), s&'sources' must be present and must be sa list of source filenamestnewers$skipping '%s' extension (up-to-date)sbuilding '%s' extensiont output_dirRR'Rtextra_postargstdependsR*R+Rtexport_symbolsR%t target_lang(#RR!R]tListTypet TupleTypeRR`RRRRRR Rtinfot swig_sourcesRRRR[R.tcompileR%R't_built_objectsRR}Rtlanguagetdetect_languagetlink_shared_objectt get_librariesR+Rtget_export_symbols( R2RRtext_pathRt extra_argsRR)tobjectsR((s3/usr/lib64/python2.7/distutils/command/build_ext.pyRsN $              cCsg}g}i}|jr+tjdn|jsRd|jksRd|jkr[d}nd}xr|D]j}tjj|\}} | dkr|j|d||j||d||          cCstjdkrdStjdkrixgd D]5}tjjd|d}tjj|r)|Sq)WdSn#tjd kr|dStd tjd S( 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(RYR`RaRbtisfiletDistutilsPlatformError(R2tverstfn((s3/usr/lib64/python2.7/distutils/command/build_ext.pyRPs c Cstjdtjd}|j|}|j|}|jd}|j|}tjj|d}|j stjj |d |g}tjj |j |Sdj |dd!}|j d}tjj |j|}tjj ||S(sReturns the path of the filename for a given extension. The file is located in `build_lib` or directly in the package (inplace option). t/s..RGiitbuild_py(R_t maketransRYtsept translatetget_ext_fullnameRXtget_ext_filenameRaRRbR#R|tabspathtget_package_dir( R2Rtall_dotstfullnametmodpathtfilenameR&Rt package_dir((s3/usr/lib64/python2.7/distutils/command/build_ext.pyRqs cCs&|jdkr|S|jd|SdS(sSReturns the fullname of a given extension name. Adds the `package.` prefixRGN(R&R!(R2R((s3/usr/lib64/python2.7/distutils/command/build_ext.pyRscCsddlm}tj|d}tjdkrZ|t|dd |t|ds$0    usr/lib/python2.7/site-packages/setuptools/command/build_ext.pyc000064400000030433151030661420020747 0ustar00 fc @s%ddlZddlZddlZddlZddlmZddlmZddl m Z ddl m Z m Z ddlmZddlmZddlmZdd lmZyddlmZed Wnek reZnXe d dd l mZd ZeZeZdZ ej!dkr;e"ZnIej#dkry#ddl$Z$e%e$dZZWqek rqXndZ&dZ'defdYZesej#dkrddddddddddd Z)n-dZ ddddddddddd Z)dZ*dS(iN(t build_ext(t copy_file(t new_compiler(tcustomize_compilertget_config_var(tDistutilsError(tlog(tLibrary(tsixsCython.Compiler.MaintLDSHARED(t _config_varscCsstjdkretj}z,dtd>RcCsNxGdtjDD]/\}}}d|kr6|S|dkr|SqWdS(s;Return the file extension for an abi3-compliant Extension()css(|]}|dtjkr|VqdS(iN(timpt C_EXTENSION(t.0R((s@/usr/lib/python2.7/site-packages/setuptools/command/build_ext.pys Css.abi3s.pydN(Rt get_suffixes(tsuffixt_((s@/usr/lib/python2.7/site-packages/setuptools/command/build_ext.pytget_abi3_suffixAs &  RcBseZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z ed ZRS( cCs@|jd}|_tj|||_|r<|jndS(s;Build extensions in build directory, then copy if --inplaceiN(tinplacet _build_exttruntcopy_extensions_to_source(tselft old_inplace((s@/usr/lib/python2.7/site-packages/setuptools/command/build_ext.pyR'Ks   c Cs|jd}x|jD]}|j|j}|j|}|jd}dj|d }|j|}tj j|tj j |}tj j|j |} t | |d|j d|j|jr|j|ptj|tqqWdS(Ntbuild_pyt.itverbosetdry_run(tget_finalized_commandt extensionstget_ext_fullnametnametget_ext_filenametsplittjointget_package_dirtostpathtbasenamet build_libRR-R.t _needs_stubt write_stubtcurdirtTrue( R)R+texttfullnametfilenametmodpathtpackaget package_dirt dest_filenamet src_filename((s@/usr/lib/python2.7/site-packages/setuptools/command/build_ext.pyR(Ss   cCstj||}||jkr|j|}tjoLt|doLt}|rtd}|t| }|t}nt |t rt j j |\}}|jj|tStr|jrt j j|\}}t j j|d|Sn|S(Ntpy_limited_apit EXT_SUFFIXsdl-(R&R3text_mapRtPY3tgetattrR$t_get_config_var_837tlent isinstanceRR7R8tsplitexttshlib_compilertlibrary_filenametlibtypet use_stubst_links_to_dynamicR4R5(R)R@RAR?tuse_abi3tso_exttfntd((s@/usr/lib/python2.7/site-packages/setuptools/command/build_ext.pyR3is"    cCs,tj|d|_g|_i|_dS(N(R&tinitialize_optionstNoneRPtshlibsRI(R)((s@/usr/lib/python2.7/site-packages/setuptools/command/build_ext.pyRY~s   cCstj||jpg|_|j|jg|jD]}t|tr9|^q9|_|jrs|jnx&|jD]}|j|j |_ q}Wx#|jD]}|j }||j |<||j |j dd<|jr|j |pt}|otot|t }||_||_|j|}|_tjjtjj|j|}|r||jkr|jj|n|rtrtj|jkr|jjtjqqWdS(NR,i(R&tfinalize_optionsR0tcheck_extensions_listRNRR[tsetup_shlib_compilerR1R2t _full_nameRIR4tlinks_to_dynamictFalseRSRTR;R3t _file_nameR7R8tdirnameR5R:t library_dirstappendR=truntime_library_dirs(R)R?R@tltdtnsRAtlibdir((s@/usr/lib/python2.7/site-packages/setuptools/command/build_ext.pyR\s.       $cCsdtd|jd|jd|j}|_t||jdk rW|j|jn|j dk rx*|j D]\}}|j ||qpWn|j dk rx!|j D]}|j |qWn|j dk r|j|j n|jdk r |j|jn|jdk r,|j|jn|jdk rN|j|jntj||_dS(NRR.tforce(RRR.RjRPRt include_dirsRZtset_include_dirstdefinet define_macrotundeftundefine_macrot librariest set_librariesRdtset_library_dirstrpathtset_runtime_library_dirst link_objectstset_link_objectstlink_shared_objectt__get__(R)RR2tvaluetmacro((s@/usr/lib/python2.7/site-packages/setuptools/command/build_ext.pyR^s(% cCs&t|tr|jStj||S(N(RNRtexport_symbolsR&tget_export_symbols(R)R?((s@/usr/lib/python2.7/site-packages/setuptools/command/build_ext.pyR}scCs|j|j}z`t|tr4|j|_ntj|||jrr|jdj }|j ||nWd||_XdS(NR+( t_convert_pyx_sources_to_langRRNRRPR&tbuild_extensionR;R/R:R<(R)R?t _compilertcmd((s@/usr/lib/python2.7/site-packages/setuptools/command/build_ext.pyRs   csntjg|jD]}|j^qdj|jjdd dgtfd|jDS(s?Return true if 'ext' links to a dynamic lib in the same packageR,iRc3s|]}|kVqdS(N((R tlibname(tlibnamestpkg(s@/usr/lib/python2.7/site-packages/setuptools/command/build_ext.pys s(tdicttfromkeysR[R_R5R4tanyRq(R)R?tlib((RRs@/usr/lib/python2.7/site-packages/setuptools/command/build_ext.pyR`s(&cCstj||jS(N(R&t get_outputst_build_ext__get_stubs_outputs(R)((s@/usr/lib/python2.7/site-packages/setuptools/command/build_ext.pyRscsEfdjD}tj|j}td|DS(Nc3s<|]2}|jrtjjj|jjdVqdS(R,N(R;R7R8R5R:R_R4(R R?(R)(s@/usr/lib/python2.7/site-packages/setuptools/command/build_ext.pys scss|]\}}||VqdS(N((R tbasetfnext((s@/usr/lib/python2.7/site-packages/setuptools/command/build_ext.pys s(R0t itertoolstproductt!_build_ext__get_output_extensionstlist(R)t ns_ext_basestpairs((R)s@/usr/lib/python2.7/site-packages/setuptools/command/build_ext.pyt__get_stubs_outputss  ccs(dVdV|jdjr$dVndS(Ns.pys.pycR+s.pyo(R/toptimize(R)((s@/usr/lib/python2.7/site-packages/setuptools/command/build_ext.pyt__get_output_extensionsscCstjd|j|tjj||jjdd}|rftjj|rft|dn|j st |d}|j djddd t d d tjj |jd d dt ddddt dddt ddddg|jn|rddlm}||gdddtd|j |jd j}|dkr||gd|dtd|j ntjj|r|j rtj|qndS(!Ns writing stub loader for %s to %sR,s.pys already exists! Please delete.tws sdef __bootstrap__():s- global __bootstrap__, __file__, __loader__s% import sys, os, pkg_resources, imps, dls: __file__ = pkg_resources.resource_filename(__name__,%r)s del __bootstrap__s if '__loader__' in globals():s del __loader__s# old_flags = sys.getdlopenflags()s old_dir = os.getcwd()s try:s( os.chdir(os.path.dirname(__file__))s$ sys.setdlopenflags(dl.RTLD_NOW)s( imp.load_dynamic(__name__,__file__)s finally:s" sys.setdlopenflags(old_flags)s os.chdir(old_dir)s__bootstrap__()Ri(t byte_compileRiRjR.t install_lib(RtinfoR_R7R8R5R4texistsRR.topentwritetif_dlR9Rbtclosetdistutils.utilRR>R/Rtunlink(R)t output_dirR?tcompilet stub_filetfRR((s@/usr/lib/python2.7/site-packages/setuptools/command/build_ext.pyR<sP        (t__name__t __module__R'R(R3RYR\R^R}RR`RRRRaR<(((s@/usr/lib/python2.7/site-packages/setuptools/command/build_ext.pyRJs         ic Cs8|j|j||||||||| | | | dS(N(tlinktSHARED_LIBRARY( R)tobjectstoutput_libnameRRqRdRfR|tdebugt extra_preargstextra_postargst build_tempt target_lang((s@/usr/lib/python2.7/site-packages/setuptools/command/build_ext.pyRxs    tstaticc Cs|dksttjj|\}} tjj| \}}|jdjdrg|d}n|j||||| dS(NtxRi( RZtAssertionErrorR7R8R4RORQt startswithtcreate_static_lib(R)RRRRqRdRfR|RRRRRRAR9R?((s@/usr/lib/python2.7/site-packages/setuptools/command/build_ext.pyRx,s  cCs"tjdkrd}nt|S(s In https://github.com/pypa/setuptools/pull/837, we discovered Python 3.3.0 exposes the extension suffix under the name 'SO'. iiR (iii(Rt version_infoR(R2((s@/usr/lib/python2.7/site-packages/setuptools/command/build_ext.pyRLDs (+R7RRRtdistutils.command.build_extRt _du_build_exttdistutils.file_utilRtdistutils.ccompilerRtdistutils.sysconfigRRtdistutils.errorsRt distutilsRtsetuptools.extensionRtsetuptools.externRtCython.Distutils.build_extR&t __import__t ImportErrorR RRRaRRSRRRR>R2tdlthasattrRR$RZRxRL(((s@/usr/lib/python2.7/site-packages/setuptools/command/build_ext.pytsX