blob: d0c394f323cf608b2d74dd4f37f931ce2feae76f [file] [log] [blame]
Guido van Rossumf1176c41999-01-03 12:40:24 +00001/***********************************************************
2Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
3The Netherlands.
4
5 All Rights Reserved
6
7Permission to use, copy, modify, and distribute this software and its
8documentation for any purpose and without fee is hereby granted,
9provided that the above copyright notice appear in all copies and that
10both that copyright notice and this permission notice appear in
11supporting documentation, and that the names of Stichting Mathematisch
12Centrum or CWI or Corporation for National Research Initiatives or
13CNRI not be used in advertising or publicity pertaining to
14distribution of the software without specific, written prior
15permission.
16
17While CWI is the initial source for this software, a modified version
18is made available by the Corporation for National Research Initiatives
19(CNRI) at the Internet address ftp://ftp.python.org.
20
21STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
22REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
23MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
24CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
25DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
26PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
27TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
28PERFORMANCE OF THIS SOFTWARE.
29
30******************************************************************/
31
32/* Newfangled version identification scheme.
33
34 This scheme was added in Python 1.5.2b2; before that time, only PATCHLEVEL
35 was available. To test for presence of the scheme, test for
36 defined(PY_MAJOR_VERSION).
37
38 When the major or minor version changes, the VERSION variable in
39 configure.in must also be changed.
40
41 There is also (independent) API version information in modsupport.h.
42*/
43
44/* Values for PY_RELEASE_LEVEL */
45#define PY_RELEASE_LEVEL_ALPHA 0xA
46#define PY_RELEASE_LEVEL_BETA 0xB
47#define PY_RELEASE_LEVEL_FINAL 0xF /* Serial should be 0 here */
48
49/* Version parsed out into numeric values */
50#define PY_MAJOR_VERSION 1
51#define PY_MINOR_VERSION 5
52#define PY_MICRO_VERSION 2
53#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_BETA
54#define PY_RELEASE_SERIAL 2
55
56/* Version as a string */
57#define PY_VERSION "1.5.2b2"
58
59/* Historic */
60#define PATCHLEVEL "1.5.2b2"
61
62/* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.
63 Use this for numeric comparisons, e.g. #if PY_VERSION_HEX >= ... */
64#define PY_VERSION_HEX ((PY_MAJOR_VERSION << 24) | \
65 (PY_MINOR_VERSION << 16) | \
66 (PY_MICRO_VERSION << 8) | \
67 (PY_RELEASE_LEVEL << 4) | \
68 (PY_RELEASE_SERIAL << 0))