Linux Commands Examples

A great documentation place for Linux commands

pyversions

print python version information

Synopsis

pyversions [-h] [-v] [<options>]


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
source
            
if [ $@ ] ; then
PYVERSIONS=$@
else
PYVERSIONS=`pyversions -iv`
fi
cd `dirname $0`
for ver in $PYVERSIONS; do
0
source
            
if [ $@ ] ; then
PYVERSIONS=$@
else
PYVERSIONS=`pyversions -iv`
fi
for ver in $PYVERSIONS; do
echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"

description

pyversions prints information about installed, supported python runtimes, the default runtime, and parses the information of the PythonVersion fields in the package control file.

options

-d, --default

Show the default python version.

-s, --supported

Show the supported python versions.

-r, --requested [<version string>|<control file>]

Reads the value of the XS-Python-Version field in the source section of a control file and shows all matching python versions. The parameter is interpreted as a version string, if it is not the name of a file. If the XS-Python-Version field is missing, get the version information from debian/pyversions. Without any parameter, it will fall back to list the supported Python versions after checking debian/control and debian/pyversions.

-i, --installed

Show the installed supported python versions.

-v, --version

Limit the output to the version numbers of the python versions.

-h, --help

Print a help text.


see also

Python policy.


author

Matthias Klose

How can this site be more helpful to YOU ?


give  feedback