Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e72e1e02
Commit
e72e1e02
authored
Aug 11, 1998
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Documentation for the compileall module.
parent
4756bb3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
Doc/lib/libcompileall.tex
Doc/lib/libcompileall.tex
+41
-0
No files found.
Doc/lib/libcompileall.tex
0 → 100644
View file @
e72e1e02
% Documentation based on module docstrings, by Fred L. Drake, Jr.
% <fdrake@acm.org>
\section
{
\module
{
compileall
}
---
Byte-compile Python libraries.
}
\declaremodule
{
standard
}{
compileall
}
\modulesynopsis
{
Tools for byte-compiling all Python source files in a
directory tree.
}
This module provides some utility functions to support installing
Python libraries. These functions compile Python source files in a
directory tree, allowing users without permission to write to the
libraries to take advantage of cached byte-code files.
The source file for this module may also be used as a script to
compile Python sources in directories named on the command line or in
\code
{
sys.path
}
.
\begin{funcdesc}
{
compile
_
dir
}{
dir
\optional
{
, maxlevels
\optional
{
, ddir
}}}
Recursively descend the directory tree named by
\var
{
dir
}
, compiling
all
\file
{
.py
}
files along the way. The
\var
{
maxlevels
}
parameter
is used to limit the depth of the recursion; it defaults to
\code
{
10
}
. If
\var
{
ddir
}
is given, it is used as the base path from
which the filenames used in error messages will be generated.
\end{funcdesc}
\begin{funcdesc}
{
compile
_
path
}{
\optional
{
skip
_
curdir
\optional
{
, maxlevels
}}}
Byte-compile all the
\file
{
.py
}
files found along
\code
{
sys.path
}
.
If
\var
{
skip
_
curdir
}
is true (the default), the current directory is
not included in the search. The
\var
{
maxlevels
}
parameter defaults
to
\code
{
0
}
and is passed to the
\function
{
compile
_
dir()
}
function.
\end{funcdesc}
\begin{seealso}
\seemodule
[pycompile]
{
py
_
compile
}{
Byte-compile a single source file.
}
\end{seealso}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment