Skip to contentSkip to conversation

python3-simpleeval: Remove use_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-simpleeval: Remove use_2to3

package works with py2 and py3, there is no need to use 2to3 See
https://github.com/jobsta/simpleeval/commit/4ea1a5d15d449ab805bae042a698b381ddefd5b1

---
 .../recipes-devtools/python/python3-simpleeval_0.9.10.bb      | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-simpleeval_0.9.10.bb +3 -1
index 9708fc6262..36512cba9a 100644
@@ -17,7 +17,9 @@ SRC_URI += " \
 RDEPENDS:${PN}-ptest += " \
 	${PYTHON_PN}-pytest \
 "
-
+do_configure:prepend() {
+	sed -i -e "/use_2to3=True,/d" ${S}/setup.py
+}
 do_install_ptest() {
 	cp -f ${S}/test_simpleeval.py ${D}${PTEST_PATH}/
 }
Signature · 1 line
2.33.0