()
| 205 | |
| 206 | |
| 207 | def check_python_version(): |
| 208 | # Python 2 special cased because it's a major transition. In the |
| 209 | # future the major or minor versions can increment more quietly. |
| 210 | if sys.version_info.major == 2: |
| 211 | raise BuildInterruptingException(PY2_ERROR_TEXT) |
| 212 | |
| 213 | if ( |
| 214 | sys.version_info.major < MIN_PYTHON_MAJOR_VERSION or |
| 215 | sys.version_info.minor < MIN_PYTHON_MINOR_VERSION |
| 216 | ): |
| 217 | |
| 218 | raise BuildInterruptingException(PY_VERSION_ERROR_TEXT) |
| 219 | |
| 220 | |
| 221 | def print_recommendations(): |