Skip to content

Commit c9a372b

Browse files
committed
various updates
doesn't quite work yet
1 parent 045ea1b commit c9a372b

File tree

9 files changed

+15
-13
lines changed

9 files changed

+15
-13
lines changed

src/common/cefpython_public_api.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
#include "../../build/build_cefpython/cefpython_py37_fixed.h"
4949
#elif PY_MINOR_VERSION == 8
5050
#include "../../build/build_cefpython/cefpython_py38_fixed.h"
51+
#elif PY_MINOR_VERSION == 9
52+
#include "../../build/build_cefpython/cefpython_py39_fixed.h"
5153
#endif // PY_MINOR_VERSION
5254
#endif // PY_MAJOR_VERSION
5355

src/compile_time_constants.pxi

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
# This file was generated by setup.py
2-
3-
# Type this command to ignore changes to this file:
4-
# git update-index --assume-unchanged src/compile_time_constants.pxi
5-
62
DEF UNAME_SYSNAME = "Windows"
73
DEF PY_MAJOR_VERSION = 3

tools/build.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,7 @@ def check_cython_version():
221221
print("[build.py] ERROR: Cython is not installed ({0} required)"
222222
.format(require_version))
223223
sys.exit(1)
224-
if version != require_version:
225-
print("[build.py] ERROR: Wrong Cython version: {0}. Required: {1}"
226-
.format(version, require_version))
227-
sys.exit(1)
224+
228225
print("[build.py] Cython version: {0}".format(version))
229226

230227

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)]
83+
SUPPORTED_PYTHON_VERSIONS = [(2, 7), (3, 4), (3, 5), (3, 6), (3, 7), (3, 8), (3, 9)]
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%.
@@ -378,7 +378,7 @@ def uninstall_cefpython3_packages(pythons):
378378
.format(python=python["executable"]))
379379
try:
380380
output = subprocess.check_output(command, shell=True)
381-
except subprocess.CalledProcessError, exc:
381+
except subprocess.CalledProcessError as exc:
382382
# pip show returns error code when package is not installed
383383
output = exc.output
384384
if not len(output.strip()):

tools/common.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,9 +475,11 @@ def get_msvs_for_python(vs_prefix=False):
475475
elif sys.version_info[:2] == (3, 6):
476476
return "VS2015" if vs_prefix else "2015"
477477
elif sys.version_info[:2] == (3, 7):
478-
return "VS2015" if vs_prefix else "2015"
478+
return "VS2019" if vs_prefix else "2019"
479479
elif sys.version_info[:2] == (3, 8):
480-
return "VS2015" if vs_prefix else "2015"
480+
return "VS2019" if vs_prefix else "2019"
481+
elif sys.version_info[:2] == (3, 9):
482+
return "VS2019" if vs_prefix else "2019"
481483
else:
482484
print("ERROR: This version of Python is not supported")
483485
sys.exit(1)

tools/cython_setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ def get_winsdk_lib():
154154
]
155155
elif ARCH64:
156156
winsdk_libs = [
157+
r"C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64",
157158
r"C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1\\Lib\\x64",
158159
r"C:\\Program Files\\Microsoft SDKs\\Windows\\v7.0\\Lib\\x64",
159160
# Visual Studio 2008 installation

tools/installer/cefpython3.__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,8 @@
6363
elif sys.version_info[:2] == (3, 8):
6464
# noinspection PyUnresolvedReferences
6565
from . import cefpython_py38 as cefpython
66+
elif sys.version_info[:2] == (3, 9):
67+
# noinspection PyUnresolvedReferences
68+
from . import cefpython_py39 as cefpython
6669
else:
6770
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
@@ -149,6 +149,7 @@ def main():
149149
"Programming Language :: Python :: 3.6",
150150
"Programming Language :: Python :: 3.7",
151151
"Programming Language :: Python :: 3.8",
152+
"Programming Language :: Python :: 3.9",
152153
"Topic :: Desktop Environment",
153154
"Topic :: Internet",
154155
"Topic :: Internet :: WWW/HTTP",

tools/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Cython == 0.29.21
1+
Cython == 3.0a6
22
docopt >= 0.6.2
33
setuptools
44
wheel

0 commit comments

Comments
 (0)