[issue8140] extend compileall to compile single files

Matthias Klose report at bugs.python.org
Sun Mar 14 20:41:33 CET 2010


New submission from Matthias Klose <doko at debian.org>:

when byte-compiling files in a deb/rpm package distributed e.g. in a Linux distribution, it is sometimes wanted to only touch the files found in the deb/rpm, which can be a subset of the files in a directory. the attached patch now lets compileall accept files as arguments as well and adds the recognition of @<filelist> and @- to expand the arguments with the contents of the file (@- meaning to read for stdin). Is this ok for 2.7, and a port of that to 3.2?

----------
components: Library (Lib)
files: compileall.py.diff
keywords: patch
messages: 101064
nosy: doko
severity: normal
status: open
title: extend compileall to compile single files
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file16548/compileall.py.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8140>
_______________________________________


More information about the Python-bugs-list mailing list