blob: 1471a31f0a8d0ae263e551b9190ba8bce8f8ec35 [file] [log] [blame]
Guido van Rossumf1176c41999-01-03 12:40:24 +00001/***********************************************************
Guido van Rossumfd71b9e2000-06-30 23:50:40 +00002Copyright (c) 2000, BeOpen.com.
3Copyright (c) 1995-2000, Corporation for National Research Initiatives.
4Copyright (c) 1990-1995, Stichting Mathematisch Centrum.
5All rights reserved.
Guido van Rossumf1176c41999-01-03 12:40:24 +00006
Guido van Rossumfd71b9e2000-06-30 23:50:40 +00007See the file "Misc/COPYRIGHT" for information on usage and
8redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
Guido van Rossumf1176c41999-01-03 12:40:24 +00009******************************************************************/
10
11/* Newfangled version identification scheme.
12
13 This scheme was added in Python 1.5.2b2; before that time, only PATCHLEVEL
14 was available. To test for presence of the scheme, test for
15 defined(PY_MAJOR_VERSION).
16
17 When the major or minor version changes, the VERSION variable in
18 configure.in must also be changed.
19
20 There is also (independent) API version information in modsupport.h.
21*/
22
23/* Values for PY_RELEASE_LEVEL */
24#define PY_RELEASE_LEVEL_ALPHA 0xA
25#define PY_RELEASE_LEVEL_BETA 0xB
Guido van Rossumbd341fa1999-04-07 16:00:20 +000026#define PY_RELEASE_LEVEL_GAMMA 0xC
Guido van Rossumf1176c41999-01-03 12:40:24 +000027#define PY_RELEASE_LEVEL_FINAL 0xF /* Serial should be 0 here */
Guido van Rossum9e478591999-04-13 14:47:26 +000028 /* Higher for patch releases */
Guido van Rossumf1176c41999-01-03 12:40:24 +000029
30/* Version parsed out into numeric values */
Guido van Rossum632ea6e2000-06-29 22:29:24 +000031#define PY_MAJOR_VERSION 2
32#define PY_MINOR_VERSION 0
Guido van Rossum21a50bd2000-03-29 01:46:45 +000033#define PY_MICRO_VERSION 0
Guido van Rossum632ea6e2000-06-29 22:29:24 +000034#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_BETA
35#define PY_RELEASE_SERIAL 1
Guido van Rossumf1176c41999-01-03 12:40:24 +000036
37/* Version as a string */
Guido van Rossum632ea6e2000-06-29 22:29:24 +000038#define PY_VERSION "2.0b1"
Guido van Rossumf1176c41999-01-03 12:40:24 +000039
40/* Historic */
Guido van Rossum632ea6e2000-06-29 22:29:24 +000041#define PATCHLEVEL "2.0b1"
Guido van Rossumf1176c41999-01-03 12:40:24 +000042
43/* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.
44 Use this for numeric comparisons, e.g. #if PY_VERSION_HEX >= ... */
45#define PY_VERSION_HEX ((PY_MAJOR_VERSION << 24) | \
46 (PY_MINOR_VERSION << 16) | \
47 (PY_MICRO_VERSION << 8) | \
48 (PY_RELEASE_LEVEL << 4) | \
49 (PY_RELEASE_SERIAL << 0))