summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--appveyor.yml2
-rwxr-xr-xscripts/internal/winmake.py6
2 files changed, 6 insertions, 2 deletions
diff --git a/appveyor.yml b/appveyor.yml
index 8b73375e..f39053ad 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -75,7 +75,7 @@ install:
- "%WITH_COMPILER% %PYTHON%/python.exe setup.py build"
- "%WITH_COMPILER% %PYTHON%/python.exe setup.py build build_ext -i"
- "%WITH_COMPILER% %PYTHON%/python.exe setup.py develop"
- - "%WITH_COMPILER% %PYTHON%/python.exe -m pip install --upgrade --user unittest2 ipaddress pypiwin32 wmi wheel"
+ - "%WITH_COMPILER% %PYTHON%/python.exe scripts/internal/winmake.py setup-dev-env"
build: off
diff --git a/scripts/internal/winmake.py b/scripts/internal/winmake.py
index f12a40cf..bd518f09 100755
--- a/scripts/internal/winmake.py
+++ b/scripts/internal/winmake.py
@@ -24,7 +24,11 @@ import sys
import tempfile
-PYTHON = os.getenv('PYTHON', sys.executable)
+APPVEYOR = bool(os.environ.get('APPVEYOR'))
+if APPVEYOR:
+ PYTHON = sys.executable
+else:
+ PYTHON = os.getenv('PYTHON', sys.executable)
TSCRIPT = os.getenv('TSCRIPT', 'psutil\\tests\\__main__.py')
GET_PIP_URL = "https://bootstrap.pypa.io/get-pip.py"
PY3 = sys.version_info[0] == 3