[arch-commits] Commit in python-pillow/trunk (PKGBUILD)

Eli Schwartz eschwartz at archlinux.org
Tue Apr 27 01:56:16 UTC 2021


    Date: Tuesday, April 27, 2021 @ 01:56:15
  Author: eschwartz
Revision: 924664

upgpkg: python-pillow 8.2.0-2: make libraqm a hard dependency

It pulls in freetype and thus makes ImageFont a mandatory feature. But without
it, it is no longer possible to install freetype to enable ImageFont, (since
libraqm is no longer dlopened, but linked to at load time) and furthermore
there's no logical connection to the dependency, so it's obscure to try
depending on it.

But ultimately, the biggest problem is that the current version does not even
work sanely if the dependencies are not installed. It is supposed to raise an
ImportError telling you the _imagingft module is not installed, instead it
dumps an inscrutable stacktrace from the guts of the 'packaging' module.

Modified:
  python-pillow/trunk/PKGBUILD

----------+
 PKGBUILD |   10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-04-27 00:52:01 UTC (rev 924663)
+++ PKGBUILD	2021-04-27 01:56:15 UTC (rev 924664)
@@ -3,7 +3,7 @@
 
 pkgname=python-pillow
 pkgver=8.2.0
-pkgrel=1
+pkgrel=2
 _appname=Pillow
 _py3basever=3.9
 pkgdesc="Python Imaging Library (PIL) fork."
@@ -10,14 +10,12 @@
 arch=('x86_64')
 url="https://python-pillow.github.io/"
 license=('BSD')
-depends=('python' 'lcms2' 'libtiff' 'openjpeg2' 'libimagequant' 'libxcb')
-optdepends=('freetype2: for the ImageFont module'
-            'libraqm: for complex text scripts'
-            'libwebp: for webp images'
+depends=('python' 'freetype2' 'lcms2' 'libraqm' 'libtiff' 'openjpeg2' 'libimagequant' 'libxcb')
+optdepends=('libwebp: for webp images'
             'tk: for the ImageTK module'
             'python-olefile: OLE2 file support'
             'python-pyqt5: for the ImageQt module')
-makedepends=('python-setuptools' 'freetype2' 'libraqm' 'libwebp' 'tk')
+makedepends=('python-setuptools' 'libwebp' 'tk')
 checkdepends=('python-pytest')
 source=("https://files.pythonhosted.org/packages/source/P/$_appname/$_appname-$pkgver.tar.gz")
 md5sums=('21c03274a9f59b9c00419852a8faebe7')



More information about the arch-commits mailing list