@@ -38,6 +38,34 @@ Portions Copyright (c) 2017-2018, Chris Fraire <
[email protected] >.
38
38
39
39
<name >OpenGrok tools</name >
40
40
41
+ <profiles >
42
+ <profile >
43
+ <id >not-windows</id >
44
+ <activation >
45
+ <os >
46
+ <family >!windows</family >
47
+ </os >
48
+ </activation >
49
+ <properties >
50
+ <python3Command >python3</python3Command >
51
+ <pythonEnvBin >env/bin</pythonEnvBin >
52
+ </properties >
53
+ </profile >
54
+ <profile >
55
+ <id >windows</id >
56
+ <activation >
57
+ <os >
58
+ <family >windows</family >
59
+ </os >
60
+ </activation >
61
+ <properties >
62
+ <python3Command >python</python3Command >
63
+ <pythonEnvBin >env/Scripts</pythonEnvBin >
64
+ <!-- Tests do not run on Windows because the python code is Unix-specific -->
65
+ <skipTests >true</skipTests >
66
+ </properties >
67
+ </profile >
68
+ </profiles >
41
69
<build >
42
70
<sourceDirectory >src/main/python</sourceDirectory >
43
71
<testSourceDirectory >src/test/python</testSourceDirectory >
@@ -163,7 +191,7 @@ Portions Copyright (c) 2017-2018, Chris Fraire <
[email protected] >.
163
191
<execution >
164
192
<id >generate python env</id >
165
193
<configuration >
166
- <executable >python3 </executable >
194
+ <executable >${python3Command} </executable >
167
195
<workingDirectory >${project.build.directory} </workingDirectory >
168
196
<arguments >
169
197
<argument >-m</argument >
@@ -180,7 +208,7 @@ Portions Copyright (c) 2017-2018, Chris Fraire <
[email protected] >.
180
208
<!-- needed for 'pip install pylint' to work -->
181
209
<id >Upgrade pip</id >
182
210
<configuration >
183
- <executable >env/bin /pip3</executable >
211
+ <executable >${pythonEnvBin} /pip3</executable >
184
212
<workingDirectory >${project.build.directory} </workingDirectory >
185
213
<arguments >
186
214
<argument >install</argument >
@@ -200,19 +228,21 @@ Portions Copyright (c) 2017-2018, Chris Fraire <
[email protected] >.
200
228
<goal >exec</goal >
201
229
</goals >
202
230
<configuration >
203
- <executable >env/bin /python</executable >
231
+ <executable >${pythonEnvBin} /python</executable >
204
232
<workingDirectory >${project.build.directory} </workingDirectory >
205
233
<arguments >
206
234
<argument >setup.py</argument >
207
235
<argument >sdist</argument >
236
+ <argument >--formats</argument >
237
+ <argument >gztar</argument >
208
238
</arguments >
209
239
</configuration >
210
240
<phase >package</phase >
211
241
</execution >
212
242
<execution >
213
243
<id >python-test-install</id >
214
244
<configuration >
215
- <executable >env/bin /python</executable >
245
+ <executable >${pythonEnvBin} /python</executable >
216
246
<workingDirectory >${project.build.directory} </workingDirectory >
217
247
<arguments >
218
248
<argument >setup.py</argument >
0 commit comments