summarylogtreecommitdiffstats
path: root/python-cef-version.patch
blob: f33026b168cbd288c2db1817f2e377cae3b9fd49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
diff --git a/src/common/cefpython_public_api.h b/src/common/cefpython_public_api.h
index c796388..3b3d9d0 100644
--- a/src/common/cefpython_public_api.h
+++ b/src/common/cefpython_public_api.h
@@ -50,6 +50,8 @@
 #include "../../build/build_cefpython/cefpython_py38_fixed.h"
 #elif PY_MINOR_VERSION == 9
 #include "../../build/build_cefpython/cefpython_py39_fixed.h"
+#elif PY_MINOR_VERSION == 11
+#include "../../build/build_cefpython/cefpython_py311_fixed.h"
 #endif // PY_MINOR_VERSION
 #endif // PY_MAJOR_VERSION
 
diff --git a/tools/common.py b/tools/common.py
index 303ccb8..694ba9f 100644
--- a/tools/common.py
+++ b/tools/common.py
@@ -481,6 +481,8 @@ def get_msvs_for_python(vs_prefix=False):
         return "VS2015" if vs_prefix else "2015"
     elif sys.version_info[:2] == (3, 9):
         return "VS2015" if vs_prefix else "2015"
+    elif sys.version_info[:2] == (3, 11):
+        return "VS2015" if vs_prefix else "2015"
     else:
         print("ERROR: This version of Python is not supported")
         sys.exit(1)
diff --git a/tools/installer/cefpython3.__init__.py b/tools/installer/cefpython3.__init__.py
index 624a26e..28fffa2 100644
--- a/tools/installer/cefpython3.__init__.py
+++ b/tools/installer/cefpython3.__init__.py
@@ -70,5 +70,8 @@ elif sys.version_info[:2] == (3, 8):
 elif sys.version_info[:2] == (3, 9):
     # noinspection PyUnresolvedReferences
     from . import cefpython_py39 as cefpython
+elif sys.version_info[:2] == (3, 11):
+    # noinspection PyUnresolvedReferences
+    from . import cefpython_py311 as cefpython
 else:
     raise Exception("Python version not supported: " + sys.version)
diff --git a/tools/installer/cefpython3.setup.py b/tools/installer/cefpython3.setup.py
index d14ee2c..852b095 100644
--- a/tools/installer/cefpython3.setup.py
+++ b/tools/installer/cefpython3.setup.py
@@ -150,6 +150,7 @@ def main():
             "Programming Language :: Python :: 3.7",
             "Programming Language :: Python :: 3.8",
             "Programming Language :: Python :: 3.9",
+            "Programming Language :: Python :: 3.11",
             "Topic :: Desktop Environment",
             "Topic :: Internet",
             "Topic :: Internet :: WWW/HTTP",
diff --git a/tools/make_installer.py b/tools/make_installer.py
index 012e665..ad0b4b6 100644
--- a/tools/make_installer.py
+++ b/tools/make_installer.py
@@ -365,12 +365,13 @@ def copy_cpp_extension_dependencies_issue359(pkg_dir):
     # in the package. Thus if included, msvcpxx.dll dependency is
     # required as well.
 
-    # Python 3.5 / 3.6 / 3.7 / 3.8 / 3.9
+    # Python 3.5 / 3.6 / 3.7 / 3.8 / 3.9 / 3.11
     if os.path.exists(os.path.join(pkg_dir, "cefpython_py35.pyd")) \
             or os.path.exists(os.path.join(pkg_dir, "cefpython_py36.pyd")) \
             or os.path.exists(os.path.join(pkg_dir, "cefpython_py37.pyd")) \
             or os.path.exists(os.path.join(pkg_dir, "cefpython_py38.pyd")) \
-            or os.path.exists(os.path.join(pkg_dir, "cefpython_py39.pyd")):
+            or os.path.exists(os.path.join(pkg_dir, "cefpython_py39.pyd")) \
+            or os.path.exists(os.path.join(pkg_dir, "cefpython_py311.pyd")):
         search_paths = [
             # This is where Microsoft Visual C++ 2015 Update 3 installs
             # (14.00.24212).