@@ -12,24 +12,13 @@ environment:
12
12
secure : 2m0jy6JD/R9RExIosOT6YA==
13
13
PYPI_PASS :
14
14
secure : x+dF0A8BZUf2IrPNRN1O0w==
15
- matrix :
16
- - PYTHON : " C:\\ Python36-x64"
17
- PYTHON_VERSION : " 3.6"
18
- PYTHON_ARCH : " 64"
19
- MSVC : " Visual Studio 14 Win64"
20
- ARCH : x64_86
21
-
22
- - PYTHON : " C:\\ Python37-x64"
23
- PYTHON_VERSION : " 3.7"
24
- PYTHON_ARCH : " 64"
25
- MSVC : " Visual Studio 14 Win64"
26
- ARCH : x64_86
27
-
28
- - PYTHON : " C:\\ Python38-x64"
29
- PYTHON_VERSION : " 3.8"
30
- PYTHON_ARCH : " 64"
31
- MSVC : " Visual Studio 14 Win64"
32
- ARCH : x64_86
15
+ # Default python version to run single commands with
16
+ PYTHON_DEF : " C:\\ Python36-x64"
17
+ PYTHON_VERSION : " 3.6"
18
+ # Python versions to build wheels for
19
+ PYTHONVERS : C:\Python36-x64 C:\Python37-x64 C:\Python38-x64
20
+ PYTHON_ARCH : " 64"
21
+ MSVC : " Visual Studio 14 Win64"
33
22
34
23
install :
35
24
# If there is a newer build queued for the same PR, cancel this one.
@@ -48,51 +37,50 @@ install:
48
37
- cp %VCLIBDIR%/msvcr*.dll ssh/
49
38
- cp %OPENSSL_DIR%/bin/*.dll ssh/
50
39
51
- # Prepend newly installed Python to the PATH of this build (this cannot be
52
- # done from inside the powershell script as it would require to restart
53
- # the parent CMD process).
54
- - " SET PATH=%PYTHON%;%PYTHON%\\ Scripts;%PATH%"
55
-
56
- # Check that we have the expected version and architecture for Python
57
- - " python --version"
58
- - " python -c \" import struct; print(struct.calcsize('P') * 8)\" "
59
- - pip install -U wheel setuptools twine cython
40
+ - for %%I in (%PYTHONVERS%) do %%I\python.exe -V
41
+ - for %%I in (%PYTHONVERS%) do %%I\Scripts\pip install -U wheel setuptools twine cython
60
42
61
43
# .c files need to be generated on Windows to handle platform
62
44
# specific code.
63
45
# Fix version used by versioneer to current git tag so the generated .c files
64
46
# do not cause a version change.
65
- - python ci/appveyor/fix_version.py .
47
+ - " %PYTHON_DEF% \\ python.exe ci/appveyor/fix_version.py ."
66
48
- mv -f .git .git.bak
67
49
- 7z x ci\appveyor\zlib1211.zip
68
- # - appveyor DownloadFile https://web.mit.edu/kerberos/dist/kfw/4.1/kfw-4.1-src.zip
69
- # - 7z x kfw-4.1-src.zip
50
+ # - appveyor DownloadFile http://web.mit.edu/kerberos/dist/kfw/4.1/kfw-4.1-amd64.msi
51
+ # - msiexec /i kfw-4.1-amd64.msi /passive /qn
52
+ # - ps: ls "C:\Program Files\MIT\Kerberos\"
53
+ # - cp "C:\Program Files\MIT\Kerberos\*.dll" ssh/
70
54
- ps : ls ssh
71
55
- ps : ls
72
56
73
57
build_script :
74
- # - ci\\appveyor\\build_krb.bat
75
58
- ci\\appveyor\\build_zlib.bat
59
+ - for %%I in (%PYTHONVERS%) do cp C:/zlib/lib/zlibstatic.lib %%I/libs/
60
+ - for %%I in (%PYTHONVERS%) do ls %%I/libs/
76
61
- ci\\appveyor\\build_ssh.bat
77
62
- ps : ls src/src/Release
63
+ - cp src/src/Release/ssh.dll ssh/
64
+ - for %%I in (%PYTHONVERS%) do cp src/src/Release/ssh.lib %%I/libs/
65
+ # Clean C files before build
78
66
- rm -f ssh/*.c
79
- - python -V
80
- - python setup.py build_ext
81
- - python setup.py build
82
- - python setup.py install
67
+ - for %%I in (%PYTHONVERS%) do %%I\ python.exe -V
68
+ - for %%I in (%PYTHONVERS%) do %%I\ python.exe setup.py build_ext
69
+ - for %%I in (%PYTHONVERS%) do %%I\ python.exe setup.py build
70
+ - for %%I in (%PYTHONVERS%) do %%I\ python.exe setup.py install
83
71
- ps : ls ssh
84
72
85
73
test_script :
86
74
- cd dist
87
- - python ..\\ci\\appveyor\\import_test.py
75
+ - for %%I in (%PYTHONVERS%) do %%I\ python.exe ..\\ci\\appveyor\\import_test.py
88
76
- cd ..
89
77
90
78
after_test :
91
- - python setup.py bdist_wheel
79
+ - for %%I in (%PYTHONVERS%) do %%I\ python.exe setup.py bdist_wheel
92
80
- mv dist/* .
93
81
94
82
artifacts :
95
83
- path : " *.whl"
96
84
97
85
deploy_script :
98
- - python ci/appveyor/pypi_upload.py *.whl
86
+ - " %PYTHON_DEF% \\ python.exe ci/appveyor/pypi_upload.py *.whl"
0 commit comments