From ade98c13595cd5641a198a7fbd6865289d15f30b Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Sat, 19 Oct 2019 14:35:05 +0200 Subject: [PATCH] Added Py 3.8 support to appveyor build VS 14 is the one to use: https://wiki.python.org/moin/WindowsCompilers Note that appveyor doesn't have Py 3.8 yet though. --- .appveyor.yml | 5 +++++ scripts/appveyor.py | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 13d4e251..9371a957 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -22,6 +22,11 @@ environment: - {PY_VER: "34", PY_ARCH: "32"} - {PY_VER: "34", PY_ARCH: "64"} + # not supported by appveyor as of 2019-10-19 + # https://www.appveyor.com/docs/windows-images-software/#python + # - {PY_VER: "38", PY_ARCH: "32"} + # - {PY_VER: "38", PY_ARCH: "64"} + OPENSSL_VERSION: "1_1_1b" POSTGRES_VERSION: "11_2" diff --git a/scripts/appveyor.py b/scripts/appveyor.py index f5d8c46b..0b0de16f 100755 --- a/scripts/appveyor.py +++ b/scripts/appveyor.py @@ -698,7 +698,7 @@ class Options: def py_ver(self): """The Python version to build as 2 digits string.""" rv = os.environ['PY_VER'] - assert rv in ('27', '34', '35', '36', '37'), rv + assert rv in ('27', '34', '35', '36', '37', '38'), rv return rv @property @@ -773,9 +773,10 @@ class Options: @property def vs_ver(self): + # https://wiki.python.org/moin/WindowsCompilers # Py 2.7 = VS Ver. 9.0 (VS 2008) # Py 3.3, 3.4 = VS Ver. 10.0 (VS 2010) - # Py 3.5, 3.6, 3.7 = VS Ver. 14.0 (VS 2015) + # Py 3.5--3.8 = VS Ver. 14.0 (VS 2015) vsvers = { '27': '9.0', '33': '10.0', @@ -783,6 +784,7 @@ class Options: '35': '14.0', '36': '14.0', '37': '14.0', + '38': '14.0', } return vsvers[self.py_ver]