This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: add main to py_pycompile
Type: enhancement Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: fdrake Nosy List: doko, fdrake, nnorwitz, tim.peters
Priority: normal Keywords:

Created on 2002-07-30 20:34 by doko, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
pyc.patch nnorwitz, 2002-08-11 15:16 add __main__ to Lib/py_compile.py
Messages (4)
msg11761 - (view) Author: Matthias Klose (doko) * (Python committer) Date: 2002-07-30 20:34
[From http://bugs.debian.org/139971]

This is a request for a _script_ to compile a single
(or more) .py files instead of compiling a complete
directory. The proposal is to add a main to
py_pycompile.py which compiles all files given on the
command line.
msg11762 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2002-08-11 15:16
Logged In: YES 
user_id=33168

I don't know if this should really be done, but it's easy
enough to add.  Patch attached.  Tim, is this worthwhile or
should it be rejected?
msg11763 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2002-08-11 16:31
Logged In: YES 
user_id=31435

Reassigned to Fred as I've never used this script -- it 
sounds harmless enough that the real question may be 
whether Fred wants to document it <wink>.
msg11764 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2002-08-21 20:57
Logged In: YES 
user_id=3066

Checked in a modified version of the patch and updated
documentaiton as Lib/py_compile.py 1.23 and
Doc/lib/libpycompile.tex 1.3.
History
Date User Action Args
2022-04-10 16:05:32adminsetgithub: 36955
2002-07-30 20:34:58dokocreate