Skip to content

Commit f947e3b

Browse files
author
Benoit Hudson
committed
Grasping at straws: try using conda to set up environment
The previous attempt got further but got stuck trying to build psutil from source, with the infamous "error: INCLUDE environment variable is empty" error that means your windows setup won't be building wheels from source today.
1 parent dd77fa5 commit f947e3b

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

appveyor.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,10 @@ environment:
2828
- PYTHON_VERSION: 3.5
2929
- PYTHON_VERSION: 3.6
3030

31-
init:
32-
# Update Environment Variables based on matrix/platform
33-
- set PY_VER=%PYTHON_VERSION:.=%
34-
- set PYTHON=C:\PYTHON%PY_VER%
35-
- if %PLATFORM%==x64 (set PYTHON=%PYTHON%-x64)
36-
37-
# Put desired Python version first in PATH
38-
- set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
39-
4031
install:
41-
# Upgrade setuptools to find MSVC. Otherwise you get "error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat)."
42-
- python -m pip install -U pip
32+
# Set up the python environment
33+
- conda create -n testenv python=%PYTHON_VERSION% pip
34+
- activate testenv
4335
- pip install --upgrade setuptools
4436
- pip install --upgrade -r requirements.txt
4537

0 commit comments

Comments
 (0)