From 3cc002262c417356eef578f7c25d344330a077b6 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 30 Sep 2017 23:55:13 +0200 Subject: [PATCH] .appveyor.yml: define PYTHONDIR, not PYTHON --- .appveyor.yml | 20 ++++++++++---------- scripts/get_waf.sh | 1 - 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 453f14b1..9349f48f 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -7,27 +7,27 @@ environment: # pre-installed python version, see: # http://www.appveyor.com/docs/installed-software#python - - PYTHON: "C:\\Python27" + - PYTHONDIR: "C:\\Python27" PYTHON_VERSION: "2.7.x" PYTHON_ARCH: "32" - - PYTHON: "C:\\Python27-x64" + - PYTHONDIR: "C:\\Python27-x64" PYTHON_VERSION: "2.7.x" PYTHON_ARCH: "64" - - PYTHON: "C:\\Python34" + - PYTHONDIR: "C:\\Python34" PYTHON_VERSION: "3.4.x" PYTHON_ARCH: "32" - - PYTHON: "C:\\Python34-x64" + - PYTHONDIR: "C:\\Python34-x64" PYTHON_VERSION: "3.4.x" PYTHON_ARCH: "64" - - PYTHON: "C:\\Python35" + - PYTHONDIR: "C:\\Python35" PYTHON_VERSION: "3.5.x" PYTHON_ARCH: "32" - - PYTHON: "C:\\Python35-x64" + - PYTHONDIR: "C:\\Python35-x64" PYTHON_VERSION: "3.5.x" PYTHON_ARCH: "64" # add path required to run preprocessor step @@ -39,13 +39,13 @@ install: - ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\"" # Check that we have the expected version and architecture for Python - - "%PYTHON%\\python.exe --version" - - "%PYTHON%\\python.exe -c \"import struct; print(struct.calcsize('P') * 8)\"" + - "%PYTHONDIR%\\python.exe --version" + - "%PYTHONDIR%\\python.exe -c \"import struct; print(struct.calcsize('P') * 8)\"" # We need wheel installed to build wheels - - "%PYTHON%\\python.exe -m pip install wheel" + - "%PYTHONDIR%\\python.exe -m pip install wheel" - - "SET PATH=%PATH_EXTRAS%;%PYTHON%;%PYTHON%\\Scripts;%PATH%" + - "SET PATH=%PATH_EXTRAS%;%PYTHONDIR%;%PYTHONDIR%\\Scripts;%PATH%" - "pip install --disable-pip-version-check --user --upgrade pip" - "pip install --upgrade setuptools" diff --git a/scripts/get_waf.sh b/scripts/get_waf.sh index 11457640..42d325dd 100755 --- a/scripts/get_waf.sh +++ b/scripts/get_waf.sh @@ -22,7 +22,6 @@ function buildwaf () { tar xf $WAFTARBALL pushd waf-$WAFVERSION - [ -x $PYTHON ] || PYTHON=`which python` NOCLIMB=1 python waf-light --tools=c_emscripten,syms $* popd -- 2.11.0