Skip to content

Commit 3cc030e

Browse files
authored
Merge pull request #4495 from nulano/winbuild-rewrite
2 parents 7fb21bc + 9640b48 commit 3cc030e

21 files changed

Lines changed: 736 additions & 1249 deletions

.appveyor.yml

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,51 @@
11
version: '{build}'
2+
image: Visual Studio 2017
23
clone_folder: c:\pillow
34
init:
45
- ECHO %PYTHON%
56
#- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
67
# Uncomment previous line to get RDP access during the build.
78

89
environment:
9-
X64_EXT: -x64
1010
EXECUTABLE: python.exe
1111
PIP_DIR: Scripts
12-
VENV: NO
1312
TEST_OPTIONS:
1413
DEPLOY: YES
1514
matrix:
1615
- PYTHON: C:/Python38
17-
- PYTHON: C:/Python38-x64
18-
- PYTHON: C:/Python35
16+
ARCHITECTURE: x86
1917
- PYTHON: C:/Python35-x64
18+
ARCHITECTURE: x64
2019
- PYTHON: C:/msys64/mingw32
2120
EXECUTABLE: bin/python3
21+
ARCHITECTURE: x86
2222
PIP_DIR: bin
2323
TEST_OPTIONS: --processes=0
2424
DEPLOY: NO
25-
- PYTHON: C:/vp/pypy3
26-
EXECUTABLE: bin/pypy.exe
27-
VENV: YES
2825

2926

3027
install:
3128
- curl -fsSL -o pillow-depends.zip https://github.com/python-pillow/pillow-depends/archive/master.zip
3229
- 7z x pillow-depends.zip -oc:\
3330
- mv c:\pillow-depends-master c:\pillow-depends
34-
- xcopy c:\pillow-depends\*.zip c:\pillow\winbuild\
35-
- xcopy c:\pillow-depends\*.tar.gz c:\pillow\winbuild\
3631
- xcopy /s c:\pillow-depends\test_images\* c:\pillow\tests\images
32+
- 7z x ..\pillow-depends\nasm-2.14.02-win64.zip -oc:\
33+
- curl -fsSL -o gs952.exe https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs952/gs952w32.exe
34+
- gs952.exe /S
35+
- path c:\nasm-2.14.02;C:\Program Files (x86)\gs\gs9.52\bin;%PATH%
3736
- cd c:\pillow\winbuild\
38-
- ps: |
39-
if ($env:PYTHON -eq "c:/vp/pypy3")
40-
{
41-
c:\pillow\winbuild\appveyor_install_pypy3.cmd
42-
}
4337
- ps: |
4438
if ($env:PYTHON -eq "c:/msys64/mingw32")
4539
{
4640
c:\msys64\usr\bin\bash -l -c c:\\pillow\\winbuild\\appveyor_install_msys2_deps.sh
4741
}
4842
else
4943
{
50-
c:\python37\python.exe c:\pillow\winbuild\build_dep.py
51-
c:\pillow\winbuild\build_deps.cmd
44+
c:\python37\python.exe c:\pillow\winbuild\build_prepare.py -v --depends=C:\pillow-depends\
45+
c:\pillow\winbuild\build\build_dep_all.cmd
5246
$host.SetShouldExit(0)
5347
}
54-
- curl -fsSL -o gs952.exe https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs952/gs952w32.exe
55-
- gs952.exe /S
56-
- path %path%;C:\Program Files (x86)\gs\gs9.52\bin
48+
- path C:\pillow\winbuild\build\bin;%PATH%
5749

5850
build_script:
5951
- ps: |
@@ -65,7 +57,7 @@ build_script:
6557
}
6658
else
6759
{
68-
& $env:PYTHON/$env:EXECUTABLE c:\pillow\winbuild\build.py
60+
c:\pillow\winbuild\build\build_pillow.cmd install
6961
$host.SetShouldExit(0)
7062
}
7163
- cd c:\pillow
@@ -98,7 +90,7 @@ before_deploy:
9890
- cd c:\pillow
9991
- '%PYTHON%\%PIP_DIR%\pip.exe install wheel'
10092
- cd c:\pillow\winbuild\
101-
- '%PYTHON%\%EXECUTABLE% c:\pillow\winbuild\build.py --wheel'
93+
- c:\pillow\winbuild\build\build_pillow.cmd bdist_wheel
10294
- cd c:\pillow
10395
- ps: Get-ChildItem .\dist\*.* | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
10496

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Python ${{ matrix.python-version }}
1414

1515
steps:
16-
- uses: actions/checkout@v1
16+
- uses: actions/checkout@v2
1717

1818
- name: pip cache
1919
uses: actions/cache@v1

.github/workflows/test-docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
name: ${{ matrix.docker }}
3131

3232
steps:
33-
- uses: actions/checkout@v1
33+
- uses: actions/checkout@v2
3434

3535
- name: Build system information
3636
run: python .github/workflows/system-info.py

0 commit comments

Comments
 (0)