summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python
diff options
context:
space:
mode:
Diffstat (limited to 'meta-python/recipes-devtools/python')
-rw-r--r--meta-python/recipes-devtools/python/python3-pillow/0001-explicitly-set-compile-options.patch10
-rw-r--r--meta-python/recipes-devtools/python/python3-pillow/0001-support-cross-compiling.patch32
-rw-r--r--meta-python/recipes-devtools/python/python3-pillow_6.1.bb (renamed from meta-python/recipes-devtools/python/python3-pillow_5.4.1.bb)6
3 files changed, 24 insertions, 24 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pillow/0001-explicitly-set-compile-options.patch b/meta-python/recipes-devtools/python/python3-pillow/0001-explicitly-set-compile-options.patch
index de89ba0058..d4372696fe 100644
--- a/meta-python/recipes-devtools/python/python3-pillow/0001-explicitly-set-compile-options.patch
+++ b/meta-python/recipes-devtools/python/python3-pillow/0001-explicitly-set-compile-options.patch
@@ -1,4 +1,4 @@
1From 52879439f2976662140b76951f43f16e1d5ef08e Mon Sep 17 00:00:00 2001 1From 9f3073bf6a7c7c51bb49d25f65c8f75cc704a5ee Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Mon, 18 Mar 2019 23:23:55 -0400 3Date: Mon, 18 Mar 2019 23:23:55 -0400
4Subject: [PATCH] explicitly set compile options 4Subject: [PATCH] explicitly set compile options
@@ -15,12 +15,12 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
15 1 file changed, 12 insertions(+) 15 1 file changed, 12 insertions(+)
16 16
17diff --git a/setup.cfg b/setup.cfg 17diff --git a/setup.cfg b/setup.cfg
18index 95900ff..27da313 100644 18index 3ab2e127..e92615f3 100644
19--- a/setup.cfg 19--- a/setup.cfg
20+++ b/setup.cfg 20+++ b/setup.cfg
21@@ -9,3 +9,15 @@ addopts = -vx Tests 21@@ -4,3 +4,15 @@ test=pytest
22
23 [flake8] 22 [flake8]
23 extend-ignore = E203, W503
24 max-line-length = 88 24 max-line-length = 88
25+ 25+
26+[build_ext] 26+[build_ext]
@@ -35,5 +35,5 @@ index 95900ff..27da313 100644
35+disable-webpmux = 1 35+disable-webpmux = 1
36+disable-imagequant = 1 36+disable-imagequant = 1
37-- 37--
382.8.1 382.20.1
39 39
diff --git a/meta-python/recipes-devtools/python/python3-pillow/0001-support-cross-compiling.patch b/meta-python/recipes-devtools/python/python3-pillow/0001-support-cross-compiling.patch
index e86293421c..6de19ad87a 100644
--- a/meta-python/recipes-devtools/python/python3-pillow/0001-support-cross-compiling.patch
+++ b/meta-python/recipes-devtools/python/python3-pillow/0001-support-cross-compiling.patch
@@ -1,4 +1,4 @@
1From a78411402c824668283beb94db4bf7e206a4cf60 Mon Sep 17 00:00:00 2001 1From ae7c8d0336381dd4c10e809e9c8926f9deeafeb8 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Thu, 14 Mar 2019 03:48:10 -0400 3Date: Thu, 14 Mar 2019 03:48:10 -0400
4Subject: [PATCH] support cross compiling 4Subject: [PATCH] support cross compiling
@@ -11,29 +11,29 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
11 1 file changed, 3 insertions(+), 10 deletions(-) 11 1 file changed, 3 insertions(+), 10 deletions(-)
12 12
13diff --git a/setup.py b/setup.py 13diff --git a/setup.py b/setup.py
14index 79f912b..37e5827 100755 14index 5ceae344..07863340 100755
15--- a/setup.py 15--- a/setup.py
16+++ b/setup.py 16+++ b/setup.py
17@@ -50,7 +50,7 @@ _LIB_IMAGING = ( 17@@ -105,7 +105,7 @@ _LIB_IMAGING = (
18 "ZipEncode", "TiffDecode", "Jpeg2KDecode", "Jpeg2KEncode", "BoxBlur", 18 "codec_fd",
19 "QuantPngQuant", "codec_fd") 19 )
20 20
21-DEBUG = False 21-DEBUG = False
22+DEBUG = True 22+DEBUG = True
23 23
24 24
25 class DependencyException(Exception): 25 class DependencyException(Exception):
26@@ -345,21 +345,16 @@ class pil_build_ext(build_ext): 26@@ -396,21 +396,16 @@ class pil_build_ext(build_ext):
27 _add_directory(library_dirs, match.group(1)) 27 _add_directory(library_dirs, match.group(1))
28 28
29 # include, rpath, if set as environment variables: 29 # include, rpath, if set as environment variables:
30- for k in ('C_INCLUDE_PATH', 'CPATH', 'INCLUDE'): 30- for k in ("C_INCLUDE_PATH", "CPATH", "INCLUDE"):
31+ for k in ('C_INCLUDE_PATH', 'CPATH', 'INCLUDE', 'STAGING_INCDIR'): 31+ for k in ('C_INCLUDE_PATH', 'CPATH', 'INCLUDE', 'STAGING_INCDIR'):
32 if k in os.environ: 32 if k in os.environ:
33 for d in os.environ[k].split(os.path.pathsep): 33 for d in os.environ[k].split(os.path.pathsep):
34 _add_directory(include_dirs, d) 34 _add_directory(include_dirs, d)
35 35
36- for k in ('LD_RUN_PATH', 'LIBRARY_PATH', 'LIB'): 36- for k in ("LD_RUN_PATH", "LIBRARY_PATH", "LIB"):
37+ for k in ('LD_RUN_PATH', 'LIBRARY_PATH', 'LIB', 'STAGING_LIBDIR'): 37+ for k in ('LD_RUN_PATH', 'LIBRARY_PATH', 'LIB', 'STAGING_LIBDIR'):
38 if k in os.environ: 38 if k in os.environ:
39 for d in os.environ[k].split(os.path.pathsep): 39 for d in os.environ[k].split(os.path.pathsep):
@@ -47,15 +47,15 @@ index 79f912b..37e5827 100755
47 # 47 #
48 # add platform directories 48 # add platform directories
49 49
50@@ -413,8 +408,6 @@ class pil_build_ext(build_ext): 50@@ -469,8 +464,6 @@ class pil_build_ext(build_ext):
51 elif sys.platform.startswith("linux") or \ 51 or sys.platform.startswith("gnu")
52 sys.platform.startswith("gnu") or \ 52 or sys.platform.startswith("freebsd")
53 sys.platform.startswith("freebsd"): 53 ):
54- for dirname in _find_library_dirs_ldconfig(): 54- for dirname in _find_library_dirs_ldconfig():
55- _add_directory(library_dirs, dirname) 55- _add_directory(library_dirs, dirname)
56 if sys.platform.startswith("linux") and \ 56 if sys.platform.startswith("linux") and os.environ.get(
57 os.environ.get('ANDROID_ROOT', None): 57 "ANDROID_ROOT", None
58 # termux support for android. 58 ):
59-- 59--
602.8.1 602.20.1
61 61
diff --git a/meta-python/recipes-devtools/python/python3-pillow_5.4.1.bb b/meta-python/recipes-devtools/python/python3-pillow_6.1.bb
index 6fce1623d6..13e6b4143e 100644
--- a/meta-python/recipes-devtools/python/python3-pillow_5.4.1.bb
+++ b/meta-python/recipes-devtools/python/python3-pillow_6.1.bb
@@ -3,13 +3,13 @@ Clark and Contributors. PIL is the Python Imaging Library by Fredrik Lundh and \
3Contributors." 3Contributors."
4HOMEPAGE = "https://pillow.readthedocs.io" 4HOMEPAGE = "https://pillow.readthedocs.io"
5LICENSE = "MIT" 5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=c6379001ecb47e2a0420c40177fc1125" 6LIC_FILES_CHKSUM = "file://LICENSE;md5=55c0f320370091249c1755c0d2b48e89"
7 7
8SRC_URI = "git://github.com/python-pillow/Pillow.git;branch=5.4.x \ 8SRC_URI = "git://github.com/python-pillow/Pillow.git;branch=6.1.x \
9 file://0001-support-cross-compiling.patch \ 9 file://0001-support-cross-compiling.patch \
10 file://0001-explicitly-set-compile-options.patch \ 10 file://0001-explicitly-set-compile-options.patch \
11" 11"
12SRCREV ?= "f38f01bbe3a0a9f49ce592c86ff20c01c9655133" 12SRCREV ?= "aaca672173413883fbcefd659f04d74fe44fb5d5"
13 13
14 14
15inherit setuptools3 15inherit setuptools3