Skip to content

Commit 8feb00d

Browse files
tkfstevengj
authored andcommitted
Use correct Python version in x64 AppVeyor (#544)
* Use correct Python version in x64 AppVeyor * Test with Python 3.7 in AppVeyor
1 parent 849adab commit 8feb00d

File tree

1 file changed

+23
-12
lines changed

1 file changed

+23
-12
lines changed

appveyor.yml

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
environment:
22
matrix:
33
- julia_version: 0.6
4-
PYTHON: "C:\\Python27\\python.exe"
4+
python_version: "27"
55
- julia_version: 0.6
6-
PYTHON: "C:\\Python34\\python.exe"
6+
python_version: "37"
77
- julia_version: 0.6
8-
PYTHON: "Conda"
8+
python_version: "Conda"
99

1010
- julia_version: 0.7
11-
PYTHON: "C:\\Python27\\python.exe"
11+
python_version: "27"
1212
- julia_version: 0.7
13-
PYTHON: "C:\\Python34\\python.exe"
13+
python_version: "37"
1414
- julia_version: 0.7
15-
PYTHON: "Conda"
15+
python_version: "Conda"
1616

1717
- julia_version: 1
18-
PYTHON: "C:\\Python27\\python.exe"
18+
python_version: "27"
1919
- julia_version: 1
20-
PYTHON: "C:\\Python34\\python.exe"
20+
python_version: "37"
2121
- julia_version: 1
22-
PYTHON: "Conda"
22+
python_version: "Conda"
2323

2424
- julia_version: nightly
25-
PYTHON: "C:\\Python27\\python.exe"
25+
python_version: "27"
2626
- julia_version: nightly
27-
PYTHON: "C:\\Python34\\python.exe"
27+
python_version: "37"
2828
- julia_version: nightly
29-
PYTHON: "Conda"
29+
python_version: "Conda"
3030

3131
platform:
3232
- x86 # 32-bit
@@ -53,9 +53,20 @@ install:
5353
- ps: iex ((new-object net.webclient).DownloadString("https://raw.githubusercontent.com/JuliaCI/Appveyor.jl/version-1/bin/install.ps1"))
5454

5555
build_script:
56+
- ps: if ( -not ( $env:python_version -eq "Conda" )) {
57+
if ($env:PLATFORM -eq "x64") {
58+
$env:PYTHON = "C:\\Python" + $env:python_version + "-x64\\python.exe"
59+
} else {
60+
$env:PYTHON = "C:\\Python" + $env:python_version + "\\python.exe"
61+
}
62+
}
63+
# For the path to Python executables, see:
64+
# https://www.appveyor.com/docs/build-environment/#python
65+
- echo "%PYTHON%"
5666
- echo "%JL_BUILD_SCRIPT%"
5767
- C:\julia\bin\julia -e "%JL_BUILD_SCRIPT%"
5868

5969
test_script:
70+
- echo "%PYTHON%"
6071
- echo "%JL_TEST_SCRIPT%"
6172
- C:\julia\bin\julia -e "%JL_TEST_SCRIPT%"

0 commit comments

Comments
 (0)