N
õłO5c       s4   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    sl   |  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   xs4   /var/tmp/python-root/usr/lib/python1.5/py_compile.pys   wr_long	 s
     c    s  k  } k } k } t |   } y | i |  i    } Wn, t	 j
 o  t
 | i |   d  } n X| i   } | i   | o | d d j o | d } n | i | | p |  d  }	 | o |  t o d p d } n t | d  }
 |
 i d  t |
 |  | i |	 |
  |
 i   |
 i d	 d	  |
 i t  |
 i   | i d
 j o< k } | i |  i d d  | 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   execs   cs   os   wbs       i    s   macs   Pyths   PYC s   TEXTN(   s   oss   marshals   __builtin__s   opens   files   fs   fstats   filenos	   timestamps   AttributeErrors   longs   stats   reads
   codestrings   closes   compiles   dfiles
   codeobjects   cfiles	   __debug__s   fcs   writes   wr_longs   dumps   flushs   seeks   MAGICs   names   macfss   FSSpecs   SetCreatorType(   s   files   cfiles   dfiles   oss   marshals   __builtin__s   fs	   timestamps
   codestrings
   codeobjects   fcs   macfss4   /var/tmp/python-root/usr/lib/python1.5/py_compile.pys   compile s4     


N(   s   __doc__s   imps	   get_magics   MAGICs   wr_longs   Nones   compile(    s4   /var/tmp/python-root/usr/lib/python1.5/py_compile.pys   ? s   	