N
εωO5c       sy     d  Z    k Z  k Z  k Z  d e d  Z ? d d d  Z N d   Z l e d j o m e   n d S(	   sν  Module/script to "compile" all .py files to .pyc (or .pyo) file.

When called as a script with arguments, this compiles the directories
given as arguments recursively; the -l option prevents it from
recursing into directories.

Without arguments, if compiles all modules on sys.path, without
recursing into subdirectories.  (Even though it should do so for
packages -- for now, you'll have to deal with packages separately.)

See module py_compile for details of the actual byte-compilation.

c 
   s@     d G|  Gd GH y   t i |   } Wn. ! t i j
 o " d G|  GH# g  } n X$ | i   % xΙ| d % rΌ} & t i i |  |  } ' | o ( t i i | |  } n
 * t } + t i i |  oη , | d  | d f \ } } - | d j o΄ . d G| Gd GH/ y 0 t i | t |  Wn 1 t j
 o 2 t  nc 3 4 t t i  t d  j o 5 t i }	 n 6 t i i }	 7 d	 G|	 d
 G8 t i GHn Xn ns 9 | d j oD | t i j o4 | t i j o$ t i i |  o t i i |  o = t | | d |  n qy Wd S(   sF  Byte-compile all modules in the given directory tree.

    Arguments (only dir is required):

    dir:       the directory to byte-compile
    maxlevels: maximum recursion level (default 10)
    ddir:      if given, purported directory name (this is the
               directory name that will show up in error messages)

    s   Listings   ...s
   Can't listi    i   s   .pys	   Compilings    s   Sorry:s   :i   N(   s   dirs   oss   listdirs   namess   errors   sorts   names   paths   joins   fullnames   ddirs   dfiles   Nones   isfiles   heads   tails
   py_compiles   compiles   KeyboardInterrupts   types   syss   exc_types   exc_type_names   __name__s	   exc_values	   maxlevelss   curdirs   pardirs   isdirs   islinks   compile_dir(
   s   dirs	   maxlevelss   ddirs   namess   names   fullnames   dfiles   heads   tails   exc_type_names4   /var/tmp/python-root/usr/lib/python1.5/compileall.pys   compile_dir s<   
 	
	Wi
   c    sd   ? G H xT t  i d H rD } I | p | t i j o |  o J d GHn L t | |  q Wd S(   s»   Byte-compile all module on sys.path.

    Arguments (all optional):

    skip_curdir: if true, skip current directory (default true)
    maxlevels:   max recursion level (default 0)

    i    s   Skipping current directoryN(   s   syss   paths   dirs   oss   curdirs   skip_curdirs   compile_dirs	   maxlevels(   s   skip_curdirs	   maxlevelss   dirs4   /var/tmp/python-root/usr/lib/python1.5/compileall.pys   compile_path? s    	"i   i    c  	   s©  N O P k  }  Q y& R |  i  t i d d  \ } } WnS S |  i j
 oA } T | GHU d GHV d GHW d GHX d GHY t i d  n XZ d } [ t	 } \ xS | d	 \ rF \ } } ] | d
 j o ] d	 } n ^ | d j o ^ | } n q¬ W_ | o6 ` t |  d j o a d GHb t i d  n n c yH d | o0 e x& | d	 e r } f t | | |  qUWn h t   Wn i t j
 o j d GHn Xd S(   s   Script main program.i   s   ld:s3   usage: compileall [-l] [-d destdir] [directory ...]s   -l: don't recurse downs7   -d destdir: purported directory name for error messagess'   if no arguments, -l sys.path is assumedi   i
   i    s   -ls   -ds1   -d destdir require exactly one directory arguments   
[interrupt]N(   s   getopts   syss   argvs   optss   argss   errors   msgs   exits	   maxlevelss   Nones   ddirs   os   as   lens   dirs   compile_dirs   compile_paths   KeyboardInterrupt(	   s   getopts   optss   argss   msgs	   maxlevelss   ddirs   os   as   dirs4   /var/tmp/python-root/usr/lib/python1.5/compileall.pys   mainN s>   	&		   

 	s   __main__N(	   s   __doc__s   oss   syss
   py_compiles   Nones   compile_dirs   compile_paths   mains   __name__(    s4   /var/tmp/python-root/usr/lib/python1.5/compileall.pys   ? s   			,