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.
This commit is contained in:
Daniele Varrazzo 2019-10-19 14:35:05 +02:00
parent 4e13acdc88
commit ade98c1359
2 changed files with 9 additions and 2 deletions

View File

@ -22,6 +22,11 @@ environment:
- {PY_VER: "34", PY_ARCH: "32"} - {PY_VER: "34", PY_ARCH: "32"}
- {PY_VER: "34", PY_ARCH: "64"} - {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" OPENSSL_VERSION: "1_1_1b"
POSTGRES_VERSION: "11_2" POSTGRES_VERSION: "11_2"

View File

@ -698,7 +698,7 @@ class Options:
def py_ver(self): def py_ver(self):
"""The Python version to build as 2 digits string.""" """The Python version to build as 2 digits string."""
rv = os.environ['PY_VER'] 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 return rv
@property @property
@ -773,9 +773,10 @@ class Options:
@property @property
def vs_ver(self): def vs_ver(self):
# https://wiki.python.org/moin/WindowsCompilers
# Py 2.7 = VS Ver. 9.0 (VS 2008) # Py 2.7 = VS Ver. 9.0 (VS 2008)
# Py 3.3, 3.4 = VS Ver. 10.0 (VS 2010) # 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 = { vsvers = {
'27': '9.0', '27': '9.0',
'33': '10.0', '33': '10.0',
@ -783,6 +784,7 @@ class Options:
'35': '14.0', '35': '14.0',
'36': '14.0', '36': '14.0',
'37': '14.0', '37': '14.0',
'38': '14.0',
} }
return vsvers[self.py_ver] return vsvers[self.py_ver]