File tree 12 files changed +22
-13
lines changed
src/main/java/fi/helsinki/cs/tmc/langs/python3
12 files changed +22
-13
lines changed Original file line number Diff line number Diff line change 2
2
<modelVersion >4.0.0</modelVersion >
3
3
<groupId >fi.helsinki.cs.tmc</groupId >
4
4
<artifactId >build-tools</artifactId >
5
- <version >0.7.14 -SNAPSHOT</version >
5
+ <version >0.7.15 -SNAPSHOT</version >
6
6
<name >build-tools</name >
7
7
8
8
<!-- Deploy to maven.testmycode.net/nexus -->
Original file line number Diff line number Diff line change 3
3
4
4
<groupId >fi.helsinki.cs.tmc</groupId >
5
5
<artifactId >tmc-langs</artifactId >
6
- <version >0.7.14 -SNAPSHOT</version >
6
+ <version >0.7.15 -SNAPSHOT</version >
7
7
<packaging >pom</packaging >
8
8
<name >tmc-langs</name >
9
9
<url >http://testmycode.net</url >
Original file line number Diff line number Diff line change 4
4
<parent >
5
5
<artifactId >tmc-langs</artifactId >
6
6
<groupId >fi.helsinki.cs.tmc</groupId >
7
- <version >0.7.14 -SNAPSHOT</version >
7
+ <version >0.7.15 -SNAPSHOT</version >
8
8
</parent >
9
9
<modelVersion >4.0.0</modelVersion >
10
10
Original file line number Diff line number Diff line change 4
4
<parent >
5
5
<groupId >fi.helsinki.cs.tmc</groupId >
6
6
<artifactId >tmc-langs</artifactId >
7
- <version >0.7.14 -SNAPSHOT</version >
7
+ <version >0.7.15 -SNAPSHOT</version >
8
8
<relativePath >../</relativePath >
9
9
</parent >
10
10
<properties >
Original file line number Diff line number Diff line change 4
4
<parent >
5
5
<groupId >fi.helsinki.cs.tmc</groupId >
6
6
<artifactId >tmc-langs</artifactId >
7
- <version >0.7.14 -SNAPSHOT</version >
7
+ <version >0.7.15 -SNAPSHOT</version >
8
8
</parent >
9
9
10
10
<properties >
Original file line number Diff line number Diff line change 4
4
<parent >
5
5
<groupId >fi.helsinki.cs.tmc</groupId >
6
6
<artifactId >tmc-langs</artifactId >
7
- <version >0.7.14 -SNAPSHOT</version >
7
+ <version >0.7.15 -SNAPSHOT</version >
8
8
</parent >
9
9
10
10
<properties >
Original file line number Diff line number Diff line change 4
4
<parent >
5
5
<groupId >fi.helsinki.cs.tmc</groupId >
6
6
<artifactId >tmc-langs</artifactId >
7
- <version >0.7.14 -SNAPSHOT</version >
7
+ <version >0.7.15 -SNAPSHOT</version >
8
8
</parent >
9
9
10
10
<properties >
Original file line number Diff line number Diff line change 4
4
<parent >
5
5
<groupId >fi.helsinki.cs.tmc</groupId >
6
6
<artifactId >tmc-langs</artifactId >
7
- <version >0.7.14 -SNAPSHOT</version >
7
+ <version >0.7.15 -SNAPSHOT</version >
8
8
</parent >
9
9
10
10
<properties >
Original file line number Diff line number Diff line change @@ -138,8 +138,17 @@ private String[] getAvailablePointsCommand() {
138
138
}
139
139
140
140
private String [] getTestCommand () {
141
- String [] command =
142
- SystemUtils .IS_OS_WINDOWS ? new String [] {"py" , "-3" } : new String [] {"python3" };
141
+ String [] command = null ;
142
+ if (SystemUtils .IS_OS_WINDOWS ) {
143
+ command = new String [] {"py" , "-3" };
144
+ // Conda only works with the "python"-command on windows
145
+ String condaPython = System .getenv ("CONDA_PYTHON_EXE" );
146
+ if (condaPython != null && !condaPython .isEmpty () && Files .exists (Paths .get (condaPython ))) {
147
+ command = new String [] {condaPython };
148
+ }
149
+ } else {
150
+ command = new String [] {"python3" };
151
+ }
143
152
return ArrayUtils .addAll (command , "-m" , "tmc" );
144
153
}
145
154
Original file line number Diff line number Diff line change 4
4
<parent >
5
5
<groupId >fi.helsinki.cs.tmc</groupId >
6
6
<artifactId >tmc-langs</artifactId >
7
- <version >0.7.14 -SNAPSHOT</version >
7
+ <version >0.7.15 -SNAPSHOT</version >
8
8
</parent >
9
9
10
10
<properties >
Original file line number Diff line number Diff line change 4
4
<parent >
5
5
<groupId >fi.helsinki.cs.tmc</groupId >
6
6
<artifactId >tmc-langs</artifactId >
7
- <version >0.7.14 -SNAPSHOT</version >
7
+ <version >0.7.15 -SNAPSHOT</version >
8
8
</parent >
9
9
<artifactId >tmc-langs-r</artifactId >
10
10
<packaging >jar</packaging >
Original file line number Diff line number Diff line change 4
4
<parent >
5
5
<groupId >fi.helsinki.cs.tmc</groupId >
6
6
<artifactId >tmc-langs</artifactId >
7
- <version >0.7.14 -SNAPSHOT</version >
7
+ <version >0.7.15 -SNAPSHOT</version >
8
8
</parent >
9
9
<artifactId >tmc-langs-util</artifactId >
10
10
<packaging >jar</packaging >
You can’t perform that action at this time.
0 commit comments