]> git.proxmox.com Git - mirror_edk2.git/blame - AppPkg/Applications/Python/Python-2.7.2/Tools/versioncheck/README
EmbeddedPkg: Extend NvVarStoreFormattedLib LIBRARY_CLASS
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Tools / versioncheck / README
CommitLineData
4710c53d 1This is versioncheck 1.0, a first stab at automatic checking of versions of\r
2Python extension packages installed on your system.\r
3\r
4The basic idea is that each package contains a _checkversion.py\r
5somewhere, probably at the root level of the package. In addition, each\r
6package maintainer makes a file available on the net, through ftp or\r
7http, which contains the version number of the most recent distribution\r
8and some readable text explaining the differences with previous\r
9versions, where to download the package, etc.\r
10\r
11The checkversions.py script walks through the installed Python tree (or\r
12through a tree of choice), and runs each _checkversion.py script. These\r
13scripts retrieve the current-version file over the net, compares version\r
14numbers and tells the user about new versions of packages available.\r
15\r
16A boilerplate for the _checkversion.py file can be found here. Replace\r
17package name, version and the URL of the version-check file and put it in\r
18your distribution. In stead of a single URL you can also specify a list\r
19of URLs. Each of these will be checked in order until one is available,\r
20this is handy for distributions that live in multiple places. Put the\r
21primary distribution site (the most up-to-date site) before others.\r
22The script is executed with execfile(), not imported, and the current\r
23directory is the checkversion directory, so be careful with globals,\r
24importing, etc.\r
25\r
26The version-check file consists of an rfc822-style header followed by\r
27plaintext. The only header field checked currently is\r
28'Current-Version:', which should contain te current version and is\r
29matched against the string contained in the _checkversion.py script.\r
30The rest of the file is human-readable text and presented to the user if\r
31there is a version mismatch. It should contain at the very least a URL\r
32of either the current distribution or a webpage describing it.\r
33\r
34Pycheckversion.py is the module that does the actual checking of versions.\r
35It should be fine where it is, it is imported by checkversion before anything\r
36else is done, but if imports fail you may want to move it to somewhere\r
37along sys.path.\r
38\r
39 Jack Jansen, CWI, 23-Dec-97.\r
40 <jack@cwi.nl>\r
41 \r