man update-python-modules (Administration système) - byte-compile python modules

NAME

update-python-modules - byte-compile python modules

SYNOPSIS

update-python-modules [options] [directory [...]]

DESCRIPTION

This manual page documents briefly the update-python-modules command.

update-python-modules is responsible for the byte-compilation of python modules. When used in byte-compilation mode, it will byte-compile modules in the directories given on the command line. When use in installation mode, it will byte-compile them once for each installed python version, and will make them available for all of them.

At each invocation, with or without arguments, update-python-modules will check for installed python versions, and will build or remove modules according to new or removed versions since the last time it was run.

OPTIONS

-h, --help
Show summary of options.
-v, --verbose
Detail all actions while they are performed.
-b, --bytecompile
Byte-compilation only mode. This is the default. In this mode, byte-compiled modules are put directly in the directories given on the command line.
-i, --install
Installation mode. In this mode, modules are byte-compiled for each python version, and put in separate directories. Files that don't end with .py are symlinked to their original place.
-c, --clean
Clean modules instead of installing them. Beware, this option behaves differently in byte-compilation and installation modes.
-a, --rebuild-all
Rebuild all modules that were installed using -b. This is necessary when the default python version was changed, for example. .TP -f, --force-rebuild-all Clean all modules and rebuild them, whether they were compiled using -b or -i.

FILES

/var/lib/python-support/pythonX.Y/
These directories contain the byte-compiled modules for version pythonX.Y, for modules installed using -i.
/var/lib/python-support/bytecompiled
/var/lib/python-support/installed
The lists of directories handled by update-python-modules.

SEE ALSO

AUTHOR

Josselin Mouette <joss@debian.org>.