Skip to content

Commit 4637543

Browse files
committed
Merge pull request #764 from hashdist/cekees/update_pillow_with_openjpeg
added options for <#> versions of png(zlib), freetype, and jpeg2K
2 parents 05b38e7 + 3550e37 commit 4637543

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

base/setuptools_package.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ build_stages:
2222
handler: bash
2323
bash: |
2424
${PYTHON} -c 'import setuptools; __file__="setup.py"; exec(open(__file__).read())' \
25+
${SETUPTOOLS_PACKAGE_EXTRA_OPTIONS} \
2526
install \
2627
--prefix=. --root=${ARTIFACT} \
2728
--single-version-externally-managed

pkgs/pillow.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
extends: [setuptools_package]
22
dependencies:
3-
build: [png]
3+
build: [zlib, png, freetype, openjpeg]
44

55
sources:
66
- key: tar.gz:q5qmcgfaefplufr7o6bbcdt67tn3cx4k
77
url: https://pypi.python.org/packages/source/P/Pillow/Pillow-2.8.1.tar.gz
8+
9+
build_stages:
10+
- name: build_ext_options
11+
mode: replace
12+
before: install
13+
handler: bash
14+
bash: |
15+
export SETUPTOOLS_PACKAGE_EXTRA_OPTIONS="build_ext --enable-zlib --enable-freetype --enable-jpeg2000 --include-dirs=${ZLIB_DIR}/include:${PNG_DIR}/include:${FREETYPE_DIR}/include:${OPENJPEG_DIR}/include --library-dirs=${ZLIB_DIR}/lib:${PNG_DIR}/lib:${FREETYPE_DIR}/lib:${OPENJPEG_DIR}/lib"

0 commit comments

Comments
 (0)