meta-openembedded/meta-python/recipes-devtools/python/python3-pillow/0001-explicitly-set-compile-options.patch
Hongxu Jia 6cb4e90fcd python3-pillow: add 5.4.1
- Set option by modify setup.py

- Do not override do_compile to call `setup.py build_ext', it will
  missing options at do_install time which causing host contamination
  ...
  Found webp/demux.h
  Found library webpmux at /usr/lib/libwebpmux.so
  Found library webpdemux at /usr/lib/libwebpdemux.so
  /usr/include/pthread.h:682:6: error: 'regparm' is not valid on this platform
  ...

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-03-19 21:00:06 -07:00

40 lines
881 B
Diff

From 52879439f2976662140b76951f43f16e1d5ef08e Mon Sep 17 00:00:00 2001
From: Hongxu Jia <hongxu.jia@windriver.com>
Date: Mon, 18 Mar 2019 23:23:55 -0400
Subject: [PATCH] explicitly set compile options
OE does not support to install egg package, so
explicitly set build_ext options for oe-core's
`setup.py install'
Upstream-Status: Inappropriate [oe specific]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
setup.cfg | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/setup.cfg b/setup.cfg
index 95900ff..27da313 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -9,3 +9,15 @@ addopts = -vx Tests
[flake8]
max-line-length = 88
+
+[build_ext]
+disable-platform-guessing = 1
+enable-zlib = 1
+enable-jpeg = 1
+enable-tiff = 1
+enable-freetype = 1
+enable-lcms = 1
+enable-jpeg2000 = 1
+disable-webp = 1
+disable-webpmux = 1
+disable-imagequant = 1
--
2.8.1