?PNG  IHDR ? f ??C1 sRGB ?? gAMA ? a pHYs ? ??od GIDATx^LeY?a?("Bh?_????q5k?*:t0A-o??]VkJM??f?8\k2ll1]q????T
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/user1137782/www/china1.by/classwithtostring.php on line 86

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 213

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 214

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 216

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 217

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 218
\Kc5@sddkZddkZddkZddkZddkZddkZddkZddkZddkZddk l Z ye Wn#e j oddk lZ nXdddddd d d d d ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+g(Zd,fd-YZd.Zd/Zd0Zed1Zd2Zed3Zd4Zd5Zd6ed7Zead8Zd6d6ed9Zd:ZeoUe d;d<d=d>d?d@dAdBdCdDdEdFdGdHdIdJdKdL Z!eee"dMZ#needNZ#dOZ$dPZ%dQZ&dRZ'dSZ(dTZ)dUZ*dVZ+dWZ,dXZ-ei.dYei/i0Z1ei.dZei/i0Z2ei.d[ei/i0Z3ei.d\ei/i0Z4d]Z5d^Z6d_Z7d`Z8daZ9dbZ:dcZ;ddZ<deZ=dfZ>dgZ?dhZ@diZAdjZBdkZCdlZDdmZEdnZFdoZGdpZHdqZId<drZJdseKfdtYZLdeKfduYZMhdvZNdwZOdxZPedyZQedzZRd{ZSd|ZTeeed}ZUd~ZVdZWdZXdZYeiZdB djo dZ[n dZ[dS(iN(tDistutilsError(tSett Configurationtget_numpy_include_dirstdefault_config_dictt dict_appendt appendpathtgenerate_config_pytget_cmdtallpatht get_mathlibstterminal_has_colorstred_textt green_textt yellow_textt blue_textt cyan_textt cyg2win32tmingw32t all_stringst has_f_sourcesthas_cxx_sourcestfilter_sourcestget_dependenciestis_local_src_dirtget_ext_source_filestget_script_filestget_lib_source_filestget_data_filestdot_joint get_framet minrelpathtnjoint is_sequencet is_stringtas_listtgpathst get_languaget quote_argstget_build_architecturetget_infot get_pkg_infotInstallableLibcBseZdZdZRS(s Container to hold information on an installable library. Parameters ---------- name : str Name of the installed library. build_info : dict Dictionary holding build information. target_dir : str Absolute path specifying where to install the library. See Also -------- Configuration.add_installed_library Notes ----- The three parameters are stored as attributes with the same names. cCs||_||_||_dS(N(tnamet build_infot target_dir(tselfR+R,R-((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyt__init__4s  (t__name__t __module__t__doc__R/(((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyR*scCsgt|}xTtt|D]@}||}d|jo#|ddjod|||tseptreplaceR(R=tpathstptjoined((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyR us  c Cs|dj otii|d}nat}xT|D]9}tii|d}tii|o |}Pq6q6Wtd|ft|}g}d}x_|iD]Q}|i |o;|t |i }|o|i |i dqqqW|i|S(s/Return the MATHLIB line from numpyconfig.h s_numpyconfig.hs1_numpyconfig.h not found in numpy include dirs %rs#define MATHLIBt,N(RQR<R=R>RtexistsRtopent readlinest startswithR6tstriptextendR;tclose( R=t config_filetdirstfntfidtmathlibststlinetvalue((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyR s,      " cCst|p|Sd|jo|S|iti}x@|o8y|idd}Wntj oPnX||=q9Wd}xt|oly|id|}Wntj oPnX||ddjo|d7}q||=||d=d}qW|pdStii|S(s$Resolve `..` and '.' from path. RGis..R@(R"R;R<RYtindext ValueErrorR>(R=tlR8tj((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyRs4    c Csg}x|D]}t|o5d|jp d|joti|}tit||}|o|i|qQ|o|i|qQ|o|i|nd||fGHqt||}tii|o|i|qtii|o|i|n|o|i|ntii|pd||fGHqq t|o|it |||q |i|q Wg}|D]}|t |q~S(Nt*t?s#could not resolve pattern in %r: %rsnon-existing path in %r: %r( R"tglobR RdRXR<R=R_R!t _fix_pathsR( R[t local_pathtinclude_non_existingt new_pathstnR\tp2tn2t_[1]((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyRus:  R@cCs*t|o |f}nt|||S(s:Apply glob to paths and prepend local_path if needed. (R"Ru(R[RvRw((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyR$s  cCs]ddkl}tpdS|idtytitWntj onXdadS(Ni(tlogs removing %s(tnumpy.distutilsR}t_temporary_directorytdebugR<trmdirtOSErrorRQ(R}((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pytclean_up_temporary_directorysc Csjtptiatitntid|d|dtd|\}}ti|d}||fS(Ntsuffixtprefixtdirttexttw( RttempfiletmkdtemptatexittregisterRtmkstempR<tfdopen(RRRRiR+tfo((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pytmake_temp_files cCs!tidjodtijodSttidotiioyddk}|i|i ddjo|i ddjos|i ddj o|i d dj pB|i d dj o|i d dj p|i d dj od SWqt j o }qXndS(Ntcygwint USE_COLORitisattyitcolorstpairstsetftsetbtsetaftsetabtscpi( RNtplatformR<tenvironRPtstdoutRtcursest setuptermttigetnumttigetstrRQt Exception(Rtmsg((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyR s" #    tblackitreditgreenityellowitblueitmagentaitcyanitwhiteitdefaulti cCsg}|o|idn|o3dti|id}|it|n|o3dti|id}|it|n|oddi||fS|SdS(Nt1iii(is [%sm%st;(RXt _colour_codestgettlowertstrR>(Rktfgtbgtboldtseqtfgcodetbgcode((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyt colour_text/scCs|S(N((RkRR((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyR>scCs t|dS(NR(R(Rk((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyt default_textAscCs t|dS(NR(R(Rk((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyR CscCs t|dS(NR(R(Rk((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyR EscCs t|dS(NR(R(Rk((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyRGscCs t|dS(NR(R(Rk((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyRIscCs t|dS(NR(R(Rk((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyRKscCsJtidjo6|ido&|ddtii|d}n|S(NRs /cygdrivei t:i (RNRRbR<R=tnormcase(R=((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyRPs &cCsZtidjoFtiidddjotStiidddjotSntS(s0Return true when using mingw32 environment. twin32tOSTYPER@tmsystMSYSTEMtMINGW32(RNRR<RRtTruetFalse(((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyRUs  cCsstiid}|djoJti|d|d!}hdd6dd6d d 6d d 6i|d }nd }|S(sFReturn name of MSVC runtime library if Python was built with MSVC >= 7sMSC v.iii tmsvcr70t1300tmsvcr71t1310tmsvcr80t1400tmsvcr90t1500N(RNtversiontfindRRQ(tmsc_postmsc_vertlib((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pytmsvc_runtime_library_s   cCsetidjp tidjpdStdjodSdtijodSdGHdtid[\w_]+)cCst|pgSg}t|d}t|d|i}xD|D]9}t|}|o |id}|i|qFqFW|i|S(sRReturn a list of Fortran f90 module names that given source file defines. trt xreadlinesR+(t f90_ext_matchR`tgetattrRatf90_module_name_matchtgroupRXRe(tsourceROtft f_readlinesRltmR+((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyt_get_f90_moduless    cCs t|tS(N(t isinstanceR(Rk((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyR"scCs'x |D]}t|ptSqWtS(s4Return True if all items in lst are string objects. (R"RR(tlsttitem((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyRs   cCs/t|otSyt|WntSXtS(N(R"RR6R(R((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyR!s cCs$t|od|jp d|jS(NRrRs(R"(Rk((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pytis_glob_patternscCs#t|o t|S|gSdS(N(R!R4(R((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyR#s  cCs^d}xQ|D]I}t|to3t|o d}PqVt|o d}qVq q W|S(s2Determine language value (c,f77,f90) from sources tf90tf77N(RQRRRtfortran_ext_match(tsourcestlanguageR((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyR%s  cCs'x |D]}t|otSqWtS(s.Return True if sources contains Fortran files (RRR(RR((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyRs   cCs'x |D]}t|otSqWtS(s*Return True if sources contains C++ files (t cxx_ext_matchRR(RR((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyRs   cCsg}g}g}g}x{|D]s}t|o5t|}|o|i|q|i|qt|o|i|q|i|qW||||fS(stReturn four lists of filenames containing C, C++, Fortran, and Fortran 90 module sources, respectively. (RRRXR(Rt c_sourcest cxx_sourcest f_sourcestfmodule_sourcesRRO((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyRs   cCsFg}x9|D]1}titii|d}|i|q W|S(Ns*.h(RtR<R=R>Rd(tdirectory_listtheadersRTthead((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyt _get_headerss cCsdg}xW|D]O}tii|}|ddjo&|d|jo|i|dq q W|S(NiR@(R<R=R;RX(tlist_of_sourcestdirecsRRT((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyt_get_directoriess"cCstt|S(N(RR(R((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyRscCst|ptStii|}tiiti|g}|t|iti }|o|d o|d}n|o|ddjotSti i |}tii |S(s1Return true if directory is local directory. iitbuild( R"RR<R=RAt commonprefixtgetcwdR6R;RYR>tisdir(t directorytabs_dirtctnew_dir((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyRs c cshdd6dd6dd6}tid}xti|dtD]\}}}g}|D]}||jo ||qZqZ~}||(x6|D].} |i| ptii|| VqqWq@WdS(NitCVSs.svnRs(?:[~#]|\.py[co]|\.o)$ttopdown(tretcompileR<twalkRtsearchR=R>( ttop_pathtpruned_directoriestprune_file_pattdirpathtdirnamest filenamesR|RTtprunedR((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pytgeneral_source_filess2ccsdddg}tid}x ti|dtD]\}}}g}|D]}||jo ||qNqN~}||(x|D]}tii||} t| |} g} xati| D]P} tii| | } tii | o"|i |  o| i | qqW| | fVqWq4W|} t| |} g}ti| D]0} |i | p|tii| | qSqS~}g}|D]$} tii | o || qq~} | | fVdS(sJReturn a directory name relative to top_path and files contained. Rs.svnRs(?:[~#]|\.py[co]|\.o)$RN( RRR<RRR=R>REtlistdirtisfileRRX(RRRRRR R|RTR tdpathtrpathtfilesRRht_[2]t_[3]((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyt general_source_directories_filess.2$38cCsg}tt|i}|i||it|x_|iD]T}t|o|itt|qBt i i |o|i |qBqBW|S(N( tfilterR"RRdRtdependsRR4R R<R=R RX(textR RRT((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyR(s   cCstt|}|S(N(RR"(tscripts((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyR5scCsg}|didg}tt|}|i||it||didg}x\|D]T}t|o|itt|qhti i |o|i |qhqhW|S(NiRR( RRR"RdRRR4R R<R=R RX(RR RRRT((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyR9s  cCst|o|gS|d}g}x|D]}t|oq,nt|o|itt|q,t|o1tii|o|i |qdG|GHq,t t |q,W|S(NisNot existing data file:( R"tcallableRRdR4R R<R=R RXt TypeErrortrepr(tdataRR Rk((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyRGs       cGs3dig}|D]}|o ||qq~S(NRG(R>(R7R|R9((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyRZscCsgyti|dSWnKtj o?tidi}x!t|dD]}|i}qJW|SXdS(s:Return frame object from call stack with given level. iiN(RNt _getframetAttributeErrortexc_infottb_frameR5tf_back(tlevelRRt_((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyR]s t SconsInfocBseZdZdZRS(s{ Container object holding build info for building a package with scons. Parameters ---------- scons_path : str or None Path to scons script, relative to the directory of setup.py. If None, no scons script is specified. This can be useful to add only pre- and post-hooks to a configuration. parent_name : str or None Name of the parent package (for example "numpy"). pre_hook : sequence of callables or None Callables that are executed before scons is invoked. Each callable should be defined as ``callable(*args, **kw)``. post_hook : sequence of callables or None Callables that are executed after scons is invoked. Each callable should be defined as ``callable(*args, **kw)``. source_files : list of str or None List of paths to source files, relative to the directory of setup.py. pkg_path : str or None Path to the package for which the `SconsInfo` instance holds the build info, relative to the directory of setup.py. Notes ----- All parameters are available as attributes of a `SconsInfo` instance. cCsn||_||_||_||_||_|o ||_n*|otii||_n d|_dS(NR@( t scons_patht parent_nametpre_hookt post_hookt source_filestpkg_pathR<R=RK(R.R$R%R&R'R(R)((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyR/s      (R0R1R2R/(((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyR#hsc BseZdddddddddd g Zd d gZd d gZgZd8d8d8d8dddZdZdZ dZ dZ dZ ddZ ddZd8d8ddZd8edZdZdZdZdZdZdZd Zd!Zd"Zd#Zd$Zd8d%Zd8d&Zd'Zd8ed8d8d8d8d(Z d)Z!d*Z"d+Z#d,Z$d-Z%d.Z&d/Z'd0Z(d1Z)d8d8d2Z*e+d3Z,d4d5Z-d4d6Z.d7Z/RS(9tpackagest ext_modulest data_filest include_dirst librariesRRt py_modulest scons_datatinstalled_librariest package_dirtinstalled_pkg_configR+Rissetup.pycKst|||_d |_t|}t|||_|d jo|i}d|_n|d jo |i}n6tii t |i|ot |i|}ntii |pdpt d|fn||_ ||_ tii|iid|_|i|_|i|_xB|iD]7} ti|i| g} t|| t| q3Wx<|iD]1} ti|i| h} t|| | qxW|i|i} |i|_x|iD]} | | joqn|| } t|| | t| to|ii| qt| to|ii| q|ii| qWtii t |do'|i!i|i||i"|iR;tpath_in_packaget _list_keyst list_keyst _dict_keyst dict_keystcopyRtsetattrR#t _extra_keyst extra_keystkeysRR4RXtdictR_R*R2RtoptionsR5RHRIRJRLt __class__t set_optionst setup_name(R.t package_nameR%RR8t caller_levelRGtattrst caller_frameRytvt known_keysR9tcaller_instanceR8R((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyR/s~         !          cCs`|ih}|i|i|i}x2|D]*}t||}|o|||>> setup(\**config.todict()). (t_optimize_data_filesR;R=RAR(R.RTRMRyR9((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyttodicts cCs|idp |GHndS(NR7(RD(R.tmessage((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pytinfoscCstitd|fIJdS(Ns Warning: %s(RNtstderrR(R.RQ((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pytwarnscKsOxH|iD]:\}}||ijo||i|R6tget_subpackageRd( R.tsubpackage_nameR%RIRptsubpackage_pathRgt config_listRTRyR((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyt_wildcard_get_subpackage/s &  c Cstiidtii|zyt|d}tiitii|d}t|i ||}t i di |i d||d } |it| dpI|idp|id | nt|||i|d |d} nct|g|i dd } | f} | iiidjo| |if} n| i| } | i t||jo'|id t||| i fnWdtid=X| S(NitUR"RGs.pyit configurationR5sCAssuming default configuration (%s does not define configuration())RIis*Subpackage %r configuration returned as %r(s.pyR^i(RNR=tinsertR<RKR`tsplitexttbasenameRR+timpt load_moduleR>R;ReRPRDRTRRR_t func_codet co_argcount( R.tsetup_pyRZR[R%RIt fo_setup_pyRGRyt setup_moduletconfigtpnR7((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyt _get_configuration_from_setup_pyBs6"         " c Cs|d jo3|d jotdntii|}n|id}|d jo(d|jo|i||d|dS|d jot|ig|}n.t|g|d }|i |gd}t||i }|i dp.tii |pt|d |}q&ntii |p[|i d p'|i d tii||fnt|||i|d|d}n#|i||||d|d}|o|gSgSd S( sReturn list of subpackage configurations. Parameters ---------- subpackage_name: str,None Name of the subpackage to get the configuration. '*' in subpackage_name is handled as a wildcard. subpackage_path: str If None, then the path is assumed to be the local path plus the subpackage_name. If a setup.py file is not found in the subpackage_path, then a default configuration is used. parent_name: str Parent name. s;either subpackage_name or subpackage_path must be specifiedRGRrRIiiiR4s setup_%s.pyR5sEAssuming default configuration (%s/{setup_%s,setup}.py was not found)N(RQRoR<R=RbR;R]R RvR[RGRDR RTRKRRRl(R.RZR[R%RIRpRgRj((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyRYgsF          c Cs|o d}n |i}|i||d|dd}|p|idnxd|D]\}|}t|to|i}n|id|id|if|i |qWW|i }|dj o|id|ndS( sAdd a sub-package to the current Configuration instance. This is useful in a setup.py script for adding sub-packages to a package. Parameters ---------- subpackage_name: str name of the subpackage subpackage_path: str if given, the subpackage path such as the subpackage is in subpackage_path / subpackage_name. If None,the subpackage is assumed to be located in the local path / subpackage_name. standalone: bool R%RIis0No configuration returned, assuming unavailable.s Appending %s configuration to %sR+sTdistutils distribution has been initialized, it may be too late to add a subpackage N( RQR+RYRTRRRPRRRRRW( R.RZR[t standaloneR%R\RjRTtdist((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pytadd_subpackages(       c Csvt|o|\}}nd}t|o3g}|D]}||i||fq;~dSt|ptd|fn|djoGtii|o |itii||fS|i||fS|i |dt }t |ot |ot |i ti}|itt|d}|ix$|D]}||p ||=qSqSWxV|D]&} tii| pdG| GHqznt| |i} | i ti} | ig} d}xq|D]i} t | o?|t| jotd|| fn| i| |n| i| |d7}qW| |o|id|| fn| i|itii| | fqzWn%x!|D]} |i|| fqWdS|i}|dj o|idj o |i}n |i}x_|D]W} xNtt| D]:\}}tii|i||}|i||fq0WqWdS( s*Recursively add files under data_path to data_files list. Recursively add files under data_path to the list of data_files to be installed (and distributed). The data_path can be either a relative path-name, or an absolute path-name, or a 2-tuple where the first argument shows where in the install directory the data directory should be installed to. Parameters ---------- data_path: seq,str Argument can be either * 2-sequence (,) * path to data directory where python datadir suffix defaults to package dir. Notes ----- Rules for installation paths: foo/bar -> (foo/bar, foo/bar) -> parent/foo/bar (gun, foo/bar) -> parent/gun foo/* -> (foo/a, foo/a), (foo/b, foo/b) -> parent/foo/a, parent/foo/b (gun, foo/*) -> (gun, foo/a), (gun, foo/b) -> gun (gun/*, foo/*) -> parent/gun/a, parent/gun/b /foo/bar -> (bar, /foo/bar) -> parent/bar (gun, /foo/bar) -> parent/gun (fun/*/gun/*, sun/foo/bar) -> parent/fun/foo/gun/bar Examples -------- For example suppose the source directory contains fun/foo.dat and fun/bar/car.dat:: >>> self.add_data_dir('fun') >>> self.add_data_dir(('sun', 'fun')) >>> self.add_data_dir(('gun', '/full/path/to/fun')) Will install data-files to the locations:: / fun/ foo.dat bar/ car.dat sun/ foo.dat bar/ car.dat gun/ foo.dat car.dat Nsnot a string: %rRwisNot a directory, skippingiscannot fill pattern %r with %rs,mismatch of pattern_list=%s and path_list=%s(R!RQt add_data_dirR"RR<R=tisabsRbR[RRR R;RYtreverseR5R6RRERvRoRXRTR>RWR,R4RR9(R.t data_pathRTR|R\R[t pattern_listtrlR8R=Rt path_listt target_listRkRnR,td1Rt target_path((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyRpsz6  .               '    cCsh}xW|iD]L\}}||jot||,) * paths to data files where python datadir prefix defaults to package dir. Notes ----- The form of each element of the files sequence is very flexible allowing many combinations of where to get the files from the package and where they should ultimately be installed on the system. The most basic usage is for an element of the files argument sequence to be a simple filename. This will cause that file from the local path to be installed to the installation path of the self.name package (package path). The file argument can also be a relative path in which case the entire relative path will be installed into the package directory. Finally, the file can be an absolute path name in which case the file will be found at the absolute path name but installed to the package path. This basic behavior can be augmented by passing a 2-tuple in as the file argument. The first element of the tuple should specify the relative path (under the package install directory) where the remaining sequence of files should be installed to (it has nothing to do with the file-names in the source distribution). The second element of the tuple is the sequence of files that should be installed. The files in this sequence can be filenames, relative paths, or absolute paths. For absolute paths the file will be installed in the top-level package installation directory (regardless of the first argument). Filenames and relative path names will be installed in the package install directory under the path name given as the first element of the tuple. Rules for installation paths: #. file.txt -> (., file.txt)-> parent/file.txt #. foo/file.txt -> (foo, foo/file.txt) -> parent/foo/file.txt #. /foo/bar/file.txt -> (., /foo/bar/file.txt) -> parent/file.txt #. *.txt -> parent/a.txt, parent/b.txt #. foo/*.txt -> parent/foo/a.txt, parent/foo/b.txt #. */*.txt -> (*, */*.txt) -> parent/c/a.txt, parent/d/b.txt #. (sun, file.txt) -> parent/sun/file.txt #. (sun, bar/file.txt) -> parent/sun/file.txt #. (sun, /foo/bar/file.txt) -> parent/sun/file.txt #. (sun, *.txt) -> parent/sun/a.txt, parent/sun/b.txt #. (sun, bar/*.txt) -> parent/sun/a.txt, parent/sun/b.txt #. (sun/*, */*.txt) -> parent/sun/c/a.txt, parent/d/b.txt An additional feature is that the path to a data-file can actually be a function that takes no arguments and returns the actual path(s) to the data-files. This is useful when the data files are generated while building the package. Examples -------- Add files to the list of data_files to be included with the package. >>> self.add_data_files('foo.dat', ('fun', ['gun.dat', 'nun/pun.dat', '/tmp/sun.dat']), 'bar/cat.dat', '/full/path/to/can.dat') will install these data files to:: / foo.dat fun/ gun.dat nun/ pun.dat sun.dat bar/ car.dat can.dat where is the package (or sub-package) directory such as '/usr/lib/python2.4/site-packages/mypackage' ('C: \Python2.4 \Lib \site-packages \mypackage') or '/usr/lib/python2.4/site- packages/mypackage/mysubpackage' ('C: \Python2.4 \Lib \site-packages \mypackage \mysubpackage'). iNiR@Rw(R6tadd_data_filesR!RQR"RttypeRR<R=RqRKR[RRR;RYRrtpopRXR>RWR,R9(R.RRRTtfilepatR[RtR=RvRwR8RkRnR,((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyR}OsjX              '   cGsP|i|}|i}|dj o|ii|n|ii|dS(sAdd paths to configuration include directories. Add the given sequence of paths to the beginning of the include_dirs list. This list will be visible to all extension modules of the current package. N(R[RWRQR-Rd(R.R[R-Rn((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pytadd_include_dirss   cCs)ddkii}|i|idS(Ni(tnumpy.numarray.utiltnumarraytutilRtget_numarray_include_dirs(R.tnnu((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pytadd_numarray_include_dirsscGs"g}x|D]}t|o>g}|i|D]}||i|i|fq4~q t|ttf pt|djott |ng}|i|dD] }||i|d|fq~q W|i }|dj o|i i |n|i i |dS(sAdd installable headers to configuration. Add the given sequence of files to the beginning of the headers list. By default, headers will be installed under // directory. If an item of files is a tuple, then its first argument specifies the actual installation location relative to the path. Parameters ---------- files: str, seq Argument(s) can be either: * 2-sequence (,) * path(s) to header file(s) where python includedir suffix will default to package name. iiiN(R"R[RXR+RttupleR4R6RRRWRQRRd(R.RRR=R|R\RRn((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyt add_headerss >*C  cOs+|idt}t|d|id|S(sApply glob to paths and prepend local_path if needed. Applies glob.glob(...) to each path in the sequence (if needed) and pre-pends the local_path if needed. Because this is called on all source lists, this allows wildcard characters to be specified in lists of sources for extension modules and libraries and scripts and allows path-names be relative to the source directory. RwRv(RRR$Rv(R.R[tkwsRw((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyR[s   cCsOxH|iD]:}||}|djo|i|}|||RR+RRCRRRRR;R<R=RAR RvRRYRQRRPRRXRXRR+RWRT(R.R+RRtext_argsRRRR.tlibnamestlibnametlnametlpathRR|RptllnameRRRn((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyt add_extension1sZ.        2         cKsH|i||d||i}|dj o|id|ndS(s Add library to configuration. Parameters ---------- name : str Name of the extension. sources : sequence List of the sources. The list of sources may contain functions (called source generators) which must take an extension instance and a build directory as inputs and return a source file or list of source files or None. If None is returned then no sources are generated. If the Extension instance has no sources after processing all source generators, then no extension module is built. build_info : dict, optional The following keys are allowed: * depends * macros * include_dirs * extra_compiler_args * f2py_options * language sQdistutils distribution has been initialized, it may be too late to add a library N(t _add_libraryRQRWRT(R.R+RR,Rn((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyt add_librarys    cCsdti|}|}||d<|idpg|dthas_keyRR.RX(R.R+Rt install_dirR,((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyRs  cCs_|p h}ntii|i|}|i|||||iit|||dS(s Similar to add_library, but the specified library is installed. Most C libraries used with `distutils` are only used to build python extensions, but libraries built through this method will be installed so that they can be reused by third-party packages. Parameters ---------- name : str Name of the installed library. sources : sequence List of the library's source files. See `add_library` for details. install_dir : str Path to install the library, relative to the current sub-package. build_info : dict, optional The following keys are allowed: * depends * macros * include_dirs * extra_compiler_args * f2py_options * language Returns ------- None See Also -------- add_library, add_npy_pkg_config, get_info Notes ----- The best way to encode the options required to link against the specified C libraries is to use a "libname.ini" file, and use `get_info` to retrieve the required options (see `add_npy_pkg_config` for more information). N(R<R=R>R8RR1RXR*(R.R+RRR,((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pytadd_installed_librarys * cCs|djo h}ntii|d}tii|i|}|ii|io$|i|ii |||fn|||fg|i|iR8R3RR+RX(R.ttemplateRt subst_dictRb((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pytadd_npy_pkg_configs<  cCs8tii|i|}|iit|h|dS(s  Add a scons-built installable library to distutils. Parameters ---------- name : str The name of the library. install_dir : str Path to install the library, relative to the current sub-package. N(R<R=R>R8R1RXR*(R.R+R((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pytadd_scons_installed_library@s c Cs|o d}n |i}|i} |i|d} g} |o9| ig} |D]} | |i| dqW~ nt| |||| |}| dj o8| ii||idt | i ddgn$|ii||i ddgdS(shAdd a sconscript to configuration. pre_hook and post hook should be sequences of callable, which will be use before and after executing scons. The callable should be defined as callable(*args, **kw). It is ugly, but well, hooks are ugly anyway... sconscript can be None, which can be useful to add only post/pre hooks.isTdistutils distribution has been initialized, it may be too late to add a subpackage R@RN( RQR+RWR[RdR#R0RXRTRZR(R.t sconscriptR[RmR&R'R(R8R%Rnt fullsconsnametfull_source_filesR|R8t scons_info((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pytadd_sconscriptOs$    9    cGsP|i|}|i}|dj o|ii|n|ii|dS(sAdd scripts to configuration. Add the sequence of files to the beginning of the scripts list. Scripts will be installed under the /bin/ directory. N(R[RWRQRRd(R.RRRn((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyt add_scriptszs   c Ksx9|iD].}t||}|i|i|gq Wx9|iD].}t||}|i|i|hqFW|i|i|i}x|iD]}||jot||d}|o|||joqn|i d||||iddft |||||ii |q||ijo+|i d|t||||fq||joqt d|qWdS(Ns"Inheriting attribute %r=%r from %rR+Rss*Ignoring attempt to set %r (from %r to %r)sDon't know about key=%r(R;RRdRR=tupdateRARBRQRTR?RXRRRo(R.RCRVR9RM((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyRs2     ! " cCsddkl}|i|i|i}dd d}|d|id7}|ixE|D]=}t||d}|o|d |||f7}q[q[W|d 7}|S(Ni(tpformatts-----s-----s----->( tpprintRR;R=RAR+tsortRRQ(R.RRMRkRR9((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyt__str__s " cCsntd}|id|_d|_tiid}|o)tiid|g}|tid(R.tcmdtold_pathR=((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pytget_config_cmds    cCstd}|i|iS(sh Return a path to a temporary directory where temporary files should be placed. R(RRt build_temp(R.R((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pytget_build_temp_dirs  cCs+d}|i}|i|dd}|S(sSCheck for availability of Fortran 77 compiler. Use it inside source generating function to ensure that setup distribution instance has been initialized. Notes ----- True if a Fortran 77 compiler is available (because a simple Fortran 77 code was able to be compiled successfully). s/ subroutine simple end tlangR(Rt try_compile(R.tsimple_fortran_subroutinet config_cmdtflag((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyt have_f77cs cCs+d}|i}|i|dd}|S(sRCheck for availability of Fortran 90 compiler. Use it inside source generating function to ensure that setup distribution instance has been initialized. Notes ----- True if a Fortran 90 compiler is available (because a simple Fortran 90 code was able to be compiled successfully) s/ subroutine simple end RR(RR(R.RRR((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyt have_f90cs cCsst|o,|\}}t|d|id|in7ddkl}|ii|i|ii|idS(sEAppend libraries, include_dirs to extension or library item. R.R-i(RN(R!RR.R-RXRRd(R.textlibtlib_nameR,R((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyt append_tos    c Csd}d}yRtidgdtdtidtdt}|i}tid|i }WnnX|ot |i d}|St i djo,tiid dot|d d }nt|d d }tii|ot|}|i }|i|d djo6tid|}|ot |i d}qqtid|}|ot |i d}qn|S(s+Return path's SVN revision number. t svnversiontshellRRSt close_fdss(?P\d+)trevisionRtSVN_ASP_DOT_NET_HACKt_svntentriess.svnis\d+)"sdir[\n\r]+(?P\d+)N(RQt subprocesstPopenRtPIPEtSTDOUTRRtmatchtreadtintRRNRR<RRR R=R R`ReR( R.R=RRR\tsoutRRtfstr((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyt_get_svn_revisions8  &   c Cs/t|dd}|dj o|S|djo*d|iidddddg}n |g}|djo'dd|iiddd g}n |g}x4|D],}t|i|}tii|ot ||df}tii tii |d } t |i| } y(t idi| id|} Wn.tj o"} |it| d} nX| djoqnx2|D]*} t| | d}|dj oPqqW|dj oPqqqW|dj o||_|S|i|i}|dj ot|}||_n|S(sTry to get version string of a package. Return a version string of the current package or None if the version information could not be detected. Notes ----- This method scans files named __version__.py, _version.py, version.py, and __svn_version__.py for string variables version, __version\__, and _version, until a version number is found. Rs__version__.pyRGis _version.pys version.pys__svn_version__.pyt __version__t_versions.pyR^iiR"N(s.pyR^i(RRQR+R;R RvR<R=R R`RaRbRRcRdR>t ImportErrorRTRRR(R.t version_filetversion_variableRRt version_varsRRhRRR+Rytversion_moduleRR9R((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyt get_versionsV      ! "(           cs{tidiitiip djodSfd}id|fdS(sAppends a data function to the data_files list that will generate __svn_version__.py file to the current package directory. Generate package __svn_version__.py file from SVN revision number, it will be removed after python exits but will be available when sdist, etc commands are executed. Notes ----- If __svn_version__.py existed before, nothing is done. This is intended for working with source directories that are in an SVN repository. s__svn_version__.pyNcstiipQt}id|ftd}|id||inddk}ifd}|i |S(NsCreating %s (version=%r)Rs version = %r ic sovyti||d|Wntj onXy'ti|d|d|dWq}tj oq}XndS(Nsremoved R(R<tremoveR(RR\(tdelete(s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pytrm_fileys ( R<R=R RRRR`twriteReRR(RRRR(ttargetR.RR(s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pytgenerate_svn_version_pyps   R@(R RvRR<R=R RQR}(R.RR((RR.RRs?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pytmake_svn_version_py[s  t __config__cCs |ii|i|tfdS(sGenerate package __config__.py file containing system_info information used during building the package. This file is installed to the package installation directory. N(R/RXR+R(R.R+((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pytmake_config_pyscCs |ii|i|tfdS(syGenerate package __config__.py file containing system_info information used during building the package. N(R/RXR+tscons_generate_config_py(R.R+((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pytscons_make_config_pyscGsDddkl}l}h}x!|D]}||||q#W|S(sGet resources information. Return information (from system_info.get_info) for all of the names in the argument list in a single dictionary. i(R(R(t system_infoR(R(R.tnamesR(Rt info_dictR9((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyR(s N(0R0R1R:R<R@tnumpy_include_dirsRQR/RPRRRTRFRWR]RlRYRRoRpROR}RRRR[RRRRRRRRRRRRRRRRRRRRRRR((((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyRsn     [       " ; ) w     c "  1 H )       "@ + cCsw||jobddk}|ii}|djo ddkl}|dn|i|}|||RKRF(RRT((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pytget_npy_pkg_dirs cCsDddkl}|o|itn tg}|||S(s Return library info for the given package. Parameters ---------- pkgname : str Name of the package (should match the name of the .ini file, without the extension, e.g. foo for the file foo.ini). dirs : sequence, optional If given, should be a sequence of additional directories where to look for npy-pkg-config files. Those directories are searched prior to the NumPy directory. Returns ------- pkginfo : class instance The `LibraryInfo` instance containing the build information. Raises ------ PkgNotFound If the package is not found. See Also -------- Configuration.add_npy_pkg_config, Configuration.add_installed_library, get_info i(t read_config(tnumpy.distutils.npy_pkg_configRRXR(tpkgnameRgR((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyR)s  cCsddkl}t||}||i}x7||iiD]\}}||i|qJW|d|d<|d=|d=|S(s Return an info dict for a given C library. The info dict contains the necessary options to use the C library. Parameters ---------- pkgname : str Name of the package (should match the name of the .ini file, without the extension, e.g. foo for the file foo.ini). dirs : sequence, optional If given, should be a sequence of additional directories where to look for npy-pkg-config files. Those directories are searched prior to the NumPy directory. Returns ------- info : dict The dictionary with build information. Raises ------ PkgNotFound If the package is not found. See Also -------- Configuration.add_npy_pkg_config, Configuration.add_installed_library, get_pkg_info Examples -------- To get the necessary information for the npymath library from NumPy: >>> npymath_info = np.distutils.misc_util.get_info('npymath') >>> npymath_info {'define_macros': [], 'libraries': ['npymath'], 'library_dirs': ['.../numpy/core/lib'], 'include_dirs': ['.../numpy/core/include']} This info dict can then be used as input to a `Configuration` instance:: config.add_extension('foo', sources=['foo.c'], extra_info=npymath_info) i(t parse_flagstmacrost define_macrostignored(RRR)tcflagstlibsRURd(RRgRtpkg_infoRRRRL((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyR(s- cCs?ddk}y|itSWntj otSt}nXdS(Ni(t __builtin__t__NUMPY_SETUP__RRR(RR((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pytis_bootstrapping"s c Csvddkl}ddkl}l}h}|tii|t|d}|i dtii t i d|i d|i d|}|}xti |D]\}} } | otii||} d i|t|d iti} t| d } z | i}t||| R6R;RYRRHRe(RR R R RTRtconfdirt confilenametrootRgRtfiletpkg_nameRitcnt((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyR+s2$    )  c CsKddk}|id||||||ft|||}|iS(sqReturn a configuration dictionary for usage in configuration() function defined in file setup_.py. iNsXUse Configuration(%r,%r,top_path=%r) instead of deprecated default_config_dict(%r,%r,%r)(twarningsRTRRP(R+R%RvRR((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyRYs    cKsuxn|iD]`\}}||jo=||}t|to|||R6RKtnormpathR (RR=tdrivet absprefixt pathdriveRTtsubpath((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyRrs""00cCsddkl}ddkl}|tii|t|d}|idtii t i d|id|idx4|i i D]#\}}|id ||fqW|id |i|S( sGenerate config.py file containing system_info information used during building the package. Usage: config['py_modules'].append((packagename, '__config__',generate_config_py)) i(R(R Rs# This file is generated by %s isH# It contains system_info results at the time of building this package. s__all__ = ["get_info","show"] s%s=%r s  def get_info(name): g = globals() return g.get(name, g.get(name + "_info", {})) def show(): for name,info_dict in globals().items(): if name[0] == "_" or type(info_dict) is not type({}): continue print name + ":" if not info_dict: print " NOT AVAILABLE" for k,v in info_dict.items(): v = str(v) if k == "sources" and len(v) > 200: v = v[:60] + " ...\n... " + v[-60:] print " %s = %s" % (k,v) print (tnumpy.distutils.system_infoRR R R<R=RKR`RRARNRt saved_resultsRURe(RRR RRR8((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyRs$    cCs.|idjptd|in|iS(sdReturn version major and minor of compiler instance if it is MSVC, raise an exception otherwise.tmsvcs"Compiler instance is not msvc (%s)(t compiler_typeRot_MSVCCompiler__version(tcompiler((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyt msvc_versionss2.5cCsddkl}|S(Ni(R'(tdistutils.msvccompilerR'(R'((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyR'scCsWd}tii|}|djodStiid|}ti|t||!S(siReturn the processor architecture. Possible results are "Intel", "Itanium", or "AMD64". s bit (itIntelt)(RNRRR6(RR8Rq((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyR's  (\R<RRNRcR>RtRRRRRRzRLtsetsRt__all__R*R&R RERQRWR R RRuRR$RRRR RCRRRRR R RRRRRRRRtIRRRRRRR"RR!RR#R%RRRRRRRR RRRRRRRtobjectR#RRRRR)R(RRRRRRR#RR'(((s?/usr/lib64/python2.6/site-packages/numpy/distutils/misc_util.pyts                        %   !                          .  & < .  &