DOKK / manpages / debian 12 / python3-minimal / py3compile.1.en
PY3COMPILE(1) General Commands Manual PY3COMPILE(1)

py3compile - byte compile Python 3 source files

py3compile [-V [X.Y][-][A.B]] DIR_OR_FILE [-X REGEXPR]

pycompile -p PACKAGE



Wrapper around Python standard library's py_compile module to byte-compile Python 3 files.

show program's version number and exit
show this help message and exit
force rebuild of byte-code files even if timestamps are up-to-date
byte-compile to .pyo files
be quiet
turn verbose mode on
specify Debian package name whose files should be bytecompiled
force private modules to be bytecompiled with Python 3 version from given range, regardless of the default Python 3 version in the system. If there are no other options, bytecompile all public modules for installed Python 3 versions that match given range. VERSION_RANGE examples:
  • 3.1 version 3.1 only,
  • 3.1- version 3.1 or newer,
  • 3.1-3.3 version 3.1 or 3.2,
  • -4.0 all supported 3.X versions



exclude items that match given REGEXPR. You may use this option multiple times to build up a list of things to exclude

Piotr Ożarowski, 2012-2013