annotate Tools/versioncheck/_checkversion.py @ 27998:e27f58a50737 legacy-trunk

SF bug #690377: Dud footnote reference in distutils docs
author Raymond Hettinger <python@rcn.com>
date Fri, 21 Feb 2003 02:47:09 +0000
parents 6b6ef909238e
children 897afcacba00
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6935
6b6ef909238e Adding Jack Jansen's version checking utility.
Guido van Rossum <guido@python.org>
parents:
diff changeset
1 """This file (which is sourced, not imported) checks the version of the
6b6ef909238e Adding Jack Jansen's version checking utility.
Guido van Rossum <guido@python.org>
parents:
diff changeset
2 "versioncheck" package. It is also an example of how to format your own
6b6ef909238e Adding Jack Jansen's version checking utility.
Guido van Rossum <guido@python.org>
parents:
diff changeset
3 _checkversion.py file"""
6b6ef909238e Adding Jack Jansen's version checking utility.
Guido van Rossum <guido@python.org>
parents:
diff changeset
4
6b6ef909238e Adding Jack Jansen's version checking utility.
Guido van Rossum <guido@python.org>
parents:
diff changeset
5 import pyversioncheck
6b6ef909238e Adding Jack Jansen's version checking utility.
Guido van Rossum <guido@python.org>
parents:
diff changeset
6
6b6ef909238e Adding Jack Jansen's version checking utility.
Guido van Rossum <guido@python.org>
parents:
diff changeset
7 _PACKAGE="versioncheck"
6b6ef909238e Adding Jack Jansen's version checking utility.
Guido van Rossum <guido@python.org>
parents:
diff changeset
8 _VERSION="1.0"
6b6ef909238e Adding Jack Jansen's version checking utility.
Guido van Rossum <guido@python.org>
parents:
diff changeset
9 _URL="http://www.cwi.nl/~jack/versioncheck/curversion.txt"
6b6ef909238e Adding Jack Jansen's version checking utility.
Guido van Rossum <guido@python.org>
parents:
diff changeset
10
6b6ef909238e Adding Jack Jansen's version checking utility.
Guido van Rossum <guido@python.org>
parents:
diff changeset
11 try:
6b6ef909238e Adding Jack Jansen's version checking utility.
Guido van Rossum <guido@python.org>
parents:
diff changeset
12 _myverbose=VERBOSE
6b6ef909238e Adding Jack Jansen's version checking utility.
Guido van Rossum <guido@python.org>
parents:
diff changeset
13 except NameError:
6b6ef909238e Adding Jack Jansen's version checking utility.
Guido van Rossum <guido@python.org>
parents:
diff changeset
14 _myverbose=1
6b6ef909238e Adding Jack Jansen's version checking utility.
Guido van Rossum <guido@python.org>
parents:
diff changeset
15
6b6ef909238e Adding Jack Jansen's version checking utility.
Guido van Rossum <guido@python.org>
parents:
diff changeset
16 pyversioncheck.versioncheck(_PACKAGE, _URL, _VERSION, verbose=_myverbose)