Python Imaging Library (Fork)
Go to file
2021-02-08 20:54:53 +11:00
.github Updated PyPy 3.6 to 7.3.3 2021-02-08 20:54:53 +11:00
dependency_licenses Split dependency licenses into individual files 2020-12-29 10:39:51 +11:00
multibuild@63c1418ea5 multibuild now includes PyPy 7.3.3 2021-02-06 14:52:34 +11:00
Pillow@fcc42e0d34 Pillow -> 8.1.0 2021-01-02 23:26:12 +11:00
.gitignore RF: refactor library_installers, add zlib 2014-07-04 12:55:11 +01:00
.gitmodules RF: switch to using multibuild for OSX 2016-08-02 16:31:04 -07:00
.travis.yml Remove 'tags: true' to upload wheels for manually triggered builds 2021-01-03 13:37:43 +02:00
config.sh Updated lcms2 to 2.12 2021-02-07 06:54:08 +11:00
README.rst Rearranged badges [ci skip] 2020-12-11 21:22:12 +11:00
update-pillow-tag.sh Combined git submodule commands 2021-02-06 08:49:59 +11:00

Pillow Wheel Builder
====================

This repository creates wheels for tagged versions of Pillow::

    ./update-pillow-tag.sh <VERSION>

.. image:: https://github.com/python-pillow/pillow-wheels/workflows/Wheels/badge.svg
   :target: https://github.com/python-pillow/pillow-wheels/actions
   :alt: GitHub Actions build status

.. image:: https://img.shields.io/travis/com/python-pillow/pillow-wheels/master.svg
   :target: https://travis-ci.com/github/python-pillow/pillow-wheels
   :alt: Travis CI build status

Archives
--------

https://github.com/python-pillow/pillow-depends contains archives for libraries
that will be built as part of the Pillow build.

In general, there is no need to put library archives there, because the
``multibuild`` scripts will download them from their respective URLs.

But, the build will look in that repository before downloading from the
URL, so if there is a library that often fails to download, or you think might
fail to download, then download it and add it to the Git repository.

See the ``pre_build`` in ``config.sh`` and the ``fetch_unpack`` routine in
``multibuild/common_utils.sh`` for the logic, and the build recipes in
``multibuild/library_builders.sh`` for the filename to give to the downloaded
archive.

Dependencies
------------

NumPy
~~~~~

Check minimum NumPy versions to build against in ``.travis.yml`` file. Build against the
earliest NumPy that Pillow is compatible with; see
`forward, backward NumPy compatibility <https://stackoverflow.com/questions/17709641/valueerror-numpy-dtype-has-the-wrong-size-try-recompiling/18369312#18369312>`_

Wheels
------

Wheels are uploaded to https://github.com/python-pillow/pillow-wheels/releases.
Credentials are encrypted to this specific repo in the ``.travis.yml`` file,
so the upload won't work from another repository.

PyPI
~~~~

Download wheels from the
`latest release <https://github.com/python-pillow/pillow-wheels/releases>`_ and upload
to PyPI::

    twine upload Pillow-<VERSION>-*