™N
éu¦9c       sF     d  Z    k Z  e i ƒ  Z 	 d „  Z  e e d „ Z d S(   s{   Routine to "compile" a .py file to a .pyc (or .pyo) file.

This module has intimate knowledge of the format of .pyc files.
c    s~   	 
  |  i t | d @ƒ ƒ  |  i t | d ?d @ƒ ƒ  |  i t | d ?d @ƒ ƒ  |  i t | d ?d @ƒ ƒ d S(   s>   Internal; write a 32-bit int to a file in little-endian order.iÿ   i   i   i   N(   s   fs   writes   chrs   x(   s   fs   xs;   /var/tmp/python/python-root/usr/lib/python1.5/py_compile.pys   wr_long	 s
   c    sx   + , k  } k } k } - t |  ƒ } . y& / t | i | i ƒ  ƒ d ƒ } Wn2 0 t
 j
 o# 1 t | i |  ƒ d ƒ } n X2 | i ƒ  } 3 | i ƒ  4 | o | d d j o 5 | d } n 6 y# 7 | i | | p |  d ƒ }	 Wn’ 8 t j
 oƒ }
 9 k } k } k } : | i t |
 ƒ } ; xC | d ; r6 } < | i i | i | d = d | p |  ƒ ƒ qCW> d Sn X? | o @ |  t o d	 p d
 } n A t | d ƒ } B | i d ƒ C t  | | ƒ D | i! |	 | ƒ E | i" ƒ  F | i# d d ƒ G | i t$ ƒ H | i ƒ  I | i% d j o) J k& } K | i' | ƒ i( d d ƒ n d S(   sˆ  Byte-compile one Python source file to Python bytecode.

    Arguments:

    file:  source filename
    cfile: target filename; defaults to source with 'c' or 'o' appended
           ('c' normally, 'o' in optimizing mode, giving .pyc or .pyo)
    dfile: purported filename; defaults to source (this is the filename
           that will show up in error messages)

    Note that it isn't necessary to byte-compile Python modules for
    execution efficiency -- Python itself byte-compiles a module when
    it is loaded, and if it can, writes out the bytecode to the
    corresponding .pyc (or .pyo) file.

    However, if a Python installation is shared between users, it is a
    good idea to byte-compile all modules upon installation, since
    other users may not be able to write in the source directories,
    and thus they won't be able to write the .pyc/.pyo file, and then
    they would be byte-compiling every module each time it is loaded.
    This can slow down program start-up considerably.

    See compileall.py for a script/module that uses this module to
    byte-compile all installed files (or all files in selected
    directories).

    i   i   s   
s   execi    s   File "<string>"s	   File "%s"Ns   cs   os   wbs       s   macs   Pyths   PYC ()   s   oss   marshals   __builtin__s   opens   files   fs   longs   fstats   filenos	   timestamps   AttributeErrors   stats   reads
   codestrings   closes   compiles   dfiles
   codeobjects   SyntaxErrors   details	   tracebacks   syss   strings   format_exception_onlys   liness   lines   stderrs   writes   replaces   cfiles	   __debug__s   fcs   wr_longs   dumps   flushs   seeks   MAGICs   names   macfss   FSSpecs   SetCreatorType(   s   files   cfiles   dfiles   oss   marshals   __builtin__s   fs	   timestamps
   codestrings
   codeobjects   details	   tracebacks   syss   strings   liness   lines   fcs   macfss;   /var/tmp/python/python-root/usr/lib/python1.5/py_compile.pys   compile sD   &!# 		N(   s   __doc__s   imps	   get_magics   MAGICs   wr_longs   Nones   compile(    s;   /var/tmp/python/python-root/usr/lib/python1.5/py_compile.pys   ? s   	