@@ -12,64 +12,52 @@ environment:
12
12
# a later point release.
13
13
# See: http://www.appveyor.com/docs/installed-software#python
14
14
15
- - PYTHON : " C:\\ Python27"
16
- PYTHON_VERSION : " 2.7.x" # currently 2.7.16
17
- PYTHON_ARCH : " 32"
18
- OPENSSL_LIB : " openssl-1.1.0e-vs2008"
19
- VS : " Visual Studio 9 2008"
20
-
21
- - PYTHON : " C:\\ Python27-x64"
22
- PYTHON_VERSION : " 2.7.x" # currently 2.7.16
23
- PYTHON_ARCH : " 64"
24
- OPENSSL_LIB : " openssl-1.1.0e-vs2008"
25
- VS : " Visual Studio 9 2008 Win64"
26
-
27
15
- PYTHON : " C:\\ Python35"
28
16
PYTHON_VERSION : " 3.5.x" # currently 3.5.4
29
17
PYTHON_ARCH : " 32"
30
- OPENSSL_LIB : " openssl- 1.1.0e-vs2015 "
18
+ OPENSSL_LIB : " https://ci.appveyor.com/api/buildjobs/fakubeldw67e9pmg/artifacts/YARA.OpenSSL.x86. 1.1.1.nupkg "
31
19
VS : " Visual Studio 14 2015"
32
20
33
21
- PYTHON : " C:\\ Python35-x64"
34
22
PYTHON_VERSION : " 3.5.x" # currently 3.5.4
35
23
PYTHON_ARCH : " 64"
36
- OPENSSL_LIB : " openssl- 1.1.0e-vs2015 "
24
+ OPENSSL_LIB : " https://ci.appveyor.com/api/buildjobs/q63539qt9yqaqspo/artifacts/YARA.OpenSSL.x64. 1.1.1.nupkg "
37
25
VS : " Visual Studio 14 2015 Win64"
38
26
39
27
- PYTHON : " C:\\ Python36"
40
28
PYTHON_VERSION : " 3.6.x" # currently 3.6.8
41
29
PYTHON_ARCH : " 32"
42
- OPENSSL_LIB : " openssl- 1.1.0e-vs2015 "
30
+ OPENSSL_LIB : " https://ci.appveyor.com/api/buildjobs/fakubeldw67e9pmg/artifacts/YARA.OpenSSL.x86. 1.1.1.nupkg "
43
31
VS : " Visual Studio 14 2015"
44
32
45
33
- PYTHON : " C:\\ Python36-x64"
46
34
PYTHON_VERSION : " 3.6.x" # currently 3.6.8
47
35
PYTHON_ARCH : " 64"
48
- OPENSSL_LIB : " openssl- 1.1.0e-vs2015 "
36
+ OPENSSL_LIB : " https://ci.appveyor.com/api/buildjobs/q63539qt9yqaqspo/artifacts/YARA.OpenSSL.x64. 1.1.1.nupkg "
49
37
VS : " Visual Studio 14 2015 Win64"
50
38
51
39
- PYTHON : " C:\\ Python37"
52
40
PYTHON_VERSION : " 3.7.x" # currently 3.7.0
53
41
PYTHON_ARCH : " 32"
54
- OPENSSL_LIB : " openssl- 1.1.0e-vs2015 "
42
+ OPENSSL_LIB : " https://ci.appveyor.com/api/buildjobs/fakubeldw67e9pmg/artifacts/YARA.OpenSSL.x86. 1.1.1.nupkg "
55
43
VS : " Visual Studio 14 2015"
56
44
57
45
- PYTHON : " C:\\ Python37-x64"
58
46
PYTHON_VERSION : " 3.7.x" # currently 3.7.0
59
47
PYTHON_ARCH : " 64"
60
- OPENSSL_LIB : " openssl- 1.1.0e-vs2015 "
48
+ OPENSSL_LIB : " https://ci.appveyor.com/api/buildjobs/q63539qt9yqaqspo/artifacts/YARA.OpenSSL.x64. 1.1.1.nupkg "
61
49
VS : " Visual Studio 14 2015 Win64"
62
50
63
51
- PYTHON : " C:\\ Python38"
64
52
PYTHON_VERSION : " 3.8.x" # currently 3.8.0
65
53
PYTHON_ARCH : " 32"
66
- OPENSSL_LIB : " openssl- 1.1.0e-vs2015 "
54
+ OPENSSL_LIB : " https://ci.appveyor.com/api/buildjobs/fakubeldw67e9pmg/artifacts/YARA.OpenSSL.x86. 1.1.1.nupkg "
67
55
VS : " Visual Studio 14 2015"
68
56
69
57
- PYTHON : " C:\\ Python38-x64"
70
58
PYTHON_VERSION : " 3.8.x" # currently 3.8.0
71
59
PYTHON_ARCH : " 64"
72
- OPENSSL_LIB : " openssl- 1.1.0e-vs2015 "
60
+ OPENSSL_LIB : " https://ci.appveyor.com/api/buildjobs/q63539qt9yqaqspo/artifacts/YARA.OpenSSL.x64. 1.1.1.nupkg "
73
61
VS : " Visual Studio 14 2015 Win64"
74
62
75
63
install :
@@ -114,32 +102,24 @@ install:
114
102
# latest version of wheel.
115
103
- " %CMD_IN_ENV% pip install wheel==0.29.0"
116
104
105
+ # We are in projects/yara-python, lets go out to projects.
117
106
- cd ..
118
- - ps : Invoke-WebRequest "https://www.npcglib.org/~stathis/downloads/$env:OPENSSL_LIB.7z" -OutFile "openssl.7z"
119
- - 7z x openssl.7z
120
- - cd yara-python
121
-
122
- - ps : >-
123
- If ($env:PYTHON_ARCH -Match "32") {
124
- $env:OPENSSL_LIB_DIR="lib"
125
- } Else {
126
- $env:OPENSSL_LIB_DIR="lib64"
127
- }
128
-
129
- # This is workaround for solving an issue caused by CMake not finding an
130
- # appropriate compilet for Visual Studio 9 2008 Win64. This workaround was
131
- # copied from: https://github.com/conda/conda-build/blob/master/appveyor.yml
132
- - call appveyor\setup_x64.bat
133
-
134
- # Download and build jansson library
135
- - cd ..
107
+
108
+ # Download precompiled OpenSSL library.
109
+ - ps : Invoke-WebRequest "$env:OPENSSL_LIB" -OutFile "openssl.zip"
110
+ - ps : Expand-Archive openssl.zip -DestinationPath openssl
111
+
112
+ # Download and build jansson library.
136
113
- ps : Invoke-WebRequest "https://github.com/akheron/jansson/archive/v$env:JANSSON_VERSION.zip" -OutFile "jansson.zip"
137
114
- ps : Expand-Archive jansson.zip -DestinationPath .
138
115
- cd jansson-%JANSSON_VERSION%
139
116
- md build
140
117
- cd build
141
118
- cmake -DJANSSON_BUILD_DOCS=OFF -DJANSSON_WITHOUT_TESTS=ON -G "%VS%" ..
142
119
- cmake --build . --config Release
120
+
121
+ # We are in projects/jansson-%JANSSON_VERSION%/build, lets move to
122
+ # projects/yara-python
143
123
- cd ../../yara-python
144
124
145
125
@@ -150,16 +130,15 @@ clone_script:
150
130
build_script :
151
131
# Build the compiled extension
152
132
- " %CMD_IN_ENV% python setup.py build_ext --enable-cuckoo --enable-dotnet
153
- -L../jansson-%JANSSON_VERSION%/build/lib/Release;../%OPENSSL_LIB%/%OPENSSL_LIB_DIR%
154
- -I../jansson-%JANSSON_VERSION%/build/include;../%OPENSSL_LIB% /include
133
+ -L../jansson-%JANSSON_VERSION%/build/lib/Release;../openssl/lib
134
+ -I../jansson-%JANSSON_VERSION%/build/include;../openssl /include
155
135
-DHASH_MODULE,HAVE_LIBCRYPTO
156
- -llibcryptoMT "
136
+ -llibcrypto "
157
137
158
138
after_build :
159
139
- " %CMD_IN_ENV% python setup.py install"
160
140
161
141
test_script :
162
- # Run the project tests
163
142
- " %CMD_IN_ENV% python tests.py"
164
143
165
144
after_test :
@@ -187,5 +166,5 @@ deploy:
187
166
#
188
167
189
168
# Uncomment these lines for enabling Remote Desktop for debugging purposes.
190
- # on_finish:
191
- # - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
169
+ # on_finish:
170
+ # - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
0 commit comments