Chris@87
|
1
|
Chris@87
|
2 /* Newfangled version identification scheme.
|
Chris@87
|
3
|
Chris@87
|
4 This scheme was added in Python 1.5.2b2; before that time, only PATCHLEVEL
|
Chris@87
|
5 was available. To test for presence of the scheme, test for
|
Chris@87
|
6 defined(PY_MAJOR_VERSION).
|
Chris@87
|
7
|
Chris@87
|
8 When the major or minor version changes, the VERSION variable in
|
Chris@87
|
9 configure.ac must also be changed.
|
Chris@87
|
10
|
Chris@87
|
11 There is also (independent) API version information in modsupport.h.
|
Chris@87
|
12 */
|
Chris@87
|
13
|
Chris@87
|
14 /* Values for PY_RELEASE_LEVEL */
|
Chris@87
|
15 #define PY_RELEASE_LEVEL_ALPHA 0xA
|
Chris@87
|
16 #define PY_RELEASE_LEVEL_BETA 0xB
|
Chris@87
|
17 #define PY_RELEASE_LEVEL_GAMMA 0xC /* For release candidates */
|
Chris@87
|
18 #define PY_RELEASE_LEVEL_FINAL 0xF /* Serial should be 0 here */
|
Chris@87
|
19 /* Higher for patch releases */
|
Chris@87
|
20
|
Chris@87
|
21 /* Version parsed out into numeric values */
|
Chris@87
|
22 /*--start constants--*/
|
Chris@87
|
23 #define PY_MAJOR_VERSION 2
|
Chris@87
|
24 #define PY_MINOR_VERSION 7
|
Chris@87
|
25 #define PY_MICRO_VERSION 9
|
Chris@87
|
26 #define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_FINAL
|
Chris@87
|
27 #define PY_RELEASE_SERIAL 0
|
Chris@87
|
28
|
Chris@87
|
29 /* Version as a string */
|
Chris@87
|
30 #define PY_VERSION "2.7.9+"
|
Chris@87
|
31 /*--end constants--*/
|
Chris@87
|
32
|
Chris@87
|
33 /* Subversion Revision number of this file (not of the repository). Empty
|
Chris@87
|
34 since Mercurial migration. */
|
Chris@87
|
35 #define PY_PATCHLEVEL_REVISION ""
|
Chris@87
|
36
|
Chris@87
|
37 /* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.
|
Chris@87
|
38 Use this for numeric comparisons, e.g. #if PY_VERSION_HEX >= ... */
|
Chris@87
|
39 #define PY_VERSION_HEX ((PY_MAJOR_VERSION << 24) | \
|
Chris@87
|
40 (PY_MINOR_VERSION << 16) | \
|
Chris@87
|
41 (PY_MICRO_VERSION << 8) | \
|
Chris@87
|
42 (PY_RELEASE_LEVEL << 4) | \
|
Chris@87
|
43 (PY_RELEASE_SERIAL << 0))
|