# -*- coding: ascii; tab-width: 4 -*- Info2: << Package: pil-py27 Type: python (2.7) Version: 6.2.2 Revision: 2 Description: Python Imaging Library DescDetail: << The Python Imaging Library (PIL) adds image processing capabilities to your Python interpreter. This library supports many file formats, and provides powerful image processing and graphics capabilities. << #Source: https://codeload.github.com/python-imaging/Pillow/tar.gz/%v #SourceRename: Pillow-%v.tar.gz Source: https://files.pythonhosted.org/packages/source/P/Pillow/Pillow-%v.tar.gz Source-Checksum: SHA256(db9ff0c251ed066d367f53b64827cc9e18ccea001b986d08c265e53625dab950) BuildDepends: << setuptools-tng-py%type_pkg[python], fink (>= 0.24.12-1), freetype219 (>= 2.3.7-7), lcms2, libimagequant0 (>= 2.12.0-1), libjpeg9, libopenjp2.7, libtiff6, libwebp7, tcltk-dev (>= 8.4.1-1) << Depends: << cffi-py%type_pkg[python], freetype219-shlibs (>= 2.3.7-7), ghostscript | ghostscript-nox, lcms2-shlibs, libimagequant0-shlibs (>= 2.12.0-1), libjpeg9-shlibs, libopenjp2.7-shlibs, libtiff6-shlibs, libwebp7-shlibs, olefile-py%type_pkg[python], python%type_pkg[python], tcltk (>= 8.4.1-1) << Replaces: pil Provides: pil NoSetCPPFLAGS: true NoSetLDFLAGS: true CompileScript: << #!/bin/sh -ev if [ "$(uname -r | cut -d. -f1)" -ge 17 ]; then SDK_PATH="$(xcrun --sdk macosx --show-sdk-path)" CFLAGS="-Wno-nullability-completeness -Wno-expansion-to-defined" fi ZLIB_ROOT="$SDK_PATH/usr" CFLAGS="$CFLAGS" %p/bin/python%type_raw[python] setup.py build_ext --disable-platform-guessing ZLIB_ROOT="$SDK_PATH/usr" CFLAGS="$CFLAGS" %p/bin/python%type_raw[python] setup.py build << InfoTest: << TestDepends: pytest-py%type_pkg[python], numpy-py%type_pkg[python] TestScript: << #!/bin/bash -ev export PYTHONPATH=`ls -d %b/build/lib*` if [ "$(uname -r | cut -d. -f1)" -ge 17 ]; then SDK_PATH="$(xcrun --sdk macosx --show-sdk-path)" CFLAGS="-Wno-nullability-completeness -Wno-expansion-to-defined" fi ZLIB_ROOT="$SDK_PATH/usr" CFLAGS="$CFLAGS" %p/bin/python%type_raw[python] setup.py build_ext --inplace --disable-platform-guessing %p/bin/python%type_raw[python] -B selftest.py || exit 2 %p/bin/python%type_raw[python] -Bm pytest -vxk 'not test_grabclipboard' Tests || exit 2 find ./build -name "*.pyc" -delete << << InstallScript: << #!/bin/sh -ev if [ "$(uname -r | cut -d. -f1)" -ge 17 ]; then SDK_PATH="$(xcrun --sdk macosx --show-sdk-path)" CFLAGS="-Wno-nullability-completeness -Wno-expansion-to-defined" fi ZLIB_ROOT="$SDK_PATH/usr" CFLAGS="$CFLAGS" %p/bin/python%type_raw[python] setup.py build_ext --disable-platform-guessing ZLIB_ROOT="$SDK_PATH/usr" CFLAGS="$CFLAGS" %p/bin/python%type_raw[python] setup.py install --root=%d mkdir -p %i/include/python%type_raw[python]/PIL cp -f src/libImaging/{Imaging.h,ImPlatform.h,ImagingUtils.h,ImDib.h} %i/include/python%type_raw[python]/PIL << DocFiles: CHANGES.rst LICENSE PKG-INFO README.rst docs:html License: OSI-Approved Homepage: https://github.com/python-imaging/Pillow Maintainer: Daniel Johnson DescPackaging: << Uses the tcl that matches python's tkinter Avoid un-needed -I and -L paths python build system seems to put CPPFLAGS before custom include_dirs (python bug?): NoSetCPPFLAGS so that local -I takes precedence. Especially need to find libImaging/Zip.h rather than libzip1's zip.h on case-insensitive FS. This is the Pillow fork of PIL maintained by the plone community. Unlike PIL, it is under active development but is a otherwise a drop-in replacement. I've had reports of segfaults when pil is built with libjpeg9 and then used with pyqt4 (which through qt4 uses libjpeg8). Switching back to libjpeg8 seems to solve the problem. << # Info2 <<