Skip to contentSkip to conversation

python3-markdown: add logging and setuptools to RDEPENDS

PATCH New Trevor Gamblin 1 participant 1 message May 7, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-markdown: add logging and setuptools to RDEPENDS

Importing the markdown module causes standard ModuleNotFoundErrors if the logging and pkg_resources modules are unavailable:

root@qemux86-64:~# python3
Python 3.8.2 (default, Apr 27 2020, 08:51:00)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
Quoted 1 line
Quoted 1 line
Quoted 1 line

import markdown

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python3.8/site-packages/markdown/_init_.py", line 25, in <module> from .core import Markdown, markdown, markdownFromFile
File "/usr/lib64/python3.8/site-packages/markdown/core.py", line 27, in <module> import logging
ModuleNotFoundError: No module named 'logging'

---
 meta-python/recipes-devtools/python/python3-markdown_3.0.1.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-markdown_3.0.1.bb +2 -0
index 68cd723ac..cdfe5496a 100644
@@ -10,3 +10,5 @@ SRC_URI[md5sum] = "72219f46ca440b657bf227500731bdf1"
 SRC_URI[sha256sum] = "d02e0f9b04c500cde6637c11ad7c72671f359b87b9fe924b2383649d8841db7c"
 
 BBCLASSEXTEND = "native"
+
+RDEPENDS_${PN} += "${PYTHON_PN}-logging ${PYTHON_PN}-setuptools"
Signature · 1 line
2.25.4