Pillow/winbuild/README.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
1.4 KiB
Markdown
Raw Normal View History

2020-01-01 15:02:27 +03:00
Quick README
------------
For more extensive info, see the [Windows build instructions](build.rst).
* See [Current Windows Build/Testing process (Pillow#553)](https://github.com/python-pillow/Pillow/issues/553#issuecomment-37877416),
[Definitive docs for how to compile on Windows (matplotlib#1717)](https://github.com/matplotlib/matplotlib/issues/1717#issuecomment-13343859),
[Test Windows with GitHub Actions (Pillow#4084)](https://github.com/python-pillow/Pillow/pull/4084).
2020-06-27 14:39:44 +03:00
2020-01-01 15:02:27 +03:00
* Requires Microsoft Visual Studio 2017 or newer with C++ component.
* Requires NASM for libjpeg-turbo, a required dependency when using this script.
2023-03-06 05:24:00 +03:00
* Requires CMake 3.15 or newer (available as Visual Studio component).
2022-08-30 13:30:58 +03:00
* Tested on Windows Server 2016 with Visual Studio 2017 Community, and Windows Server 2019 with Visual Studio 2022 Community (AppVeyor).
* Tested on Windows Server 2022 with Visual Studio 2022 Enterprise (GitHub Actions).
2020-01-01 15:02:27 +03:00
The following is a simplified version of the script used on AppVeyor:
```
set PYTHON=C:\Python39\bin
2020-01-01 15:02:27 +03:00
cd /D C:\Pillow\winbuild
2023-06-24 17:52:59 +03:00
%PYTHON%\python.exe build_prepare.py -v --depends=C:\pillow-depends
2020-01-01 15:02:27 +03:00
build\build_dep_all.cmd
cd ..
2023-06-24 17:52:59 +03:00
%PYTHON%\python.exe -m pip install -v -C raqm=vendor -C fribidi=vendor .
2020-01-01 15:02:27 +03:00
path C:\Pillow\winbuild\build\bin;%PATH%
%PYTHON%\python.exe selftest.py
%PYTHON%\python.exe -m pytest -vx --cov PIL --cov Tests --cov-report term --cov-report xml Tests
2023-06-24 17:52:59 +03:00
%PYTHON%\python.exe -m pip wheel -v -C raqm=vendor -C fribidi=vendor .
2020-01-01 15:02:27 +03:00
```