jpayne@69: jpayne@69: /* Python version identification scheme. jpayne@69: jpayne@69: When the major or minor version changes, the VERSION variable in jpayne@69: configure.ac must also be changed. jpayne@69: jpayne@69: There is also (independent) API version information in modsupport.h. jpayne@69: */ jpayne@69: jpayne@69: /* Values for PY_RELEASE_LEVEL */ jpayne@69: #define PY_RELEASE_LEVEL_ALPHA 0xA jpayne@69: #define PY_RELEASE_LEVEL_BETA 0xB jpayne@69: #define PY_RELEASE_LEVEL_GAMMA 0xC /* For release candidates */ jpayne@69: #define PY_RELEASE_LEVEL_FINAL 0xF /* Serial should be 0 here */ jpayne@69: /* Higher for patch releases */ jpayne@69: jpayne@69: /* Version parsed out into numeric values */ jpayne@69: /*--start constants--*/ jpayne@69: #define PY_MAJOR_VERSION 3 jpayne@69: #define PY_MINOR_VERSION 8 jpayne@69: #define PY_MICRO_VERSION 1 jpayne@69: #define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_FINAL jpayne@69: #define PY_RELEASE_SERIAL 0 jpayne@69: jpayne@69: /* Version as a string */ jpayne@69: #define PY_VERSION "3.8.1" jpayne@69: /*--end constants--*/ jpayne@69: jpayne@69: /* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2. jpayne@69: Use this for numeric comparisons, e.g. #if PY_VERSION_HEX >= ... */ jpayne@69: #define PY_VERSION_HEX ((PY_MAJOR_VERSION << 24) | \ jpayne@69: (PY_MINOR_VERSION << 16) | \ jpayne@69: (PY_MICRO_VERSION << 8) | \ jpayne@69: (PY_RELEASE_LEVEL << 4) | \ jpayne@69: (PY_RELEASE_SERIAL << 0))