package/python-yamllint: fix dependencies and SETUP_TYPE
PATCH 1/1 package/python-yamllint: fix dependencies and SETUP_TYPE
For host build the runtime depndencies has to be added. Also the setup type needs to be set to 'setuptools'.
./output/host/bin/python ./support/testing/tests/package/sample_python_yamllint.py
Traceback (most recent call last):
File "/home/hthiery/sources/mainline/buildroot/support/testing/tests/package/sample_python_yamllint.py", line 3, in <module>
from yamllint import (config, linter)
File "/home/hthiery/sources/mainline/buildroot/output/host/lib/python3.11/site-packages/yamllint/config.py", line 19, in <module>
import pathspec
ModuleNotFoundError: No module named 'pathspec'
--- package/python-yamllint/python-yamllint.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
package/python-yamllint/python-yamllint.mk +5 -1
@@ -7,9 +7,13 @@ PYTHON_YAMLLINT_VERSION = 1.35.1 PYTHON_YAMLLINT_SOURCE = yamllint-$(PYTHON_YAMLLINT_VERSION).tar.gz PYTHON_YAMLLINT_SITE = https://files.pythonhosted.org/packages/da/06/d8cee5c3dfd550cc0a466ead8b321138198485d1034130ac1393cc49d63e -PYTHON_YAMLLINT_SETUP_TYPE = pep517 +PYTHON_YAMLLINT_SETUP_TYPE = setuptools PYTHON_YAMLLINT_LICENSE = GPL-3.0 PYTHON_YAMLLINT_LICENSE_FILES = LICENSE +HOST_PYTHON_YAMLLINT_DEPENDENCIES += \ + host-python-pathspec \ + host-python-pyyaml + $(eval $(python-package)) $(eval $(host-python-package))
Signature · 6 lines
2.20.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Petazzoni via buildroot
AppliedQuoted 11 lines · On Sat, 13 Apr 2024 15:32:02 +0200 Heiko Thiery <[email protected]> wrote:
For host build the runtime depndencies has to be added. Also the setup type needs to be set to 'setuptools'.
./output/host/bin/python
./support/testing/tests/package/sample_python_yamllint.py
Traceback (most recent call last):
File "/home/hthiery/sources/mainline/buildroot/support/testing/tests/package/sample_python_yamllint.py", line 3, in <module>
from yamllint import (config, linter)
File "/home/hthiery/sources/mainline/buildroot/output/host/lib/python3.11/site-packages/yamllint/config.py", line 19, in <module>
import pathspec
ModuleNotFoundError: No module named 'pathspec'
Quoted 5 lines
Signed-off-by Heiko Thiery <[email protected]>Reported-by Romain Naour <[email protected]>--- package/python-yamllint/python-yamllint.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
Applied to master, thanks.
Thomas
Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot