mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
build scripts: autoswitch to release Python 3.15
This commit is contained in:
+2
-1
@@ -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
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user