diff --git a/base/setuptools_package.yaml b/base/setuptools_package.yaml index 98185993c..5f875fd97 100644 --- a/base/setuptools_package.yaml +++ b/base/setuptools_package.yaml @@ -22,6 +22,7 @@ build_stages: handler: bash bash: | ${PYTHON} -c 'import setuptools; __file__="setup.py"; exec(open(__file__).read())' \ + ${SETUPTOOLS_PACKAGE_EXTRA_OPTIONS} \ install \ --prefix=. --root=${ARTIFACT} \ --single-version-externally-managed diff --git a/pkgs/pillow.yaml b/pkgs/pillow.yaml index 1cc90b543..430151538 100644 --- a/pkgs/pillow.yaml +++ b/pkgs/pillow.yaml @@ -1,7 +1,15 @@ extends: [setuptools_package] dependencies: - build: [png] + build: [zlib, png, freetype, openjpeg] sources: - key: tar.gz:q5qmcgfaefplufr7o6bbcdt67tn3cx4k url: https://pypi.python.org/packages/source/P/Pillow/Pillow-2.8.1.tar.gz + +build_stages: +- name: build_ext_options + mode: replace + before: install + handler: bash + bash: | + 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"