.appveyor.yml: set path first, remove extension
authorPaul Brossier <piem@piem.org>
Mon, 24 Sep 2018 20:41:52 +0000 (22:41 +0200)
committerPaul Brossier <piem@piem.org>
Mon, 24 Sep 2018 20:41:52 +0000 (22:41 +0200)
.appveyor.yml

index cb3ef4c..7188419 100644 (file)
@@ -44,17 +44,17 @@ install:
   - ECHO "Installed SDKs:"
   - ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\""
 
+  - "SET PATH=%PYTHONDIR%;%PYTHONDIR%\\Scripts;%PATH%"
+
   # Check that we have the expected version and architecture for Python
-  - "%PYTHONDIR%\\python.exe --version"
-  - "%PYTHONDIR%\\python.exe -c \"import struct; print(struct.calcsize('P') * 8)\""
+  - "python --version"
+  - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
 
-  - "%PYTHONDIR%\\python.exe -m pip install --disable-pip-version-check --user --upgrade pip"
-  - "%PYTHONDIR%\\python.exe -m pip install --upgrade setuptools"
+  - "python -m pip install --disable-pip-version-check --user --upgrade pip"
+  - "python -m pip install --upgrade setuptools"
 
   # We need wheel installed to build wheels
-  - "%PYTHONDIR%\\python.exe -m pip install wheel"
-
-  - "SET PATH=%PYTHONDIR%;%PYTHONDIR%\\Scripts;%PATH%"
+  - "python -m pip install wheel"
 
 before_build:
   - "bash scripts/get_waf.sh"