File: pycompile.rst

package info (click to toggle)
python-defaults 2.7.16-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 856 kB
  • sloc: python: 2,342; makefile: 564; sh: 203; perl: 7
file content (52 lines) | stat: -rw-r--r-- 1,435 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
==========
 pycompile
==========

--------------------------------
byte compile Python source files
--------------------------------

:Manual section: 1
:Author: Piotr O┼╝arowski, 2012-2013

SYNOPSIS
========
  pycompile [-V [X.Y][-][A.B]] DIR_OR_FILE [-X REGEXPR]

  pycompile -p PACKAGE

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

OPTIONS
=======
--version	show program's version number and exit

-h, --help	show this help message and exit

-f, --force	force rebuild of byte-code files even if timestamps are up-to-date

-O		byte-compile to .pyo files

-q, --quiet	be quiet

-v, --verbose	turn verbose mode on

-p PACKAGE, --package=PACKAGE	specify Debian package name whose files should
  be bytecompiled (combining with DIR_OR_FILE will additionally limit list of
  files)

-V VRANGE	force private modules to be bytecompiled with Python
  version from given range, regardless of the default Python version in the
  system. If there are no other options, bytecompile all public modules
  for installed Python versions that match given range. VERSION_RANGE examples:

   * ``2.5``	version 2.5 only
   * ``2.5-``	version 2.5 or newer
   * ``2.5-2.7``	version 2.5 or 2.6
   * ``-3.0``	all supported 2.X versions

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