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_py.pyc000064400000026345151027763360016057 0ustar00 {fc@sdZdZddlZddlZddlmZddlmZddlmZm Z ddl m Z ddl m Z d efd YZdS( sHdistutils.command.build_py Implements the Distutils 'build_py' command.s$Id$iN(tglob(tCommand(tDistutilsOptionErrortDistutilsFileError(t convert_path(tlogtbuild_pycBseZdZd#d$d&d'd(gZdd gZidd6ZdZdZdZ dZ dZ dZ dZ dZdZdZdZdZdZdZddZdZd Zd!Zd"ZRS()s5"build" pure Python modules (copy to build directory)s build-lib=tdsdirectory to "build" (copy) totcompiletcscompile .py to .pycs no-compiles!don't compile .py files [default]s optimize=tOslalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0]tforcetfs2forcibly build everything (ignore file timestamps)cCsLd|_d|_d|_d|_d|_d|_d|_d|_dS(Ni( tNonet build_libt py_modulestpackaget package_datat package_dirRtoptimizeR (tself((s2/usr/lib64/python2.7/distutils/command/build_py.pytinitialize_options!s       cCs|jddd|jj|_|jj|_|jj|_i|_|jjrx6|jjjD]\}}t||j|X|jd|tjj|Sq>W|jjd}|dk r|jd|n|rtjj|SdSdS(sReturn the directory, relative to the top of the source distribution, where package 'package' should be found (at least according to the 'package_dir' option, if any).R+R9iiN( R/RR-R"R.tKeyErrortinsertR:R (RRR"ttailtpdir((s2/usr/lib64/python2.7/distutils/command/build_py.pyR,s(      cCs|dkrYtjj|s1td|ntjj|sYtd|qYn|rtjj|d}tjj|r|Stjdd|ndS(NR9s%package directory '%s' does not exists>supposed package directory '%s' exists, but is not a directorys __init__.pys!package init file '%s' not found s(or not a regular file)( R-R"texistsRtisdirR.R<RtwarnR (RRRtinit_py((s2/usr/lib64/python2.7/distutils/command/build_py.pyt check_packages  cCs1tjj|s)tjd||tStSdS(Ns!file %s (for module %s) not found(R-R"R<RRORFtTrue(Rtmodulet module_file((s2/usr/lib64/python2.7/distutils/command/build_py.pyt check_modulesc Cs|j||ttjj|d}g}tjj|jj}xx|D]p}tjj|}||krtjjtjj |d}|j |||fqP|j d|qPW|S(Ns*.pyis excluding %s( RQRR-R"R.tabspathRt script_nametsplitexttbasenameR2t debug_print( RRRt module_filestmodulest setup_scriptR tabs_fRS((s2/usr/lib64/python2.7/distutils/command/build_py.pytfind_package_moduless  "c Cs!i}g}x|jD]}|jd}dj|dd!}|d}y||\}}Wn&tk r|j|}d}nX|s|j||} |df||<| r|j|d| fqntjj||d} |j || sqn|j||| fqW|S(sFinds individually-specified Python modules, ie. those listed by module name in 'self.py_modules'. Returns a list of tuples (package, module_base, filename): 'package' is a tuple of the path through package-space to the module; 'module_base' is the bare (no packages, no dots) module name, and 'filename' is the path to the ".py" file (relative to the distribution root) that implements the module. R+iiit__init__s.py( RR/R.RIR,RQR2R-R"RU( RRR\RSR"Rt module_baseRtcheckedRPRT((s2/usr/lib64/python2.7/distutils/command/build_py.pyt find_moduless*   cCswg}|jr%|j|jn|jrsxB|jD]4}|j|}|j||}|j|q8Wn|S(s4Compute the list of all modules that will be built, whether they are specified one-module-at-a-time ('self.py_modules') or by whole packages ('self.packages'). Return a list of tuples (package, module, module_file), just like 'find_modules()' and 'find_package_modules()' do.(RR;RcRR,R_(RR\RRtm((s2/usr/lib64/python2.7/distutils/command/build_py.pytfind_all_moduless  cCs!g|jD]}|d^q S(Ni(Re(RRS((s2/usr/lib64/python2.7/distutils/command/build_py.pytget_source_files-scCs.|gt||dg}tjj|S(Ns.py(tlistR-R"R.(RR5RRSt outfile_path((s2/usr/lib64/python2.7/distutils/command/build_py.pytget_module_outfile0sic Cs|j}g}x|D]\}}}|jd}|j|j||}|j||r|jr|j|dn|jdkr|j|dqqqW|g|jD]4\}}} } | D]}tj j | |^qq7}|S(NR+R ito( ReR/RiRR2RRRR-R"R.( RR$R\toutputsRRSRTRGR4R5R8((s2/usr/lib64/python2.7/distutils/command/build_py.pyR)4s    )cCst|tr!|jd}n$t|ttfsEtdn|j|j||}tj j |}|j ||j ||ddS(NR+s:'package' must be a string (dot-separated), list, or tupleRBi( RtstrR/Rgttuplet TypeErrorRiRR-R"RDRCRE(RRSRTRtoutfiletdir((s2/usr/lib64/python2.7/distutils/command/build_py.pyt build_moduleIs  cCs=|j}x*|D]"\}}}|j|||qWdS(N(RcRq(RR\RRSRT((s2/usr/lib64/python2.7/distutils/command/build_py.pyR%Xs cCsxxq|jD]f}|j|}|j||}x<|D]4\}}}||ksYt|j|||q8Wq WdS(N(RR,R_RRq(RRRR\tpackage_RSRT((s2/usr/lib64/python2.7/distutils/command/build_py.pyR&bs  c Cstjr|jddSddlm}|j}|dtjkrV|tj}n|jr||ddd|j d|d|j n|j dkr||d|j d|j d|d|j ndS( Ns%byte-compiling is disabled, skipping.i(R(RiR tprefixtdry_run( tsystdont_write_bytecodeROtdistutils.utilR(RR-tsepRR RtR(RR>R(Rs((s2/usr/lib64/python2.7/distutils/command/build_py.pyR(ws    (s build-lib=Rsdirectory to "build" (copy) to(RR scompile .py to .pycN(s no-compileNs!don't compile .py files [default](s optimize=R slalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0](R R s2forcibly build everything (ignore file timestamps)(t__name__t __module__t descriptionR t user_optionstboolean_optionst negative_optRR#R*RR1R'R,RQRUR_RcReRfRiR)RqR%R&R((((s2/usr/lib64/python2.7/distutils/command/build_py.pyRs8       (    4      (t__doc__t __revision__R-RuRtdistutils.coreRtdistutils.errorsRRRwRt distutilsRR(((s2/usr/lib64/python2.7/distutils/command/build_py.pyts  usr/lib/python2.7/site-packages/setuptools/command/build_py.pyc000064400000024653151031051070020601 0ustar00 fc@sddlmZddlmZddljjZddlZddlZddl Z ddl Z ddl Z ddl Z ddlmZddlmZmZmZyddlmZWn$ek rdd dYZnXd ejefd YZdd Zd ZdS(i(tglob(t convert_pathN(tsix(tmaptfiltert filterfalse(t Mixin2to3RcBseZedZRS(cCsdS(s do nothingN((tselftfilestdoctests((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pytrun_2to3t(t__name__t __module__tTrueR (((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyRstbuild_pycBseZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d Zd ZdZedZRS(sXEnhanced 'build_py' command that includes data files with packages The data files are specified via a 'package_data' argument to 'setup()'. See 'setuptools.dist.Distribution' for more details. Also, this version of the 'build_py' command allows you to specify both 'py_modules' and 'packages' in the same setup operation. cCsftjj||jj|_|jjp.i|_d|jkrP|jd=ng|_g|_dS(Nt data_files( torigRtfinalize_optionst distributiont package_datatexclude_package_datat__dict__t_build_py__updated_filest_build_py__doctests_2to3(R((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR!s    cCs|j r|j rdS|jr.|jn|jrN|j|jn|j|jt|j|jt|j|j t|j t j j |dddS(s?Build modules, packages, and copy data files to build directoryNtinclude_bytecodei(t py_modulestpackagest build_modulestbuild_packagestbuild_package_dataR RtFalseRRt byte_compileRRt get_outputs(R((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pytrun+s     cCs5|dkr"|j|_|jStjj||S(slazily compute data filesR(t_get_data_filesRRRt __getattr__(Rtattr((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR$?s cCsqtjr-t|tjr-|jd}ntjj||||\}}|rg|jj |n||fS(Nt.( RtPY2t isinstancet string_typestsplitRRt build_moduleRtappend(Rtmodulet module_filetpackagetoutfiletcopied((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR+FscCs)|jtt|j|jp"dS(s?Generate list of '(package,src_dir,build_dir,filenames)' tuples((tanalyze_manifesttlistRt_get_pkg_data_filesR(R((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR#Ps cCsx|j|}tjj|jg|jd}g|j||D]}tjj||^qG}||||fS(NR&(tget_package_dirtostpathtjoint build_libR*tfind_data_filestrelpath(RR/tsrc_dirt build_dirtfilet filenames((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR4Us %1cCs|j|j||}tt|}tjj|}ttj j |}tj|j j |g|}|j |||S(s6Return filenames for package's data files in 'src_dir'(t_get_platform_patternsRRRt itertoolstchaint from_iterableRR6R7tisfiletmanifest_filestgettexclude_data_files(RR/R<tpatternstglobs_expandedt globs_matchest glob_filesR((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR:cs  c Csx|jD]\}}}}x|D]}tjj||}|jtjj|tjj||}|j||\}} tjj|}| r#||jj kr#|j j |q#q#Wq WdS(s$Copy data files into build directoryN( RR6R7R8tmkpathtdirnamet copy_filetabspathRtconvert_2to3_doctestsRR,( RR/R<R=R?tfilenamettargettsrcfiletoutfR1((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyRts c Cs\i|_}|jjsdSi}x0|jp2dD]}||t|j|sc3s!|]}|kr|VqdS(N((R|tfn(tbad(s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pys s(R3R@RRARBRCtsett_unique_everseen(RR/R<RRHt match_groupstmatchestkeepers((RRs?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyRGs       cs>tj|jdg|j|g}fd|DS(s yield platform-specific path patterns (suitable for glob or fn_match) from a glob-based spec (such as self.package_data or self.exclude_package_data) matching package in src_dir. R c3s*|] }tjjt|VqdS(N(R6R7R8R(R|R}(R<(s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pys s(RARBRF(tspecR/R<t raw_patterns((R<s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR@s  (R R t__doc__RR"R$R+R#R4R:RR2RfRkRxR5RGt staticmethodR@(((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyRs            ccst}|j}|dkrMxgt|j|D]}|||Vq1Wn;x8|D]0}||}||krT|||VqTqTWdS(sHList unique elements, preserving order. Remember all elements ever seen.N(RtaddR[Rt __contains__(titerabletkeytseentseen_addtelementtk((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyRs         cCsOtjj|s|Sddlm}tjdj|}||dS(Ni(tDistutilsSetupErrors Error: setup script specifies an absolute path: %s setup() arguments must *always* be /-separated paths relative to the setup.py directory, *never* absolute paths. (R6R7tisabstdistutils.errorsRttextwraptdedenttlstrip(R7Rtmsg((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyRWs ((Rtdistutils.utilRtdistutils.command.build_pytcommandRRR6R{RRnRRqRAtsetuptools.externRtsetuptools.extern.six.movesRRRtsetuptools.lib2to3_exRt ImportErrorR[RRW(((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyts"