Skip to content

Commit ec69514

Browse files
committed
Only install pypy on AppVeyor for "pypy" tox-env
1 parent c169c88 commit ec69514

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ include tox.ini
1010
include setup.py
1111

1212
recursive-include scripts *.py
13+
recursive-include scripts *.bat
1314

1415
include .coveragerc
1516

appveyor.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ environment:
66
# https://www.appveyor.com/docs/build-configuration#secure-variables
77

88
matrix:
9+
# note: please use "tox --listenvs" to populate the build matrix below
910
- TOXENV: "linting"
1011
- TOXENV: "py26"
1112
- TOXENV: "py27"
@@ -28,14 +29,7 @@ install:
2829
- echo Installed Pythons
2930
- dir c:\Python*
3031

31-
# install pypy using choco (redirect to a file and write to console in case
32-
# choco install returns non-zero, because choco install python.pypy is too
33-
# noisy)
34-
# pypy is disabled until #1963 gets fixed
35-
- choco install python.pypy > pypy-inst.log 2>&1 || (type pypy-inst.log & exit /b 1)
36-
- set PATH=C:\tools\pypy\pypy;%PATH% # so tox can find pypy
37-
- echo PyPy installed
38-
- pypy --version
32+
- if "%TOXENV%" == "pypy" scripts\install-pypy.bat
3933

4034
- C:\Python35\python -m pip install tox
4135

scripts/install-pypy.bat

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
REM install pypy using choco
2+
REM redirect to a file because choco install python.pypy is too noisy. If the command fails, write output to console
3+
choco install python.pypy > pypy-inst.log 2>&1 || (type pypy-inst.log & exit /b 1)
4+
set PATH=C:\tools\pypy\pypy;%PATH% # so tox can find pypy
5+
echo PyPy installed
6+
pypy --version

0 commit comments

Comments
 (0)