blob: 64131158ff35560966b8f07020c93396906ac426 [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
Guido van Rossumbd341fa1999-04-07 16:00:20 +000047#define PY_RELEASE_LEVEL_GAMMA 0xC
Guido van Rossumf1176c41999-01-03 12:40:24 +000048#define PY_RELEASE_LEVEL_FINAL 0xF /* Serial should be 0 here */
Guido van Rossum9e478591999-04-13 14:47:26 +000049 /* Higher for patch releases */
Guido van Rossumf1176c41999-01-03 12:40:24 +000050
51/* Version parsed out into numeric values */
52#define PY_MAJOR_VERSION 1
Guido van Rossum21a50bd2000-03-29 01:46:45 +000053#define PY_MINOR_VERSION 6
54#define PY_MICRO_VERSION 0
55#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_ALPHA
Guido van Rossum08df3ac2000-04-06 15:01:30 +000056#define PY_RELEASE_SERIAL 2
Guido van Rossumf1176c41999-01-03 12:40:24 +000057
58/* Version as a string */
Guido van Rossum08df3ac2000-04-06 15:01:30 +000059#define PY_VERSION "1.6a2"
Guido van Rossumf1176c41999-01-03 12:40:24 +000060
61/* Historic */
Guido van Rossum08df3ac2000-04-06 15:01:30 +000062#define PATCHLEVEL "1.6a2"
Guido van Rossumf1176c41999-01-03 12:40:24 +000063
64/* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.
65 Use this for numeric comparisons, e.g. #if PY_VERSION_HEX >= ... */
66#define PY_VERSION_HEX ((PY_MAJOR_VERSION << 24) | \
67 (PY_MINOR_VERSION << 16) | \
68 (PY_MICRO_VERSION << 8) | \
69 (PY_RELEASE_LEVEL << 4) | \
70 (PY_RELEASE_SERIAL << 0))