Langue: en

Autres versions - même langue

Version: 315417 (ubuntu - 07/07/09)

Section: 1 (Commandes utilisateur)


pysupport-parseversion - parse python-support version information files


pysupport-parseversion [file.pyversions]


The pysupport-parseversion command takes exactly one argument, which must be a file containing version information suitable for python-support. Generally the file will be named debian/package.pyversions. If there is no argument, it will read standard input.

The format of the file is a comma-separated list of python versions or range of versions. An example is


which means all versions until 2.1, and versions between 2.4 and 2.6.


pysupport-parseversion displays the list of python versions supported by the system that are in the described ranges. In the earlier example, if versions 2.3 to 2.5 are supported by the system, it will return:

       2.4 2.5


-h, --help
Show summary of options.
Also display, on a second line, the minimal and maximal python version (even not supported) that the file describes.
-l, --long
Long format: prepend the versions with "python".
Parse a pycentral-type version strings instead.
Output the raw input string. This option is useful with --pycentral, to produce a suitable .versions file compatible with python-support.


pyversions(1), dh_pysupport(1), update-python-modules(8).


Josselin Mouette <>.