* [Buildroot] [PATCH 1/1] package/python-pyyaml: bump to version 6.0
@ 2022-01-24 11:17 James Hilliard
2022-01-26 22:00 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: James Hilliard @ 2022-01-24 11:17 UTC (permalink / raw)
To: buildroot
Cc: Geoffrey Ragot, Kieran Bingham, Asaf Kahlon, James Hilliard,
Fabrice Fontaine
Drop python2 support and propagate dependency changes.
Ensure optimized cython build is enabled and add host cython
dependency.
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
package/libcamera/libcamera.mk | 2 +-
package/mongodb/mongodb.mk | 2 +-
package/python-pyyaml/Config.in | 1 +
package/python-pyyaml/python-pyyaml.hash | 4 ++--
package/python-pyyaml/python-pyyaml.mk | 9 +++++----
package/python3-pyyaml/python3-pyyaml.hash | 1 -
package/python3-pyyaml/python3-pyyaml.mk | 20 --------------------
7 files changed, 10 insertions(+), 29 deletions(-)
delete mode 120000 package/python3-pyyaml/python3-pyyaml.hash
delete mode 100644 package/python3-pyyaml/python3-pyyaml.mk
diff --git a/package/libcamera/libcamera.mk b/package/libcamera/libcamera.mk
index 0052ca558a..524cf07e03 100644
--- a/package/libcamera/libcamera.mk
+++ b/package/libcamera/libcamera.mk
@@ -12,7 +12,7 @@ LIBCAMERA_DEPENDENCIES = \
host-pkgconf \
host-python-jinja2 \
host-python3-ply \
- host-python3-pyyaml \
+ host-python-pyyaml \
gnutls
LIBCAMERA_CONF_OPTS = \
-Dandroid=disabled \
diff --git a/package/mongodb/mongodb.mk b/package/mongodb/mongodb.mk
index c33c3c2eb7..92656dd7a4 100644
--- a/package/mongodb/mongodb.mk
+++ b/package/mongodb/mongodb.mk
@@ -18,7 +18,7 @@ MONGODB_DEPENDENCIES = \
boost \
host-python3-cheetah \
host-python3-psutil \
- host-python3-pyyaml \
+ host-python-pyyaml \
host-python3-regex \
host-python-requests \
host-scons \
diff --git a/package/python-pyyaml/Config.in b/package/python-pyyaml/Config.in
index 45e818b7e7..eb073b9c03 100644
--- a/package/python-pyyaml/Config.in
+++ b/package/python-pyyaml/Config.in
@@ -1,5 +1,6 @@
config BR2_PACKAGE_PYTHON_PYYAML
bool "python-pyyaml"
+ depends on BR2_PACKAGE_PYTHON3
select BR2_PACKAGE_LIBYAML
help
The PyYAML package contains binding to the libyaml API.
diff --git a/package/python-pyyaml/python-pyyaml.hash b/package/python-pyyaml/python-pyyaml.hash
index 82b2f4f880..f8b5332565 100644
--- a/package/python-pyyaml/python-pyyaml.hash
+++ b/package/python-pyyaml/python-pyyaml.hash
@@ -1,5 +1,5 @@
# md5, sha256 from https://pypi.org/pypi/PyYAML/json
-md5 46e25294c7efec23d4072ed6a7777f46 PyYAML-5.4.1.tar.gz
-sha256 607774cbba28732bfa802b54baa7484215f530991055bb562efbed5b2f20a45e PyYAML-5.4.1.tar.gz
+md5 1d19c798f25e58e3e582f0f8c977dbb8 PyYAML-6.0.tar.gz
+sha256 68fb519c14306fec9720a2a5b45bc9f0c8d1b9c72adf45c37baedfcd949c35a2 PyYAML-6.0.tar.gz
# Locally computed sha256 checksums
sha256 8d3928f9dc4490fd635707cb88eb26bd764102a7282954307d3e5167a577e8a4 LICENSE
diff --git a/package/python-pyyaml/python-pyyaml.mk b/package/python-pyyaml/python-pyyaml.mk
index c9013de8ec..8f5a2d269e 100644
--- a/package/python-pyyaml/python-pyyaml.mk
+++ b/package/python-pyyaml/python-pyyaml.mk
@@ -4,17 +4,18 @@
#
################################################################################
-# Please keep in sync package/python3-pyyaml/python3-pyyaml.mk
-PYTHON_PYYAML_VERSION = 5.4.1
+PYTHON_PYYAML_VERSION = 6.0
PYTHON_PYYAML_SOURCE = PyYAML-$(PYTHON_PYYAML_VERSION).tar.gz
-PYTHON_PYYAML_SITE = https://files.pythonhosted.org/packages/a0/a4/d63f2d7597e1a4b55aa3b4d6c5b029991d3b824b5bd331af8d4ab1ed687d
+PYTHON_PYYAML_SITE = https://files.pythonhosted.org/packages/36/2b/61d51a2c4f25ef062ae3f74576b01638bebad5e045f747ff12643df63844
PYTHON_PYYAML_SETUP_TYPE = setuptools
PYTHON_PYYAML_LICENSE = MIT
PYTHON_PYYAML_LICENSE_FILES = LICENSE
PYTHON_PYYAML_CPE_ID_VENDOR = pyyaml
PYTHON_PYYAML_CPE_ID_PRODUCT = pyyaml
-PYTHON_PYYAML_DEPENDENCIES = libyaml
+PYTHON_PYYAML_DEPENDENCIES = host-python-cython libyaml
+PYTHON_PYYAML_ENV = PYYAML_FORCE_CYTHON=1
HOST_PYTHON_PYYAML_DEPENDENCIES = host-libyaml
+HOST_PYTHON_PYYAML_NEEDS_HOST_PYTHON = python3
$(eval $(python-package))
$(eval $(host-python-package))
diff --git a/package/python3-pyyaml/python3-pyyaml.hash b/package/python3-pyyaml/python3-pyyaml.hash
deleted file mode 120000
index afa4932ecb..0000000000
--- a/package/python3-pyyaml/python3-pyyaml.hash
+++ /dev/null
@@ -1 +0,0 @@
-../python-pyyaml/python-pyyaml.hash
\ No newline at end of file
diff --git a/package/python3-pyyaml/python3-pyyaml.mk b/package/python3-pyyaml/python3-pyyaml.mk
deleted file mode 100644
index f758341502..0000000000
--- a/package/python3-pyyaml/python3-pyyaml.mk
+++ /dev/null
@@ -1,20 +0,0 @@
-################################################################################
-#
-# python3-pyyaml
-#
-################################################################################
-
-# Please keep in sync with package/python-pyyaml/python-pyyaml.mk
-PYTHON3_PYYAML_VERSION = 5.4.1
-PYTHON3_PYYAML_SOURCE = PyYAML-$(PYTHON3_PYYAML_VERSION).tar.gz
-PYTHON3_PYYAML_SITE = https://files.pythonhosted.org/packages/a0/a4/d63f2d7597e1a4b55aa3b4d6c5b029991d3b824b5bd331af8d4ab1ed687d
-PYTHON3_PYYAML_SETUP_TYPE = setuptools
-PYTHON3_PYYAML_LICENSE = MIT
-PYTHON3_PYYAML_LICENSE_FILES = LICENSE
-PYTHON3_PYYAML_CPE_ID_VENDOR = pyyaml
-PYTHON3_PYYAML_CPE_ID_PRODUCT = pyyaml
-HOST_PYTHON3_PYYAML_DL_SUBDIR = python-pyyaml
-HOST_PYTHON3_PYYAML_NEEDS_HOST_PYTHON = python3
-HOST_PYTHON3_PYYAML_DEPENDENCIES = host-libyaml
-
-$(eval $(host-python-package))
--
2.25.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/python-pyyaml: bump to version 6.0
2022-01-24 11:17 [Buildroot] [PATCH 1/1] package/python-pyyaml: bump to version 6.0 James Hilliard
@ 2022-01-26 22:00 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2022-01-26 22:00 UTC (permalink / raw)
To: James Hilliard
Cc: Geoffrey Ragot, Fabrice Fontaine, Kieran Bingham, Asaf Kahlon,
buildroot
On Mon, 24 Jan 2022 04:17:25 -0700
James Hilliard <james.hilliard1@gmail.com> wrote:
> Drop python2 support and propagate dependency changes.
>
> Ensure optimized cython build is enabled and add host cython
> dependency.
>
> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> ---
> package/libcamera/libcamera.mk | 2 +-
> package/mongodb/mongodb.mk | 2 +-
> package/python-pyyaml/Config.in | 1 +
> package/python-pyyaml/python-pyyaml.hash | 4 ++--
> package/python-pyyaml/python-pyyaml.mk | 9 +++++----
> package/python3-pyyaml/python3-pyyaml.hash | 1 -
> package/python3-pyyaml/python3-pyyaml.mk | 20 --------------------
> 7 files changed, 10 insertions(+), 29 deletions(-)
> delete mode 120000 package/python3-pyyaml/python3-pyyaml.hash
> delete mode 100644 package/python3-pyyaml/python3-pyyaml.mk
Applied to master, thanks. I was surprised by the usage of
host-python-pyyaml by host-sdbusplus. Indeed, host-sdbusplus depends on
host-python3 and host-python-pyyaml, the latter being (before your
patch) forcefully build for Python 2.x.
So of the 3 Python modules that host-sdbusplus needs (inflection, mako,
pyyaml), inflection and mako were installed for the host Python 3.x
interpreter, and host-python-pyyaml for the host Python 2.x
interpreter. And the host-sdbusplus build, even though it depended on
host-python3, was in fact using host Python 2.x... which raises a
question on the actual need of host-python-inflection and
host-python-mako... as they are not actually needed during the build:
the build succeeds when host-sdbusplus uses host Python 2.x, while mako
and inflection are installed for host Python 3.x.
It seems like they are only used at runtime ? But that also wouldn't
work.
Anyway, now with host-python-pyyaml being python3 only, this kind of
solves the problem. But perhaps host-sdbusplus should be explicitly
told to use $(HOST_DIR)/bin/python3, because if $(HOST_DIR)/bin/python2
is here, it will use it, and it won't have access to pyyaml.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-26 22:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-24 11:17 [Buildroot] [PATCH 1/1] package/python-pyyaml: bump to version 6.0 James Hilliard
2022-01-26 22:00 ` Thomas Petazzoni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.