add pypy to appveyor

This commit is contained in:
wiredfool 2017-07-03 21:51:39 +01:00
parent 3f3eb99ff9
commit bc5f9a3e8b
4 changed files with 29 additions and 7 deletions

View File

@ -7,7 +7,14 @@ init:
environment: environment:
X64_EXT: -x64 X64_EXT: -x64
EXECUTABLE: python.exe
PIP_DIR: Scripts
VENV: NO
matrix: matrix:
- PYTHON: C:/vp/pypy2
EXECUTABLE: bin/pypy.exe
PIP_DIR: bin
VENV: YES
- PYTHON: C:/Python27-x64 - PYTHON: C:/Python27-x64
- PYTHON: C:/Python34 - PYTHON: C:/Python34
- PYTHON: C:/Python27 - PYTHON: C:/Python27
@ -15,6 +22,7 @@ environment:
- PYTHON: C:/Python33 - PYTHON: C:/Python33
- PYTHON: C:/Python33-x64 - PYTHON: C:/Python33-x64
install: install:
- curl -fsSL -o pillow-depends.zip https://github.com/python-pillow/pillow-depends/archive/master.zip - curl -fsSL -o pillow-depends.zip https://github.com/python-pillow/pillow-depends/archive/master.zip
- 7z x pillow-depends.zip -oc:\ - 7z x pillow-depends.zip -oc:\
@ -23,19 +31,24 @@ install:
- xcopy c:\pillow-depends\*.tar.gz c:\pillow\winbuild\ - xcopy c:\pillow-depends\*.tar.gz c:\pillow\winbuild\
- xcopy /s c:\pillow-depends\test_images\* c:\pillow\tests\images - xcopy /s c:\pillow-depends\test_images\* c:\pillow\tests\images
- cd c:\pillow\winbuild\ - cd c:\pillow\winbuild\
- ps: |
if ($env:PYTHON -eq "c:/vp/pypy2")
{
c:\pillow\winbuild\appveyor_install_pypy.cmd
}
- c:\python34\python.exe c:\pillow\winbuild\build_dep.py - c:\python34\python.exe c:\pillow\winbuild\build_dep.py
- c:\pillow\winbuild\build_deps.cmd - c:\pillow\winbuild\build_deps.cmd
build_script: build_script:
- '%PYTHON%\python.exe c:\pillow\winbuild\build.py' - '%PYTHON%\%EXECUTABLE% c:\pillow\winbuild\build.py'
- cd c:\pillow - cd c:\pillow
- dir dist\*.egg - dir dist\*.egg
- '%PYTHON%\python.exe selftest.py --installed' - '%PYTHON%\%EXECUTABLE% selftest.py --installed'
test_script: test_script:
- cd c:\pillow - cd c:\pillow
- '%PYTHON%\Scripts\pip.exe install nose' - '%PYTHON%\%PIP_DIR%\pip.exe install nose'
- '%PYTHON%\python.exe test-installed.py -v -s' - '%PYTHON%\%EXECUTABLE% test-installed.py -v -s'
matrix: matrix:
fast_finish: true fast_finish: true
@ -47,9 +60,9 @@ artifacts:
name: wheel name: wheel
after_test: after_test:
- '%PYTHON%\Scripts\pip.exe install wheel' - '%PYTHON%\%PIP_DIR%\pip.exe install wheel'
- cd c:\pillow\winbuild\ - cd c:\pillow\winbuild\
- '%PYTHON%\python.exe c:\pillow\winbuild\build.py --wheel' - '%PYTHON%\%EXECUTABLE% c:\pillow\winbuild\build.py --wheel'
- cd c:\pillow - cd c:\pillow
- ps: Get-ChildItem .\dist\*.* | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name } - ps: Get-ChildItem .\dist\*.* | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }

View File

@ -0,0 +1,3 @@
curl -fsSL -o pypy2.zip https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.8.0-win32.zip
7z x pypy2.zip -oc:\
c:\Python34\Scripts\virtualenv.exe -p c:\pypy2-v5.8.0-win32\pypy.exe c:\vp\pypy2

View File

@ -72,6 +72,11 @@ def build_one(py_ver, compiler):
args['python_path'] = "%PYTHON%" args['python_path'] = "%PYTHON%"
else: else:
args['python_path'] = "%s%s\\Scripts" % (VIRT_BASE, py_ver) args['python_path'] = "%s%s\\Scripts" % (VIRT_BASE, py_ver)
args['executable'] = "python.exe"
if 'EXECUTABLE' in os.environ:
args['executable'] = "%EXECUTABLE%"
args['py_ver'] = py_ver args['py_ver'] = py_ver
if '34' in py_ver: if '34' in py_ver:
args['tcl_ver'] = '86' args['tcl_ver'] = '86'
@ -87,7 +92,7 @@ set INCLUDE=%%INCLUDE%%;%%INCLIB%%\%(inc_dir)s;%%INCLIB%%\tcl%(tcl_ver)s\include
setlocal setlocal
set LIB=%%LIB%%;C:\Python%(py_ver)s\tcl set LIB=%%LIB%%;C:\Python%(py_ver)s\tcl
call %(python_path)s\python.exe setup.py %%BLDOPT%% call %(python_path)s\%(executable)s setup.py %%BLDOPT%%
endlocal endlocal
endlocal endlocal

View File

@ -5,6 +5,7 @@ PILLOW_DEPENDS_DIR = 'C:\\pillow-depends\\'
pythons = { # '26': 7, pythons = { # '26': 7,
'27': 7, '27': 7,
'pypy2': 7,
# '32': 7, # '32': 7,
'33': 7.1, '33': 7.1,
'34': 7.1} '34': 7.1}