build-common

Shared build system code (usually as a git submodule)
Log | Files | Refs | README | LICENSE

pyvercheck.py (353B)


      1 # This file is placed in the public domain.
      2 
      3 # Detect the Python version in a portable way.
      4 # 
      5 
      6 import sys
      7 
      8 sys.stderr.write("info: running with python " + str(sys.version_info) + "\n")
      9 
     10 if sys.version_info.major < 3 or sys.version_info.minor < 7:
     11     sys.stderr.write("error: python>=3.7 must be available as the python3 executable\n")
     12     sys.exit(1)