Skip to content

Commit 7ea958a

Browse files
committed
add support for python 3.14
1 parent 9240c8e commit 7ea958a

5 files changed

Lines changed: 9 additions & 2 deletions

File tree

src/common/cefpython_public_api.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@
5959
#include "../../build/build_cefpython/cefpython_py312_fixed.h"
6060
#elif PY_MINOR_VERSION == 13
6161
#include "../../build/build_cefpython/cefpython_py313_fixed.h"
62+
#elif PY_MINOR_VERSION == 14
63+
#include "../../build/build_cefpython/cefpython_py314_fixed.h"
6264
#endif // PY_MINOR_VERSION
6365
#endif // PY_MAJOR_VERSION
6466

tools/build_distrib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
ALLOW_PARTIAL = False
8181

8282
# Python versions
83-
SUPPORTED_PYTHON_VERSIONS = [(2, 7), (3, 4), (3, 5), (3, 6), (3, 7), (3, 8), (3, 9), (3.10), (3.11), (3.12), (3.13)]
83+
SUPPORTED_PYTHON_VERSIONS = [(2, 7), (3, 4), (3, 5), (3, 6), (3, 7), (3, 8), (3, 9), (3.10), (3.11), (3.12), (3.13), (3.14)]
8484

8585
# Python search paths. It will use first Python found for specific version.
8686
# Supports replacement of one environment variable in path eg.: %ENV_KEY%.
@@ -615,7 +615,7 @@ def check_cpp_extension_dependencies_issue359(setup_dir, all_pythons):
615615
return
616616
checked_any = False
617617
for python in all_pythons:
618-
if python["version2"] in ((3, 5), (3, 6), (3, 7), (3, 8), (3, 9), (3, 10), (3, 11), (3.12), (3.13)):
618+
if python["version2"] in ((3, 5), (3, 6), (3, 7), (3, 8), (3, 9), (3, 10), (3, 11), (3.12), (3.13), (3.14)):
619619
checked_any = True
620620
if not os.path.exists(os.path.join(setup_dir, "cefpython3",
621621
"msvcp140.dll")):

tools/common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,8 @@ def get_msvs_for_python(vs_prefix=False):
496496
return "VS2022" if vs_prefix else "2022"
497497
elif sys.version_info[:2] == (3, 13):
498498
return "VS2022" if vs_prefix else "2022"
499+
elif sys.version_info[:2] == (3, 14):
500+
return "VS2022" if vs_prefix else "2022"
499501
else:
500502
print("ERROR: This version of Python is not supported")
501503
sys.exit(1)

tools/installer/cefpython3.__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,7 @@
7171
from . import cefpython_py312 as cefpython
7272
elif sys.version_info[:2] == (3, 13):
7373
from . import cefpython_py313 as cefpython
74+
elif sys.version_info[:2] == (3, 14):
75+
from . import cefpython_py314 as cefpython
7476
else:
7577
raise Exception("Python version not supported: " + sys.version)

tools/installer/cefpython3.setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ def main():
156156
"Programming Language :: Python :: 3.11",
157157
"Programming Language :: Python :: 3.12",
158158
"Programming Language :: Python :: 3.13",
159+
"Programming Language :: Python :: 3.14",
159160
"Topic :: Desktop Environment",
160161
"Topic :: Internet",
161162
"Topic :: Internet :: WWW/HTTP",

0 commit comments

Comments
 (0)