@@ -40,7 +40,7 @@ Portions Copyright (c) 2017-2018, Chris Fraire <
[email protected] >.
40
40
41
41
<properties >
42
42
<python .system.executable>python3</python .system.executable>
43
- <python .executable> env/bin/python </python .executable >
43
+ <python .environment> ${project.build.directory} / env/bin</python .environment >
44
44
</properties >
45
45
46
46
<profiles >
@@ -53,7 +53,7 @@ Portions Copyright (c) 2017-2018, Chris Fraire <
[email protected] >.
53
53
</activation >
54
54
<properties >
55
55
<python .system.executable>python</python .system.executable>
56
- <python .executable> env/Scripts/python </python .executable >
56
+ <python .environment> ${project.build.directory} / env/Scripts</python .environment >
57
57
</properties >
58
58
</profile >
59
59
</profiles >
@@ -183,7 +183,7 @@ Portions Copyright (c) 2017-2018, Chris Fraire <
[email protected] >.
183
183
<!-- needed for 'pip install pylint' to work -->
184
184
<id >Upgrade pip</id >
185
185
<configuration >
186
- <executable >${python.executable} </executable >
186
+ <executable >${python.environment} /python </executable >
187
187
<workingDirectory >${project.build.directory} </workingDirectory >
188
188
<arguments >
189
189
<argument >-m</argument >
@@ -204,7 +204,7 @@ Portions Copyright (c) 2017-2018, Chris Fraire <
[email protected] >.
204
204
<goal >exec</goal >
205
205
</goals >
206
206
<configuration >
207
- <executable >${python.executable} </executable >
207
+ <executable >${python.environment} /python </executable >
208
208
<workingDirectory >${project.build.directory} </workingDirectory >
209
209
<arguments >
210
210
<argument >setup.py</argument >
@@ -218,7 +218,7 @@ Portions Copyright (c) 2017-2018, Chris Fraire <
[email protected] >.
218
218
<execution >
219
219
<id >Install python package for tests/pylint</id >
220
220
<configuration >
221
- <executable >${python.executable} </executable >
221
+ <executable >${python.environment} /python </executable >
222
222
<workingDirectory >${project.build.directory} </workingDirectory >
223
223
<arguments >
224
224
<argument >setup.py</argument >
@@ -233,7 +233,7 @@ Portions Copyright (c) 2017-2018, Chris Fraire <
[email protected] >.
233
233
<execution >
234
234
<id >Install python lint and flake8</id >
235
235
<configuration >
236
- <executable >${python.executable} </executable >
236
+ <executable >${python.environment} /python </executable >
237
237
<workingDirectory >${project.build.directory} </workingDirectory >
238
238
<arguments >
239
239
<argument >-m</argument >
@@ -251,7 +251,7 @@ Portions Copyright (c) 2017-2018, Chris Fraire <
[email protected] >.
251
251
<execution >
252
252
<id >Python lint</id >
253
253
<configuration >
254
- <executable >${python.executable} </executable >
254
+ <executable >${python.environment} /python </executable >
255
255
<workingDirectory >${project.build.directory} </workingDirectory >
256
256
<arguments >
257
257
<argument >-m</argument >
@@ -269,7 +269,7 @@ Portions Copyright (c) 2017-2018, Chris Fraire <
[email protected] >.
269
269
<execution >
270
270
<id >Python flake8</id >
271
271
<configuration >
272
- <executable >${python.executable} </executable >
272
+ <executable >${python.environment} /python </executable >
273
273
<workingDirectory >${project.build.directory} </workingDirectory >
274
274
<arguments >
275
275
<argument >-m</argument >
@@ -288,8 +288,11 @@ Portions Copyright (c) 2017-2018, Chris Fraire <
[email protected] >.
288
288
<execution >
289
289
<id >Test python package</id >
290
290
<configuration >
291
- <executable >${python.executable} </executable >
291
+ <executable >${python.environment} /python </executable >
292
292
<workingDirectory >${project.build.directory} </workingDirectory >
293
+ <environmentVariables >
294
+ <PATH >${python.environment} :${env.PATH} </PATH >
295
+ </environmentVariables >
293
296
<arguments >
294
297
<argument >setup.py</argument >
295
298
<argument >test</argument >
0 commit comments