aboutsummaryrefslogtreecommitdiffstats
path: root/.jenkins/windows-wheel.bat
blob: 78b3000a749bda899daa8ca704bc11490153fd79 (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
wmic qfe
@set PATH="C:\Python27";"C:\Python27\Scripts";%PATH%
SET
if "%TOXENV%" == "py26" (
    @set PYTHON="C:\Python26\python.exe"
)
if "%TOXENV%" == "py27" (
    @set PYTHON="C:\Python27\python.exe"
)
if "%TOXENV%" == "py33" (
    @set PYTHON="C:\Python33\python.exe"
)
if "%TOXENV%" == "py34" (
    @set PYTHON="C:\Python34\python.exe"
)
if "%TOXENV%" == "py35" (
    @set PYTHON="C:\Python35\python.exe"
)
if "%TOXENV%" == "py36" (
    @set PYTHON="C:\Python36\python.exe"
)

@set py35orabove=true

if not "%TOXENV%" == "py35" (
    if not "%TOXENV%" == "py36" (
        @set py35orabove=false
    )
)

if "%py35orabove%" == "true" (
    if %label% == windows (
        @set INCLUDE="C:\OpenSSL-Win32-2015\include";%INCLUDE%
        @set LIB="C:\OpenSSL-Win32-2015\lib";%LIB%
    ) else (
        @set INCLUDE="C:\OpenSSL-Win64-2015\include";%INCLUDE%
        @set LIB="C:\OpenSSL-Win64-2015\lib";%LIB%
    )
) else (
    if %label% == windows (
        @set INCLUDE="C:\OpenSSL-Win32-2010\include";%INCLUDE%
        @set LIB="C:\OpenSSL-Win32-2010\lib";%LIB%
    ) else (
        @set INCLUDE="C:\OpenSSL-Win64-2010\include";%INCLUDE%
        @set LIB="C:\OpenSSL-Win64-2010\lib";%LIB%
    )
)

virtualenv -p %PYTHON% .release
call .release\Scripts\activate
pip install wheel virtualenv
pip wheel cryptography --wheel-dir=wheelhouse --no-use-wheel
for %%x in (wheelhouse\*.whl) do (
   pip install %%x
)
python -c "from cryptography.hazmat.backends.openssl.backend import backend;print('Loaded: ' + backend.openssl_version_text());print('Linked Against: ' + backend._ffi.string(backend._lib.OPENSSL_VERSION_TEXT).decode('ascii'))"