package: name: Pillow version: 11.3.0 top-level: - PIL source: sha256: 3828ee7586cd0b2091b6209e5ad53e20d0649bbe87164a459d0676e035e8f523 url: https://files.pythonhosted.org/packages/source/p/pillow/pillow-11.3.0.tar.gz build: # RELOCATABLE flag is required because if affects how emscripten build ports. cflags: | -s RELOCATABLE=1 -s USE_ZLIB=1 -s USE_FREETYPE=1 -s USE_LIBPNG=1 -s USE_LIBJPEG=1 ldflags: | -ljpeg backend-flags: | platform-guessing=disable zlib=True jpeg=True freetype=True webp=True tiff=True lcms=False xcb=False webpmux=False jpeg2000=False imagequant=False script: | embuilder build --pic libjpeg zlib freetype libpng # Pillow parses compiler flags to set the include, library dirs # https://github.com/python-pillow/Pillow/blob/339bc5db93bd95decf65a59fab273f300db6594d/setup.py#L486 export EMSCRIPTEN_LIBRARY_PATH=$(em-config CACHE)/sysroot/lib/wasm32-emscripten/pic/ export EMSCRIPTEN_INCLUDE_PATH=$(em-config CACHE)/sysroot/include/ export PYODIDE_BUILD_INCLUDE_PATH=${WASM_LIBRARY_DIR}/include/ export PYODIDE_BUILD_LIBRARY_PATH=${WASM_LIBRARY_DIR}/lib/ export CFLAGS="${CFLAGS} -I${EMSCRIPTEN_INCLUDE_PATH} -I${PYODIDE_BUILD_INCLUDE_PATH} -L${EMSCRIPTEN_LIBRARY_PATH} -L${PYODIDE_BUILD_LIBRARY_PATH}" requirements: # Pillow will use `pkg-config` to find and link these libraries. host: - libwebp - libtiff about: home: https://python-pillow.org PyPI: https://pypi.org/project/Pillow summary: Python Imaging Library (Fork) license: HPND