uploadcare / pillow-simd

The friendly PIL fork
https://python-pillow.github.io/pillow-perf/
Other
2.12k stars 85 forks source link

Python 3.11 #127

Closed foozzi closed 1 year ago

foozzi commented 1 year ago

Any plans to support python 3.11?

homm commented 1 year ago

What the problem?

# apt install --no-install-recommends build-essential libjpeg-dev libpng-dev libtiff-dev liblcms2-dev

# pip install Pillow-SIMD==9.0.0.post0
Collecting Pillow-SIMD==9.0.0.post0
  Using cached Pillow-SIMD-9.0.0.post0.tar.gz (849 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: Pillow-SIMD
  Building wheel for Pillow-SIMD (setup.py) ... done
  Created wheel for Pillow-SIMD: filename=Pillow_SIMD-9.0.0.post0-cp311-cp311-linux_x86_64.whl size=552575 sha256=4846c29512c747cd76f4c83ce843f5edfd5e417401e332b31f8efc1bee3fdaa7
  Stored in directory: /root/.cache/pip/wheels/e1/85/f3/64356ed073bc8ba372fbc81701d0f9a6318022256ffc09b1b8
Successfully built Pillow-SIMD
Installing collected packages: Pillow-SIMD
Successfully installed Pillow-SIMD-9.0.0.post0

# ipython
Python 3.11.1 (main, Jan 11 2023, 14:30:50) [GCC 10.2.1 20210110]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.8.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from PIL import Image
In [2]: Image.__version__
Out[2]: '9.0.0.post0'