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
35f64c12
Commit
35f64c12
authored
Jul 29, 2006
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add example
parent
53912160
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
Doc/lib/libcompileall.tex
Doc/lib/libcompileall.tex
+13
-0
No files found.
Doc/lib/libcompileall.tex
View file @
35f64c12
...
...
@@ -44,6 +44,19 @@ compile Python sources in directories named on the command line or in
\function
{
compile
_
dir()
}
function.
\end{funcdesc}
To force a recompile of all the
\file
{
.py
}
files in the
\file
{
Lib/
}
subdirectory and all its subdirectories:
\begin{verbatim}
import compileall
compileall.compile
_
dir('Lib/', force=True)
# Perform same compilation, excluding files in .svn directories.
import re
compileall.compile
_
dir('Lib/', rx=re.compile('/[.]svn'), force=True)
\end{verbatim}
\begin{seealso}
\seemodule
[pycompile]
{
py
_
compile
}{
Byte-compile a single source file.
}
...
...
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