Skip to content

Commit

Permalink
Restrict the Pillow version to >=9.5.0,<11 (#8505)
Browse files Browse the repository at this point in the history
* Restrict the Pillow version to pillow>=9.5.0,<11

* Use --prefer-binary (will document it)

* Use --only-binary Pillow

* Document --only-binary for Windows 32 bit
  • Loading branch information
misl6 committed Dec 12, 2023
1 parent 49b81cb commit 74ed8e0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .ci/windows_ci.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function Install-kivy-test-run-pip-deps {
}

function Install-kivy {
python -m pip install -e .[dev,full]
python -m pip install --only-binary Pillow -e .[dev,full]
}

function Install-kivy-wheel {
Expand Down
14 changes: 14 additions & 0 deletions doc/sources/gettingstarted/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,20 @@ This also installs the minimum dependencies of Kivy. To additionally install Kiv
**audio/video** support, install either ``kivy[base,media]`` or ``kivy[full]``.
See :ref:`Kivy's dependencies<kivy-dependencies>` for the list of selectors.

.. note::

The ``Pillow`` library is a dependency of both ``kivy[base]`` and ``kivy[full]``.

For Windows 32-bit users, please note that the latest releases of `Pillow` are
not available as binary distributions on PyPI. However, Kivy also supports ``Pillow==9.5.0``,
which have a binary distribution for all supported Python versions, even on Windows 32-bit.

If you are on Windows 32-bit and prefer not to build Pillow from source,
you can use the ``--only-binary Pillow`` flag with the following command to instruct pip
to install the binary distribution of Pillow, albeit not the latest version::

python -m pip install --only-binary Pillow "kivy[base]"

.. note::

When using Raspberry Pi OS Lite or similar Linux-based headless systems, it may be necessary to install additional
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ dev =
pre-commit
responses
base =
pillow==9.5.0
pillow>=9.5.0,<11
requests
docutils
pygments
Expand All @@ -60,7 +60,7 @@ media =
kivy_deps.gstreamer~=0.3.3; sys_platform == "win32"
ffpyplayer; sys_platform == "linux" or sys_platform == "darwin"
full =
pillow==9.5.0
pillow>=9.5.0,<11
docutils
pygments
kivy_deps.gstreamer~=0.3.3; sys_platform == "win32"
Expand Down

0 comments on commit 74ed8e0

Please sign in to comment.