build scripts: autoswitch to release Python 3.15

This commit is contained in:
Andrej730
2026-09-15 10:18:25 +05:00
parent 5528d5e5a5
commit 0607a7caa1
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -1380,7 +1380,8 @@ if "OpenCOLLADA" in targets:
def python_consider_rc(python_version: str) -> str: def python_consider_rc(python_version: str) -> str:
# TODO: remove after Python 3.15 release. # TODO: remove after Python 3.15 release.
if python_version == "3.15.0": # Python 3.15.0 is released on 2026-10-01, before that only rc builds are available.
if python_version == "3.15.0" and date.today() < date(2026, 10, 2):
python_version += "rc2" python_version += "rc2"
return python_version return python_version
+3 -1
View File
@@ -21,6 +21,7 @@
# # # #
############################################################################### ###############################################################################
# #
import datetime
import os import os
import re import re
import shutil import shutil
@@ -917,7 +918,8 @@ def install_qt6(
def python_consider_rc(python_version: str) -> str: def python_consider_rc(python_version: str) -> str:
# TODO: remove after Python 3.15 release. # TODO: remove after Python 3.15 release.
if python_version == "3.15.0": # Python 3.15.0 is released on 2026-10-01, before that only rc builds are available.
if python_version == "3.15.0" and datetime.date.today() < datetime.date(2026, 10, 2):
python_version += "-rc2" python_version += "-rc2"
return python_version return python_version