Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:06:49

0001 
0002 /* Python version identification scheme.
0003 
0004    When the major or minor version changes, the VERSION variable in
0005    configure.ac must also be changed.
0006 
0007    There is also (independent) API version information in modsupport.h.
0008 */
0009 
0010 /* Values for PY_RELEASE_LEVEL */
0011 #define PY_RELEASE_LEVEL_ALPHA  0xA
0012 #define PY_RELEASE_LEVEL_BETA   0xB
0013 #define PY_RELEASE_LEVEL_GAMMA  0xC     /* For release candidates */
0014 #define PY_RELEASE_LEVEL_FINAL  0xF     /* Serial should be 0 here */
0015                                         /* Higher for patch releases */
0016 
0017 /* Version parsed out into numeric values */
0018 /*--start constants--*/
0019 #define PY_MAJOR_VERSION        3
0020 #define PY_MINOR_VERSION        12
0021 #define PY_MICRO_VERSION        5
0022 #define PY_RELEASE_LEVEL        PY_RELEASE_LEVEL_FINAL
0023 #define PY_RELEASE_SERIAL       0
0024 
0025 /* Version as a string */
0026 #define PY_VERSION              "3.12.5"
0027 /*--end constants--*/
0028 
0029 /* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.
0030    Use this for numeric comparisons, e.g. #if PY_VERSION_HEX >= ... */
0031 #define PY_VERSION_HEX ((PY_MAJOR_VERSION << 24) | \
0032                         (PY_MINOR_VERSION << 16) | \
0033                         (PY_MICRO_VERSION <<  8) | \
0034                         (PY_RELEASE_LEVEL <<  4) | \
0035                         (PY_RELEASE_SERIAL << 0))