package/python3-decorator: new package
PATCH 1/2 package/python3-decorator: new package
The host-python-networkx package needs to be built for the host-python3, even when the target Python is not necessarily Python 3.x. Since it depends on host-python-decorator, we need a Python 3 variant of it, which this patch introduces.
--- package/python-decorator/python-decorator.mk | 1 + package/python3-decorator/python3-decorator.hash | 1 + package/python3-decorator/python3-decorator.mk | 16 ++++++++++++++++ 3 files changed, 18 insertions(+) create mode 120000 package/python3-decorator/python3-decorator.hash create mode 100644 package/python3-decorator/python3-decorator.mk
package/python-decorator/python-decorator.mk +1 -0
@@ -4,6 +4,7 @@ # ################################################################################ +# Please keep in sync with package/python3-decorator/python3-decorator.mk PYTHON_DECORATOR_VERSION = 4.4.1 PYTHON_DECORATOR_SITE = https://files.pythonhosted.org/packages/dc/c3/9d378af09f5737cfd524b844cd2fbb0d2263a35c11d712043daab290144d PYTHON_DECORATOR_SOURCE = decorator-$(PYTHON_DECORATOR_VERSION).tar.gz
package/python3-decorator/python3-decorator.hash new file +1 -0
@@ -0,0 +1 @@ +../python-decorator/python-decorator.hash
package/python3-decorator/python3-decorator.mk new file +16 -0
@@ -0,0 +1,16 @@ +################################################################################ +# +# python3-decorator +# +################################################################################ + +# Please keep in sync with package/python-decorator/python-decorator.mk +PYTHON3_DECORATOR_VERSION = 4.4.1 +PYTHON3_DECORATOR_SITE = https://files.pythonhosted.org/packages/dc/c3/9d378af09f5737cfd524b844cd2fbb0d2263a35c11d712043daab290144d +PYTHON3_DECORATOR_SOURCE = decorator-$(PYTHON_DECORATOR_VERSION).tar.gz +PYTHON3_DECORATOR_LICENSE = BSD-2-Clause +PYTHON3_DECORATOR_LICENSE_FILES = LICENSE.txt +PYTHON3_DECORATOR_SETUP_TYPE = setuptools +HOST_PYTHON3_DECORATOR_NEEDS_HOST_PYTHON = python3 + +$(eval $(host-python-package))
Signature · 1 line
2.26.2
PATCH 2/2 package/python-networkx: install for host-python3
This Python module only works for Python 3: the target variant has a "depends on BR2_PACKAGE_PYTHON3".
However today in Buildroot, when no target python is selected, or when BR2_PACKAGE_PYTHON=y, all host python modules are installed for host-python, i.e Python 2. But this module won't install in Python 2, so let's force its host variant to be installed with Python 3 on the host. Of course, for that to work, its dependency must also be built for host-python3, so we change it to the newly introduced host-python3-decorator package.
Fixes:
http://autobuild.buildroot.net/results/46a89bd6cd0d0b896b28010db287068309e7a43c/
--- package/python-networkx/python-networkx.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
package/python-networkx/python-networkx.mk +2 -1
@@ -10,7 +10,8 @@ PYTHON_NETWORKX_SITE = https://pypi.python.org/packages/bf/63/7b579dd3b1c49ce6b7 PYTHON_NETWORKX_LICENSE = BSD-3-Clause PYTHON_NETWORKX_LICENSE_FILES = LICENSE.txt PYTHON_NETWORKX_SETUP_TYPE = setuptools -HOST_PYTHON_NETWORKX_DEPENDENCIES = host-python-decorator +HOST_PYTHON_NETWORKX_DEPENDENCIES = host-python3-decorator +HOST_PYTHON_NETWORKX_NEEDS_HOST_PYTHON = python3 $(eval $(python-package)) $(eval $(host-python-package))
Signature · 1 line
2.26.2
PATCH 1/2 package/python3-decorator: new package
In reply to Thomas PetazzoniThomas, All,
On 2020-07-23 21:45 +0200, Thomas Petazzoni spake thusly:
Quoted 6 lines
The host-python-networkx package needs to be built for the host-python3, even when the target Python is not necessarily Python 3.x. Since it depends on host-python-decorator, we need a Python 3 variant of it, which this patch introduces.
Signed-off-by Thomas Petazzoni <[email protected]>
Both applied to master, thanks.
But now that host-python-networkx depends on host-python3-decorator, we can probably drop the host variant for python-decorator, as networkx was the only user of it...
Regards,
Yann E. MORIN.
Quoted 57 lines
--- package/python-decorator/python-decorator.mk | 1 + package/python3-decorator/python3-decorator.hash | 1 + package/python3-decorator/python3-decorator.mk | 16 ++++++++++++++++ 3 files changed, 18 insertions(+) create mode 120000 package/python3-decorator/python3-decorator.hash create mode 100644 package/python3-decorator/python3-decorator.mkpackage/python-decorator/python-decorator.mk +1
-0@@ -4,6 +4,7 @@ # ################################################################################ +# Please keep in sync with package/python3-decorator/python3-decorator.mk PYTHON_DECORATOR_VERSION = 4.4.1 PYTHON_DECORATOR_SITE = https://files.pythonhosted.org/packages/dc/c3/9d378af09f5737cfd524b844cd2fbb0d2263a35c11d712043daab290144d PYTHON_DECORATOR_SOURCE = decorator-$(PYTHON_DECORATOR_VERSION).tar.gzpackage/python3-decorator/python3-decorator.hash new file +1
-0@@ -0,0 +1 @@ +../python-decorator/python-decorator.hashpackage/python3-decorator/python3-decorator.mk new file +16
-0@@ -0,0 +1,16 @@ +################################################################################ +# +# python3-decorator +# +################################################################################ + +# Please keep in sync with package/python-decorator/python-decorator.mk +PYTHON3_DECORATOR_VERSION = 4.4.1 +PYTHON3_DECORATOR_SITE = https://files.pythonhosted.org/packages/dc/c3/9d378af09f5737cfd524b844cd2fbb0d2263a35c11d712043daab290144d +PYTHON3_DECORATOR_SOURCE = decorator-$(PYTHON_DECORATOR_VERSION).tar.gz +PYTHON3_DECORATOR_LICENSE = BSD-2-Clause +PYTHON3_DECORATOR_LICENSE_FILES = LICENSE.txt +PYTHON3_DECORATOR_SETUP_TYPE = setuptools +HOST_PYTHON3_DECORATOR_NEEDS_HOST_PYTHON = python3 + +$(eval $(host-python-package))Signature · 6 lines
2.26.2 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'