Skip to contentSkip to conversation

python3-parse-type: Do not ask for 2to3

PATCH New Khem Raj 1 participant 1 message Oct 13, 2021

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 python3-parse-type: Do not ask for 2to3

It seems to work fine with py3

---
 .../recipes-devtools/python/python3-parse-type_0.5.2.bb      | 5 +++++
 1 file changed, 5 insertions(+)
meta-python/recipes-devtools/python/python3-parse-type_0.5.2.bb +5 -0
index 39812a17cd..7eebbfb503 100644
@@ -19,6 +19,11 @@ RDEPENDS:${PN}-ptest += " \
 	${PYTHON_PN}-pytest \
 "
 
+do_configure:prepend() {
+	sed -i -e "/python_version >= 3.0/d" ${S}/setup.py
+	sed -i -e "/use_2to3/d" ${S}/setup.py
+}
+
 do_install_ptest() {
 	install -d ${D}${PTEST_PATH}/tests
 	cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
Signature · 1 line
2.33.0