@@ -42,11 +42,10 @@ Run ``build_prepare.py`` to configure the build::
4242
4343 usage: winbuild\build_prepare.py [-h] [-v] [-d PILLOW_BUILD]
4444 [--depends PILLOW_DEPS]
45- [--architecture {x86,x64,ARM64}]
46- [--python PYTHON] [--executable EXECUTABLE]
47- [--nmake] [--no-imagequant] [--no-fribidi]
45+ [--architecture {x86,x64,ARM64}] [--nmake]
46+ [--no-imagequant] [--no-fribidi]
4847
49- Download dependencies and generate build scripts for Pillow.
48+ Download and generate build scripts for Pillow dependencies .
5049
5150 options:
5251 -h, --help show this help message and exit
@@ -58,17 +57,13 @@ Run ``build_prepare.py`` to configure the build::
5857 'winbuild\depends')
5958 --architecture {x86,x64,ARM64}
6059 build architecture (default: same as host Python)
61- --python PYTHON Python install directory (default: use host Python)
62- --executable EXECUTABLE
63- Python executable (default: use host Python)
6460 --nmake build dependencies using NMake instead of Ninja
6561 --no-imagequant skip GPL-licensed optional dependency libimagequant
6662 --no-fribidi, --no-raqm
6763 skip LGPL-licensed optional dependency FriBiDi
6864
6965 Arguments can also be supplied using the environment variables PILLOW_BUILD,
70- PILLOW_DEPS, ARCHITECTURE, PYTHON, EXECUTABLE. See winbuild\build.rst for more
71- information.
66+ PILLOW_DEPS, ARCHITECTURE. See winbuild\build.rst for more information.
7267
7368**Warning: ** The build directory is wiped when ``build_prepare.py `` is run.
7469
@@ -86,14 +81,16 @@ or run the individual scripts in order to build each dependency separately.
8681Building Pillow
8782---------------
8883
89- Once the dependencies are built, run
90- ``winbuild\build\build_pillow.cmd install `` to build and install
91- Pillow for the selected version of Python.
92- ``winbuild\build\build_pillow.cmd bdist_wheel `` will build wheels
93- instead of installing Pillow.
84+ Once the dependencies are built, make sure the required environment variables
85+ are set by running ``winbuild\build\build_env.cmd `` and install Pillow with pip::
9486
95- You can also use ``winbuild\build\build_pillow.cmd --inplace develop `` to build
96- and install Pillow in develop mode (instead of ``python3 -m pip install --editable ``).
87+ winbuild\build\build_env.cmd
88+ python.exe -m pip install -v -C raqm=vendor -C fribidi=vendor .
89+
90+ To build a wheel instead, run::
91+
92+ winbuild\build\build_env.cmd
93+ python.exe -m pip wheel -v -C raqm=vendor -C fribidi=vendor .
9794
9895Testing Pillow
9996--------------
@@ -112,11 +109,12 @@ The following is a simplified version of the script used on AppVeyor::
112109
113110 set PYTHON=C:\Python38\bin
114111 cd /D C:\Pillow\winbuild
115- C:\Python39\bin \python.exe build_prepare.py -v --depends C:\pillow-depends
112+ %PYTHON% \python.exe build_prepare.py -v --depends C:\pillow-depends
116113 build\build_dep_all.cmd
117- build\build_pillow .cmd install
114+ build\build_env .cmd
118115 cd ..
116+ %PYTHON%\python.exe -m pip install -v -C raqm=vendor -C fribidi=vendor .
119117 path C:\Pillow\winbuild\build\bin;%PATH%
120118 %PYTHON%\python.exe selftest.py
121119 %PYTHON%\python.exe -m pytest -vx --cov PIL --cov Tests --cov-report term --cov-report xml Tests
122- build\build_pillow.cmd bdist_wheel
120+ %PYTHON%\python.exe -m pip wheel -v -C raqm=vendor -C fribidi=vendor .
0 commit comments