Skip to main content

Module version

Module version 

Source
Expand description

Version info constants.

Most of the constants are auto calculated at compile time. The main exception is the target CPython version. This is defined and updated in build.rs.

Constantsยง

GIT_IDENTIFIER
GIT_REVISION
MAJOR
MAJOR_IMPL
MICRO
MICRO_IMPL
MINOR
MINOR_IMPL
PYC_MAGIC_NUMBER
PYC_MAGIC_NUMBER_BYTES
Magic number as little-endian bytes for .pyc files
PYC_MAGIC_NUMBER_TOKEN
RELEASELEVEL
RELEASELEVEL_IMPL
RELEASELEVEL_N
RELEASELEVEL_N_IMPL
RUSTPYTHON_BUILD_INFO
RUSTPYTHON_VERSION
SERIAL
SERIAL_IMPL
VERSION_HEX
VERSION_HEX_IMPL