| 316 | |
| 317 | |
| 318 | def check_pythons(pythons_32bit, pythons_64bit): |
| 319 | check_32bit = True |
| 320 | check_64bit = True |
| 321 | if MAC: |
| 322 | check_32bit = False |
| 323 | elif LINUX: |
| 324 | if pythons_64bit: |
| 325 | check_32bit = False |
| 326 | elif pythons_32bit: |
| 327 | check_64bit = False |
| 328 | |
| 329 | pp = pprint.PrettyPrinter(indent=4) |
| 330 | if pythons_32bit: |
| 331 | print("[build_distrib.py] Pythons 32-bit found:") |
| 332 | pp.pprint(pythons_32bit) |
| 333 | if check_32bit and len(pythons_32bit) != len(SUPPORTED_PYTHON_VERSIONS) \ |
| 334 | and not ALLOW_PARTIAL: |
| 335 | print("[build_distrib.py] ERROR: Couldn't find all supported" |
| 336 | " python 32-bit installations. Found: {found}." |
| 337 | .format(found=len(pythons_32bit))) |
| 338 | sys.exit(1) |
| 339 | if pythons_64bit: |
| 340 | print("[build_distrib.py] Pythons 64-bit found:") |
| 341 | pp.pprint(pythons_64bit) |
| 342 | if check_64bit and len(pythons_64bit) != len(SUPPORTED_PYTHON_VERSIONS) \ |
| 343 | and not ALLOW_PARTIAL: |
| 344 | print("[build_distrib.py] ERROR: Couldn't find all supported" |
| 345 | " python 64-bit installations. Found: {found}." |
| 346 | .format(found=len(pythons_64bit))) |
| 347 | sys.exit(1) |
| 348 | |
| 349 | |
| 350 | def install_upgrade_requirements(pythons): |