package/python-pillow: new package
PATCH v5 1/1 package/python-pillow: new package
This patch adds python pillow, the friendly python image library fork, it includes a backported patch to disable configuration platfom guessing.
---
Changes
v4 -> v5:
* Better build and install opts handling (Peter Korsgaard)
* Strong sha256 hash
* Simplified INSTALL_TARGET_CMDS
* Better commit message
package/Config.in | 1 + ...y-add-option-to-disable-platform-guessing.patch | 63 ++++++++++++++++++++++ package/python-pillow/Config.in | 12 +++++ package/python-pillow/python-pillow.hash | 4 ++ package/python-pillow/python-pillow.mk | 33 ++++++++++++ 5 files changed, 113 insertions(+) create mode 100644 package/python-pillow/0001-setup.py-add-option-to-disable-platform-guessing.patch create mode 100644 package/python-pillow/Config.in create mode 100644 package/python-pillow/python-pillow.hash create mode 100644 package/python-pillow/python-pillow.mk
package/Config.in +1 -0
@@ -704,6 +704,7 @@ menu "External python modules" source "package/python-pathtools/Config.in" source "package/python-pathvalidate/Config.in" source "package/python-pexpect/Config.in" + source "package/python-pillow/Config.in" source "package/python-posix-ipc/Config.in" source "package/python-protobuf/Config.in" source "package/python-psutil/Config.in"
package/python-pillow/0001-setup.py-add-option-to-disable-platform-guessing.patch new file +63 -0
63 lines not on this page · raw message
package/python-pillow/Config.in new file +12 -0
@@ -0,0 +1,12 @@ +config BR2_PACKAGE_PYTHON_PILLOW + bool "python-pillow" + help + Pillow is the "friendly" PIL fork by Alex Clark and Contributors. PIL is + the Python Imaging Library by Fredrik Lundh and Contributors. + + Pillow relies on external libraries to provide support various + image formats. Select the corresponding package(s) to get this + support. Pillow can use jpeg, zlib (for PNG), tiff, freetype, webp, + and openjpeg (JPEG-2000). + + https://pypi.python.org/pypi/Pillow/
package/python-pillow/python-pillow.hash new file +4 -0
@@ -0,0 +1,4 @@ +# https://pypi.python.org/pypi?:action=show_md5&digest=7cfd093c11205d9e2ebe3c51dfcad510 +md5 7cfd093c11205d9e2ebe3c51dfcad510 Pillow-3.2.0.tar.gz +# sha256 locally computed +sha256 64b0a057210c480aea99406c9391180cd866fc0fd8f0b53367e3af21b195784a Pillow-3.2.0.tar.gz
package/python-pillow/python-pillow.mk new file +33 -0
@@ -0,0 +1,33 @@ +################################################################################ +# +# python-pillow +# +################################################################################ + +PYTHON_PILLOW_VERSION = 3.2.0 +PYTHON_PILLOW_SOURCE = Pillow-$(PYTHON_PILLOW_VERSION).tar.gz +PYTHON_PILLOW_SITE = https://pypi.python.org/packages/source/P/Pillow +PYTHON_PILLOW_SETUP_TYPE = setuptools +PYTHON_PILLOW_DEPENDENCIES = $(if $(BR2_PACKAGE_JPEG),jpeg) \ + $(if $(BR2_PACKAGE_ZLIB),zlib) \ + $(if $(BR2_PACKAGE_TIFF),tiff) \ + $(if $(BR2_PACKAGE_FREETYPE),freetype) \ + $(if $(BR2_PACKAGE_WEBP),webp) \ + $(if $(BR2_PACKAGE_OPENJPEG),openjpeg) + +PYTHON_PILLOW_BUILD_OPTS = --disable-platform-guessing +PYTHON_PILLOW_BUILD_OPTS += $(if $(BR2_PACKAGE_JPEG),--enable-jpeg,--disable-jpeg) +PYTHON_PILLOW_BUILD_OPTS += $(if $(BR2_PACKAGE_ZLIB),--enable-zlib,--disable-zlib) +PYTHON_PILLOW_BUILD_OPTS += $(if $(BR2_PACKAGE_TIFF),--enable-tiff,--disable-tiff) +PYTHON_PILLOW_BUILD_OPTS += $(if $(BR2_PACKAGE_FREETYPE),--enable-freetype,--disable-freetype) +PYTHON_PILLOW_BUILD_OPTS += $(if $(BR2_PACKAGE_WEBP),--enable-webp,--disable-webp) +PYTHON_PILLOW_BUILD_OPTS += $(if $(BR2_PACKAGE_OPENJPEG),--enable-jpeg2000,--disable-jpeg2000) + +PYTHON_PILLOW_BUILD_CMDS = cd $(PYTHON_PILLOW_BUILDDIR); \ + $(PYTHON_PILLOW_BASE_ENV) $(PYTHON_PILLOW_ENV) \ + $(PYTHON_PILLOW_PYTHON_INTERPRETER) setup.py build_ext \ + $(PYTHON_PILLOW_BASE_BUILD_OPTS) $(PYTHON_PILLOW_BUILD_OPTS) + +PYTHON_PILLOW_INSTALL_TARGET_CMDS = $(PYTHON_PILLOW_BUILD_CMDS) install + +$(eval $(python-package))
Signature · 1 line
1.9.1
PATCH v5 1/1 package/python-pillow: new package
Hi,
like you I was surprised that this package is not yet part of buildroot, so let's get things moving ;) I need it because the OpenWeather addon for Kodi needs it:
File "//.kodi/addons/script.openweathermap.maps/default.py", line 4, in <module>
from PIL import Image
ImportError: No module named PIL
Am Mon, 13 Jun 2016 22:38:09 +0200 schrieb Angelo Compagnucci:
package/python-pillow/0001-setup.py-add-option-to-disable-platform-guessing.patch line 9
Quoted 9 lines
(quoted diff) +2
-0+From 3344eff32427f1d10f3ca82ca4344c501a1a2055 Mon Sep 17 00:00:00 2001 +From: Angelo Compagnucci<[email protected]>
+Date: Sun, 12 Jun 2016 12:06:59 +0200 +Subject: [PATCH]setup.py: add option to disable platform guessing +package/python-pillow/0001-setup.py-add-option-to-disable-platform-guessing.patch new file +4
-0+When cross-compiling (ex on Buildroot) platform guessing is not needed +cause the environment is correctly built externally. +This patch adds an option to disable platform guessing on Linux. +---
s-o-b missing.
Also apparently you send a patch fixing cross-compilation upstream:
https://github.com/python-pillow/Pillow/pull/1861
The patch you included here seems to be a smaller version of your original patch which itself got extended by upstream:
https://github.com/python-pillow/Pillow/pull/1875
Could you please check if the patch from PR 1875 could be included in buildroot instead of the current patch? This will make bumping the package easier if PR 1875 gets merged some time in the future.
Besides these cosmetical things the package compiles.
Compile-tested using these defconfigs:
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON_PILLOW=y
and
BR2_PACKAGE_PYTHON=y
BR2_PACKAGE_PYTHON_PILLOW=y
Both defconfigs were based on http://autobuild.buildroot.net/toolchains/configs/br-x86-64-core2-full.config
Regards, Bernd
PATCH v5 1/1 package/python-pillow: new package
Dear Bernd Kuhls
2016-06-29 22:33 GMT+02:00 Bernd Kuhls <[email protected]>:
Quoted 3 lines
Hi,
like you I was surprised that this package is not yet part of buildroot,
Yes! Finally someone interested!
Quoted 10 lines
so let's get things moving ;) I need it because the OpenWeather addon for Kodi needs it:
File "//.kodi/addons/script.openweathermap.maps/default.py", line 4, in <module>
from PIL import Image
ImportError: No module named PILAm Mon, 13 Jun 2016 22:38:09 +0200 schrieb Angelo Compagnucci:
Quoted 11 lines
package/python-pillow/0001-setup.py-add-option-to-disable-platform-guessing.patch line 9
Quoted 9 lines
(quoted diff) +2
-0+From 3344eff32427f1d10f3ca82ca4344c501a1a2055 Mon Sep 17 00:00:00 2001 +From: Angelo Compagnucci<[email protected]>
+Date: Sun, 12 Jun 2016 12:06:59 +0200 +Subject: [PATCH]setup.py: add option to disable platform guessing +package/python-pillow/0001-setup.py-add-option-to-disable-platform-guessing.patch new file +4
-0+When cross-compiling (ex on Buildroot) platform guessing is not needed +cause the environment is correctly built externally. +This patch adds an option to disable platform guessing on Linux. +---s-o-b missing.
Ops!
Quoted 10 lines
Also apparently you send a patch fixing cross-compilation upstream:
https://github.com/python-pillow/Pillow/pull/1861The patch you included here seems to be a smaller version of your original patch which itself got extended by upstream:
https://github.com/python-pillow/Pillow/pull/1875Could you please check if the patch from PR 1875 could be included in buildroot instead of the current patch? This will make bumping the package easier if PR 1875 gets merged some time in the future.
The patch attached here is a backport of the original patch I submitted. Unfortunately the patch applied on master branch cannot be backported tout court into the previous release. When the new major release will be out, I'll remove this patch.
Quoted 23 lines
Besides these cosmetical things the package compiles.
Tested-by Bernd Kuhls <[email protected]>Compile-tested using these defconfigs:
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON_PILLOW=yand
BR2_PACKAGE_PYTHON=y
BR2_PACKAGE_PYTHON_PILLOW=yBoth defconfigs were based on http://autobuild.buildroot.net/toolchains/
configs/br-x86-64-core2-full.configRegards, Bernd
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 1 line
Profile: http://it.linkedin.com/in/compagnucciangelo
PATCH v5 1/1 package/python-pillow: new package
Dear Bernd Kuhls
2016-06-29 22:41 GMT+02:00 Angelo Compagnucci <[email protected]>:
Quoted 40 lines
Dear Bernd Kuhls
2016-06-29 22:33 GMT+02:00 Bernd Kuhls <[email protected]>:
Quoted 3 lines
Hi,
like you I was surprised that this package is not yet part of buildroot,
Yes! Finally someone interested!
Quoted 10 lines
so let's get things moving ;) I need it because the OpenWeather addon for Kodi needs it:
File "//.kodi/addons/script.openweathermap.maps/default.py", line 4, in <module>
from PIL import Image
ImportError: No module named PILAm Mon, 13 Jun 2016 22:38:09 +0200 schrieb Angelo Compagnucci:
Quoted 11 lines
package/python-pillow/0001-setup.py-add-option-to-disable-platform-guessing.patch line 9
Quoted 9 lines
(quoted diff) +2
-0+From 3344eff32427f1d10f3ca82ca4344c501a1a2055 Mon Sep 17 00:00:00 2001 +From: Angelo Compagnucci<[email protected]>
+Date: Sun, 12 Jun 2016 12:06:59 +0200 +Subject: [PATCH]setup.py: add option to disable platform guessing +package/python-pillow/0001-setup.py-add-option-to-disable-platform-guessing.patch new file +4
-0+When cross-compiling (ex on Buildroot) platform guessing is not needed +cause the environment is correctly built externally. +This patch adds an option to disable platform guessing on Linux. +---s-o-b missing.
Ops!
Quoted 7 lines
Also apparently you send a patch fixing cross-compilation upstream:
https://github.com/python-pillow/Pillow/pull/1861The patch you included here seems to be a smaller version of your original patch which itself got extended by upstream:
https://github.com/python-pillow/Pillow/pull/1875
Quoted 25 lines
Quoted 3 lines
Could you please check if the patch from PR 1875 could be included in buildroot instead of the current patch? This will make bumping the package easier if PR 1875 gets merged some time in the future.
The patch attached here is a backport of the original patch I submitted. Unfortunately the patch applied on master branch cannot be backported tout court into the previous release. When the new major release will be out, I'll remove this patch.
Quoted 16 lines
Besides these cosmetical things the package compiles.
Tested-by Bernd Kuhls <[email protected]>Compile-tested using these defconfigs:
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON_PILLOW=yand
BR2_PACKAGE_PYTHON=y
BR2_PACKAGE_PYTHON_PILLOW=yBoth defconfigs were based on http://autobuild.buildroot.net/toolchains/
configs/br-x86-64-core2-full.config
Could you try version 6 and give your tested/acked by?
Thanks!
Quoted 12 lines
Quoted 7 lines
Regards, Bernd
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot--
Profile: http://it.linkedin.com/in/compagnucciangelo
Signature · 1 line
Profile: http://it.linkedin.com/in/compagnucciangelo